lkml.org 
[lkml]   [2011]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/4] perf hists browser: Honour symbol_conf.show_{nr_samples,total_period}
    Date
    From: Arnaldo Carvalho de Melo <acme@redhat.com>

    We lost that when we move it outside hist_entry__snprintf, but better
    leave it untangled of 'perf diff' stuff (pair_hist, etc).

    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Link: http://lkml.kernel.org/n/tip-qlhb6ictf5twykog6x344s0b@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    ---
    tools/perf/util/ui/browsers/hists.c | 10 ++++++++++
    1 files changed, 10 insertions(+), 0 deletions(-)

    diff --git a/tools/perf/util/ui/browsers/hists.c b/tools/perf/util/ui/browsers/hists.c
    index d762875..9e23bce 100644
    --- a/tools/perf/util/ui/browsers/hists.c
    +++ b/tools/perf/util/ui/browsers/hists.c
    @@ -577,6 +577,16 @@ static int hist_browser__show_entry(struct hist_browser *self,
    if (!current_entry || !self->b.navkeypressed)
    ui_browser__set_color(&self->b, HE_COLORSET_NORMAL);

    + if (symbol_conf.show_nr_samples) {
    + slsmg_printf(" %11u", entry->nr_events);
    + width -= 12;
    + }
    +
    + if (symbol_conf.show_total_period) {
    + slsmg_printf(" %12" PRIu64, entry->period);
    + width -= 13;
    + }
    +
    slsmg_write_nstring(s, width);
    ++row;
    ++printed;
    --
    1.6.2.5


    \
     
     \ /
      Last update: 2011-10-20 15:09    [W:0.020 / U:2.420 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site