[PATCH 1/2] trace-cmd: Introduce tracecmd_peek_next_data()

2016-07-07 Thread Namhyung Kim
The tracecmd_peek_next_data() is similar to tracecmd_read_next_data() but it doesn't consume the record. Signed-off-by: Namhyung Kim --- trace-cmd.h | 3 +++ trace-input.c | 43 +++ 2 files changed, 46 insertions(+) diff --git

[PATCH 1/2] trace-cmd: Introduce tracecmd_peek_next_data()

2016-07-07 Thread Namhyung Kim
The tracecmd_peek_next_data() is similar to tracecmd_read_next_data() but it doesn't consume the record. Signed-off-by: Namhyung Kim --- trace-cmd.h | 3 +++ trace-input.c | 43 +++ 2 files changed, 46 insertions(+) diff --git a/trace-cmd.h