perf trace: Remove redundant ')'
authorChangbin Du <[email protected]>
Tue, 13 Mar 2018 10:40:01 +0000 (18:40 +0800)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 3 Apr 2018 19:16:41 +0000 (16:16 -0300)
There is a redundant ')' at the tail of each event. So remove it.

$ sudo perf trace --no-syscalls -e 'kmem:*' -a
   899.342 kmem:kfree:(vfs_writev+0xb9) call_site=ffffffff9c453979 ptr=(nil))
   899.344 kmem:kfree:(___sys_recvmsg+0x188) call_site=ffffffff9c9b8b88 ptr=(nil))

Signed-off-by: Changbin Du <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/builtin-trace.c

index 4e03f0f68241e1ef5ee8c78f6f9d06210c162fb9..3ad17ee89403b8e1bbf49fc1e6e077de5bb07cdd 100644 (file)
@@ -1962,7 +1962,7 @@ static int trace__event_handler(struct trace *trace, struct perf_evsel *evsel,
                                      trace->output);
        }
 
-       fprintf(trace->output, ")\n");
+       fprintf(trace->output, "\n");
 
        if (callchain_ret > 0)
                trace__fprintf_callchain(trace, sample);