[PATCH 00/20] perf annotate: Make symbol__annotate_fprintf2 local
From: Jiri Olsa
Date: Sat Aug 04 2018 - 09:05:36 EST
hi,
Stephane asked for key/option switch between local/global
percentage in annotation output/browser [1]. Local means
% within symbol, global within the whole perf data.
Adding the support to specify this by new --precent-type
option added for perf annotate and report.
Also adding 'p' key binding to annotation browser to change
between local/global percentages.
Also available in:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/fixes
thanks,
jirka
[1] https://marc.info/?l=linux-kernel&m=153195093118669&w=2
---
Jiri Olsa (20):
perf annotate: Make symbol__annotate_fprintf2 local
perf annotate: Make annotation_line__max_percent static
perf annotate: Get rid of annotation__scnprintf_samples_period
perf annotate: Rename struct annotation_line::samples* to data*
perf annotate: Rename local sample variables to data
perf annotate: Rename hist to sym_hist in annotation__calc_percent
perf annotate: Loop group events directly in annotation__calc_percent
perf annotate: Switch struct annotation_data::percent to array
perf annotate: Add PERCENT_HITS_GLOBAL percent value
perf annotate: Add PERCENT_PERIOD_LOCAL percent value
perf annotate: Add PERCENT_PERIOD_GLOBAL percent value
perf annotate: Add percent_type to struct annotation_options
perf annotate: Pass struct annotation_options to symbol__calc_lines
perf annotate: Pass struct annotation_options to map_symbol__annotation_dump
perf annotate: Pass browser percent_type in annotate_browser__calc_percent
perf annotate: Add support to togle percent type
perf annotate: Make local period the default percent type
perf annotate: Display percent type in stdio output
perf annotate: Add --percent-type option
perf report: Add --percent-type option
tools/perf/Documentation/perf-annotate.txt | 9 ++++
tools/perf/Documentation/perf-report.txt | 9 ++++
tools/perf/builtin-annotate.c | 4 ++
tools/perf/builtin-report.c | 3 ++
tools/perf/ui/browsers/annotate.c | 81 +++++++++++++++++++++++++-------
tools/perf/util/annotate.c | 302 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------------------------
tools/perf/util/annotate.h | 55 ++++++++++++++++------
tools/perf/util/evsel.h | 7 +++
8 files changed, 319 insertions(+), 151 deletions(-)