trace-cmd library: New API to write headers of a trace file
PATCH v2 7/10 trace-cmd library: New API to write headers of a trace file
The API writes metadata headers in a trace file.
tracecmd_output_write_headers()
Signed-off-by Tzvetomir Stoyanov (VMware) <[email protected]>
--- .../include/private/trace-cmd-private.h | 3 ++ lib/trace-cmd/trace-output.c | 44 +++++++++++++++++-- 2 files changed, 43 insertions(+), 4 deletions(-)
lib/trace-cmd/include/private/trace-cmd-private.h +3 -0
@@ -276,6 +276,9 @@ int tracecmd_output_set_trace_dir(struct tracecmd_output *handler, const char *tint tracecmd_output_set_kallsyms (struct tracecmd_output *handler,const char *kallsyms);int tracecmd_output_set_from_input (struct tracecmd_output *handler,struct tracecmd_input *ihandle);int tracecmd_output_write_init (struct tracecmd_output *handler); +int tracecmd_output_write_headers (struct tracecmd_output *handler, +struct tracecmd_event_list *list); +struct tracecmd_output *tracecmd_create_file_latency (const char *output_file,int cpus);struct tracecmd_output * tracecmd_create_init_file_glob(const char *output_file,
lib/trace-cmd/trace-output.c +40 -4
68 lines not on this page · raw message
Signature · 1 line
2.33.1