[PATCH] trace-cmd: Fix trace-cmd split command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@xxxxxxxxx>
---
This patch depends on "trace-cmd: Fixes for trace-cmd restore" patch set.

 tracecmd/trace-split.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/tracecmd/trace-split.c b/tracecmd/trace-split.c
index 7c9863d4..8366d128 100644
--- a/tracecmd/trace-split.c
+++ b/tracecmd/trace-split.c
@@ -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;
-- 
2.29.2




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux