Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1686809 > unrolled thread

[PATCH v2 0/9] perf annotate: Fix --show-total-period and support --show-nr-samples

Started byTaeung Song <treeze.taeung@gmail.com>
First post2017-07-13 19:50 +0200
Last post2017-07-19 19:10 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 0/9] perf annotate: Fix --show-total-period and support --show-nr-samples Taeung Song <treeze.taeung@gmail.com> - 2017-07-13 19:50 +0200
    Re: [PATCH v2 0/9] perf annotate: Fix --show-total-period and  support --show-nr-samples Namhyung Kim <namhyung@kernel.org> - 2017-07-18 18:10 +0200
      Re: [PATCH v2 0/9] perf annotate: Fix --show-total-period and support  --show-nr-samples Taeung Song <treeze.taeung@gmail.com> - 2017-07-19 19:10 +0200

#1686809 — [PATCH v2 0/9] perf annotate: Fix --show-total-period and support --show-nr-samples

FromTaeung Song <treeze.taeung@gmail.com>
Date2017-07-13 19:50 +0200
Subject[PATCH v2 0/9] perf annotate: Fix --show-total-period and support --show-nr-samples
Message-ID<u2Qps-cO-7@gated-at.bofh.it>
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-v2' branch at

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

Thanks,
Taeung

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: Support the toggle number of samples with a 'e'
    hotkey
  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 |  42 ++++++++++---
 tools/perf/ui/gtk/annotate.c      |   4 +-
 tools/perf/util/annotate.c        | 125 ++++++++++++++++++++++++++------------
 tools/perf/util/annotate.h        |  15 +++--
 7 files changed, 148 insertions(+), 63 deletions(-)

-- 
2.7.4

[toc] | [next] | [standalone]


#1690407 — Re: [PATCH v2 0/9] perf annotate: Fix --show-total-period and support --show-nr-samples

FromNamhyung Kim <namhyung@kernel.org>
Date2017-07-18 18:10 +0200
SubjectRe: [PATCH v2 0/9] perf annotate: Fix --show-total-period and support --show-nr-samples
Message-ID<u4Der-4yU-53@gated-at.bofh.it>
In reply to#1686809
Hi Taeung,

On Fri, Jul 14, 2017 at 02:45:44AM +0900, Taeung Song wrote:
> 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-v2' branch at
> 
>   git://github.com/taeung/linux-perf.git
> 
> Thanks,
> Taeung
> 
> 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: Support the toggle number of samples with a 'e'
>     hotkey
>   perf annotate: Use the sample period when calculating the percentage

It seems I didn't receive the patch 3 and 5 for some reason.  Anyway
I have a few comments.

Thanks,
Namhyung


> 
>  tools/perf/builtin-annotate.c     |   6 +-
>  tools/perf/builtin-report.c       |  13 ++--
>  tools/perf/builtin-top.c          |   6 +-
>  tools/perf/ui/browsers/annotate.c |  42 ++++++++++---
>  tools/perf/ui/gtk/annotate.c      |   4 +-
>  tools/perf/util/annotate.c        | 125 ++++++++++++++++++++++++++------------
>  tools/perf/util/annotate.h        |  15 +++--
>  7 files changed, 148 insertions(+), 63 deletions(-)
> 
> -- 
> 2.7.4
> 

[toc] | [prev] | [next] | [standalone]


#1692034 — Re: [PATCH v2 0/9] perf annotate: Fix --show-total-period and support --show-nr-samples

FromTaeung Song <treeze.taeung@gmail.com>
Date2017-07-19 19:10 +0200
SubjectRe: [PATCH v2 0/9] perf annotate: Fix --show-total-period and support --show-nr-samples
Message-ID<u50E1-3cT-7@gated-at.bofh.it>
In reply to#1690407
Hi Namhyung,

I'm late.
Thanks for your review.

On 07/19/2017 01:07 AM, Namhyung Kim wrote:
> Hi Taeung,
> 
> On Fri, Jul 14, 2017 at 02:45:44AM +0900, Taeung Song wrote:
>> 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-v2' branch at
>>
>>    git://github.com/taeung/linux-perf.git
>>
>> Thanks,
>> Taeung
>>
>> 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: Support the toggle number of samples with a 'e'
>>      hotkey
>>    perf annotate: Use the sample period when calculating the percentage
> 
> It seems I didn't receive the patch 3 and 5 for some reason.  Anyway
> I have a few comments.
> 
> Thanks,
> Namhyung
> 
> 

Oops, I won't miss out your email when sending the patchset v3.

Thanks,
Taeung

>>
>>   tools/perf/builtin-annotate.c     |   6 +-
>>   tools/perf/builtin-report.c       |  13 ++--
>>   tools/perf/builtin-top.c          |   6 +-
>>   tools/perf/ui/browsers/annotate.c |  42 ++++++++++---
>>   tools/perf/ui/gtk/annotate.c      |   4 +-
>>   tools/perf/util/annotate.c        | 125 ++++++++++++++++++++++++++------------
>>   tools/perf/util/annotate.h        |  15 +++--
>>   7 files changed, 148 insertions(+), 63 deletions(-)
>>
>> -- 
>> 2.7.4
>>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web