* [PATCH v3 0/9] perf annotate: Fix --show-total-period and support --show-nr-samples
@ 2017-07-19 21:36 Taeung Song
0 siblings, 0 replies; only message in thread
From: Taeung Song @ 2017-07-19 21:36 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo
Cc: linux-kernel, Jiri Olsa, Milian Wolff, Namhyung Kim
Hello,
Currently the --show-total-period option of perf-annotate
is different from perf-report's.
It has two problem like below:
(Reported by Namhyung Kim and Milian Wolff)
1) Wrong column i.e. 'Percent' (even though using --show-total-period)
2) Show number of samples, not period
So fix this option on both the annotate stdio and TUI browser.
And support --show-nr-samples into perf-anntate
so that it correpond with perf-report's.
The code is available on 'perf/ann-fix-period-v3' branch at
git://github.com/taeung/linux-perf.git
Thanks,
Taeung
v3:
- Circulate the three view (Percent, Event count, Samples) (Namhyung)
- Calculate the percent with period or number of samples (Namhyung)
v2:
- Separate the first patch into respective paches for easy review (Arnaldo)
- Add a patch to introduce 'struct sym_hist_entry' (Arnaldo)
- disasm__calc_percent() could receive a pointer to a struct sym_hist_entry
instead of two pointer (Arnaldo)
- Add a sym_hist_entry into struct disasm_line_samples (Arnaldo)
- Fix a case that can't switch 'the total period view' to
'the number of samples view' on the annotate TUI browser (Arnaldo)
- Calculate the percentage with 'period', not number of samples
Taeung Song (9):
perf annotate: Introduce struct sym_hist_entry
perf annotate: Properly rename 'sum' to 'total_samples' in struct
sym_hist
perf annotate: Fix wrong --show-total-period option showing number of
samples
perf annotate: Show the proper header when using --show-total-period
perf anntoate browser: Fix the toggle total period view to show
period, not number of samples
perf annotate browser: Show the proper header when using
--show-total-period
perf annotate: Support --show-nr-samples option
perf annotate browser: Circulate percent, total period, samples view
perf annotate: Use the sample period when calculating the percentage
tools/perf/builtin-annotate.c | 6 +-
tools/perf/builtin-report.c | 13 ++--
tools/perf/builtin-top.c | 6 +-
tools/perf/ui/browsers/annotate.c | 52 +++++++++++----
tools/perf/ui/gtk/annotate.c | 4 +-
tools/perf/util/annotate.c | 131 +++++++++++++++++++++++++++-----------
tools/perf/util/annotate.h | 15 +++--
7 files changed, 161 insertions(+), 66 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-07-19 21:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-19 21:36 [PATCH v3 0/9] perf annotate: Fix --show-total-period and support --show-nr-samples Taeung Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®