perf trace: Remove redundant ')'
authorChangbin Du <changbin.du@intel.com>
Tue, 13 Mar 2018 10:40:01 +0000 (18:40 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
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 <changbin.du@intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1520937601-24952-1-git-send-email-changbin.du@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
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);