diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-03-17 17:27:28 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-03-17 17:27:28 -0400 |
commit | d5dbc518cd8fbc7cf54b91d5b506eb4d67e4047d (patch) | |
tree | b0070205671ea96526194966270b1147fc587382 /tools/perf/util/hist.h | |
parent | 4c47f4fcd60a2f4153d6fe0c31650fbec112a1bd (diff) |
perf hists browser: Allow annotating entries in callchains
Instead of annotating just the top level hist_entry, allow instead
annotating a map_symbol, i.e. the top level hist_entry or one of the
callchains for which there were samples.
Suggested-by: Stephane Eranian <eranian@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/n/tip-k1zxj5564je9jei4yd15ouwn@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index e988c9fcd1bc..9f31b89a527a 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -303,6 +303,9 @@ struct hist_browser_timer { | |||
303 | 303 | ||
304 | #ifdef HAVE_SLANG_SUPPORT | 304 | #ifdef HAVE_SLANG_SUPPORT |
305 | #include "../ui/keysyms.h" | 305 | #include "../ui/keysyms.h" |
306 | int map_symbol__tui_annotate(struct map_symbol *ms, struct perf_evsel *evsel, | ||
307 | struct hist_browser_timer *hbt); | ||
308 | |||
306 | int hist_entry__tui_annotate(struct hist_entry *he, struct perf_evsel *evsel, | 309 | int hist_entry__tui_annotate(struct hist_entry *he, struct perf_evsel *evsel, |
307 | struct hist_browser_timer *hbt); | 310 | struct hist_browser_timer *hbt); |
308 | 311 | ||
@@ -321,6 +324,12 @@ int perf_evlist__tui_browse_hists(struct perf_evlist *evlist __maybe_unused, | |||
321 | { | 324 | { |
322 | return 0; | 325 | return 0; |
323 | } | 326 | } |
327 | static inline int map_symbol__tui_annotate(struct map_symbol *ms __maybe_unused, | ||
328 | struct perf_evsel *evsel __maybe_unused, | ||
329 | struct hist_browser_timer *hbt __maybe_unused) | ||
330 | { | ||
331 | return 0; | ||
332 | } | ||
324 | 333 | ||
325 | static inline int hist_entry__tui_annotate(struct hist_entry *he __maybe_unused, | 334 | static inline int hist_entry__tui_annotate(struct hist_entry *he __maybe_unused, |
326 | struct perf_evsel *evsel __maybe_unused, | 335 | struct perf_evsel *evsel __maybe_unused, |