trace-cmd: Add tracecmd_get_cursor()

Add the helper routine tracecmd_get_cursor() that returns the offset
of the next tracecmd_read_data() or tracecmd_peek_data().

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2 files changed