diff options
author | David Ahern <dsahern@gmail.com> | 2015-03-19 14:23:03 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-03-21 13:53:31 -0400 |
commit | 13f22a2d4a5359867aa05562fc922f1ca24873a5 (patch) | |
tree | fae7fabd2e98315162b26e33778c0111766d85de /tools | |
parent | 0560a0c4a12a45def9700e7ec3215da102cf914b (diff) |
perf trace: Fix summary_only option
The intent of the -s/--summary-only option is to just show a summary of
the system calls and statistics without any of the individual events.
Commit e596663ebb2 broke that by showing the interrupted lines:
perf trace -i perf.data -s
...
0.741 ( 0.000 ms): sleep/31316 fstat(fd: 4, statbuf: 0x7ffc75ceb830 ) ...
0.744 ( 0.000 ms): sleep/31316 mmap(len: 100244, prot: READ, flags: PRIVATE, fd: 4 ) ...
0.747 ( 0.000 ms): perf/31315 write(fd: 3, buf: 0x7d4bb0, count: 8 ) ...
...
Fix by checking for the summary only option.
Signed-off-by: David Ahern <dsahern@gmail.com>
Link: http://lkml.kernel.org/r/1426789383-19023-1-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-trace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 0b3b4e4984b9..6af6bcec930e 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -1724,7 +1724,8 @@ static int trace__sys_enter(struct trace *trace, struct perf_evsel *evsel, | |||
1724 | return -1; | 1724 | return -1; |
1725 | } | 1725 | } |
1726 | 1726 | ||
1727 | printed += trace__printf_interrupted_entry(trace, sample); | 1727 | if (!trace->summary_only) |
1728 | printed += trace__printf_interrupted_entry(trace, sample); | ||
1728 | 1729 | ||
1729 | ttrace->entry_time = sample->time; | 1730 | ttrace->entry_time = sample->time; |
1730 | msg = ttrace->entry_str; | 1731 | msg = ttrace->entry_str; |