trace-cmd library: Write buffer option in out_write_cpu_data()
PATCH 1/1 trace-cmd library: Write buffer option in out_write_cpu_data()
From: "Steven Rostedt (Google)" <[email protected]>
When putting together the tracing files for trace-cmd restore, the call to out_write_cpu_data() does not write the final options that added the buffer data, and it is not able to be read.
Signed-off-by Steven Rostedt (Google) <[email protected]>
--- lib/trace-cmd/trace-output.c | 3 +++ 1 file changed, 3 insertions(+)
lib/trace-cmd/trace-output.c +3 -0
@@ -2526,6 +2526,9 @@ __hidden int out_write_cpu_data(struct tracecmd_output *handle, handle->file_state =TRACECMD_FILE_CPU_FLYRECORD ; +if (HAS_SECTIONS (handle)) +tracecmd_write_options (handle); +return 0 ; out_free:
Signature · 1 line
2.35.1