diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-03-05 14:53:27 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-03-15 13:06:06 -0300 |
commit | c5a8368ca667d22a6e45396f23a5392d90396f39 (patch) | |
tree | ea6cda250fde4dd3f448e212f49f9c5a8173c37f /tools/perf/ui/browsers/annotate.c | |
parent | 759ff497e0e6749437b6723f8d26de0b1833c199 (diff) | |
download | linux-c5a8368ca667d22a6e45396f23a5392d90396f39.tar.gz linux-c5a8368ca667d22a6e45396f23a5392d90396f39.tar.bz2 linux-c5a8368ca667d22a6e45396f23a5392d90396f39.zip |
perf annotate: Factor out struct source_line_percent
The source_line_percent struct contains percentage value of the symbol
histogram. This is a preparation of event group view change.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1362462812-30885-8-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/browsers/annotate.c')
-rw-r--r-- | tools/perf/ui/browsers/annotate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c index 67798472384b..cfae57f90146 100644 --- a/tools/perf/ui/browsers/annotate.c +++ b/tools/perf/ui/browsers/annotate.c @@ -257,7 +257,7 @@ static double disasm_line__calc_percent(struct disasm_line *dl, struct symbol *s while (offset < (s64)len && (next == NULL || offset < next->offset)) { if (src_line) { - percent += src_line[offset].percent; + percent += src_line[offset].p[0].percent; } else hits += h->addr[offset]; |