trace-cmd: Store the session tracing ID in the trace.dat file
The ID of the current tracing session is stored in the trace.dat file.
A new file option is introduced:
TRACECMD_OPTION_TRACEID
The data is stored in the file as unsigned long long integer
A new libtracecmd API is introduced, to get the ID when the trace.dat file is read:
unsigned long long tracecmd_get_traceid(struct tracecmd_input *handle);
Link: http://lore.kernel.org/linux-trace-devel/20200304091220.30936-5-tz.stoyanov@gmail.com
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
4 files changed