Skip to contentSkip to conversation

trace-cmd library: New API to write headers of a trace file

PATCH In review Tzvetomir Stoyanov (VMware) 1 participant 1 message Nov 11, 2021

lore
Share & tools
lore
#0 lore raw

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()

---
 .../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
index 2a5ce996..f148d520 100644
@@ -276,6 +276,9 @@ int tracecmd_output_set_trace_dir(struct tracecmd_output *handler, const char *t
 int 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