diff options
| author | David Ahern <[email protected]> | 2013-12-05 02:41:41 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2013-12-05 13:09:58 +0000 |
| commit | 3160565f0e005d2ec736ae25cf0a79988c0cbe71 (patch) | |
| tree | f2164ae21d3ad54e605ca91f96e111474e5123fd /tools/perf/builtin-script.c | |
| parent | perf trace: Add support for syscalls vs raw_syscalls (diff) | |
| download | kernel-3160565f0e005d2ec736ae25cf0a79988c0cbe71.tar.gz kernel-3160565f0e005d2ec736ae25cf0a79988c0cbe71.zip | |
perf trace: Fix summary percentage when processing files
Getting a divide by 0 when events are processed from a file:
perf trace -i perf.data -s
...
dnsmasq (1684), 10 events, inf%, 0.000 msec
The problem is that the event count is not incremented as events are
processed. With this patch:
perf trace -i perf.data -s
...
dnsmasq (1684), 10 events, 8.9%, 0.000 msec
Signed-off-by: David Ahern <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
