Skip to contentSkip to conversation

trace-cmd library: New API tracecmd_output_write_init

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

lore
Share & tools
lore
#0 lore raw

PATCH v2 6/10 trace-cmd library: New API tracecmd_output_write_init

The API writes initial magic bits in a trace file.
tracecmd_output_write_init()

---
 .../include/private/trace-cmd-private.h       |  1 +
 lib/trace-cmd/trace-output.c                  | 54 +++++++++++++++++++
 2 files changed, 55 insertions(+)
lib/trace-cmd/include/private/trace-cmd-private.h +1 -0
index 41876195..2a5ce996 100644
@@ -275,6 +275,7 @@ int tracecmd_output_set_msg(struct tracecmd_output *handler,
 int tracecmd_output_set_trace_dir(struct tracecmd_output *handler, const char *tracing_dir);
 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);
 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 +54 -0

60 lines not on this page · raw message

Signature · 1 line
2.33.1