From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> 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) <rostedt@xxxxxxxxxxx> --- lib/trace-cmd/trace-output.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/trace-cmd/trace-output.c b/lib/trace-cmd/trace-output.c index f3a203ec347f..ca7132e113c0 100644 --- a/lib/trace-cmd/trace-output.c +++ b/lib/trace-cmd/trace-output.c @@ -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: -- 2.35.1