Skip to contentSkip to conversation

trace-cmd: Fix trace-cmd split command

PATCH New Tzvetomir Stoyanov (VMware) 1 participant 1 message Mar 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trace-cmd: Fix trace-cmd split command

The trace-cmd split command seems to be broken with the changes moving the writing of saved_cmdlines after the trace session.
The call to tracecmd_write_cmdlines() is no more needed in this command context, the cmdlines should be copied from input to output files.

---
This patch depends on "trace-cmd: Fixes for trace-cmd restore" patch set.

 tracecmd/trace-split.c | 4 ----
 1 file changed, 4 deletions(-)
tracecmd/trace-split.c +0 -4
index 7c9863d4..8366d128 100644
@@ -384,10 +384,6 @@ static double parse_file(struct tracecmd_input *handle,
 	for (cpu = 0; cpu < cpus; cpu ++)
 		cpu_list[cpu] = cpu_data[cpu].file;
 
-	/* TODO: Fix me, this is suppose to come from handle */
-	if (tracecmd_write_cmdlines(ohandle))
-		die("Writing cmdlines");
-
 	tracecmd_append_cpu_data(ohandle, cpus, cpu_list);
 
 	current = end;
Signature · 1 line
2.29.2