diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-03-05 00:53:27 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-03-15 12:06:06 -0400 |
commit | c5a8368ca667d22a6e45396f23a5392d90396f39 (patch) | |
tree | ea6cda250fde4dd3f448e212f49f9c5a8173c37f /tools/perf/util/annotate.h | |
parent | 759ff497e0e6749437b6723f8d26de0b1833c199 (diff) |
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/util/annotate.h')
-rw-r--r-- | tools/perf/util/annotate.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index 376395475663..bb2e3f998983 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h | |||
@@ -74,11 +74,15 @@ struct sym_hist { | |||
74 | u64 addr[0]; | 74 | u64 addr[0]; |
75 | }; | 75 | }; |
76 | 76 | ||
77 | struct source_line { | 77 | struct source_line_percent { |
78 | struct rb_node node; | ||
79 | double percent; | 78 | double percent; |
80 | double percent_sum; | 79 | double percent_sum; |
80 | }; | ||
81 | |||
82 | struct source_line { | ||
83 | struct rb_node node; | ||
81 | char *path; | 84 | char *path; |
85 | struct source_line_percent p[1]; | ||
82 | }; | 86 | }; |
83 | 87 | ||
84 | /** struct annotated_source - symbols with hits have this attached as in sannotation | 88 | /** struct annotated_source - symbols with hits have this attached as in sannotation |