lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1501172141-6579-1-git-send-email-treeze.taeung@gmail.com>
Date:   Fri, 28 Jul 2017 01:15:41 +0900
From:   Taeung Song <treeze.taeung@...il.com>
To:     Arnaldo Carvalho de Melo <acme@...nel.org>
Cc:     linux-kernel@...r.kernel.org, Jiri Olsa <jolsa@...hat.com>,
        Milian Wolff <milian.wolff@...b.com>,
        Namhyung Kim <namhyung@...nel.org>
Subject: [PATCH v4 0/9] perf annotate: Fix --show-total-period and support --show-nr-samples

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-v4' branch at

  git://github.com/taeung/linux-perf.git

Thanks,
Taeung

v4:
- Split big patches (Arnaldo)
- Initialize width for first column on the annotate browser (Arnaldo)

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: Widen "Event count" column when using
    --show-total-period
  perf annotate: Initialize proper width for first column
  perf anntoate browser: Fix the toggle total period view showing number
    of samples
  perf annotate browser: Show the proper header when using
    --show-total-period
  perf annotate stdio: Support --show-nr-samples option
  perf annotate browser: Support --show-nr-samples option
  perf annotate browser: Circulate percent, total period, samples view
  perf annotate: Check total period before calculating percent
  perf annotate: Calculate the percentage with period or number of
    samples

 tools/perf/builtin-annotate.c     |  2 ++
 tools/perf/ui/browsers/annotate.c | 50 +++++++++++++++++++++++++++++----------
 tools/perf/util/annotate.c        | 35 ++++++++++++++++++---------
 3 files changed, 64 insertions(+), 23 deletions(-)

-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ