Skip to contentSkip to conversation

trace-cmd: Fix broken profile command

PATCH New Tzvetomir Stoyanov (VMware) 1 participant 1 message May 14, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trace-cmd: Fix broken profile command

Recent changes in creating trace.dat files broke the streams, used internaly by the trace-cmd profile command.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=213045

---
 tracecmd/trace-stream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tracecmd/trace-stream.c +1 -1
index f503bf77..b47b208c 100644
@@ -59,7 +59,7 @@ trace_stream_init(struct buffer_instance *instance, int cpu, int fd, int cpus,
 		goto fail;
 	}
 
-	if (tracecmd_read_headers(trace_input, 0) < 0)
+	if (tracecmd_read_headers(trace_input, TRACECMD_FILE_PRINTK) < 0)
 		goto fail_free_input;
 
 	if (handle_init)
Signature · 1 line
2.31.1