From: Namhyung Kim <namhyung@kernel.org>
To: David Ahern <dsahern@gmail.com>
Cc: Ryan Johnson <ryan.johnson@cs.utoronto.ca>,
Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
Chulmin Kim <cmkim@core.kaist.ac.kr>,
linux-perf-users@vger.kernel.org
Subject: Re: perf top -z not working?
Date: Tue, 23 Oct 2012 15:04:01 +0900 [thread overview]
Message-ID: <8762617mi6.fsf@sejong.aot.lge.com> (raw)
In-Reply-To: <50854633.30206@gmail.com> (David Ahern's message of "Mon, 22 Oct 2012 07:12:19 -0600")
On Mon, 22 Oct 2012 07:12:19 -0600, David Ahern wrote:
> On 10/22/12 5:50 AM, Ryan Johnson wrote:
>>>>> It seems that `perf top -z' does not behave as advertized, at
>>>>> least not on the 3.2.0-25 kernel (Ubuntu) that I'm running. The
>>>>> man page states that it should "zero history across display
>>>>> updates" but the counts still seem to accumulate (the total
>>>>> samples reported rises monotonically) and processes still show up
>>>>> in the display long after they have exited. Pressing `z' or `Z'
>>>>> seems to have no effect, either.
>>> Are you using the --tui or --stdio interface? Try with both and check if
>>> it works in one of them, I bet the problem is with --tui.
>> --stdio does the same, so I'll have to try updating my kernel like
>> Chulmin suggested (haven't had time to do that yet)
>
> The kernel has nothing to do with the feature. From builtin-top.c,
> this part is either not happening or more likely not happening
> correctly.
>
> if (top->zero)
> symbol__annotate_zero_histogram(symbol, top->sym_evsel->idx);
> else
> symbol__annotate_decay_histogram(symbol, top->sym_evsel->idx);
Why symbol__annotate_zero_histogram only? AFAICS it only zeros sym_hist
not hist_entry so meaningful just for annotation, right?
Anyway, it's called iff top->sym_filter_entry is set. Not sure what's
the intended behavior of the -z switch..
Thanks,
Namhyung
next prev parent reply other threads:[~2012-10-23 6:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-17 12:26 perf top -z not working? Ryan Johnson
2012-10-17 13:49 ` Chulmin Kim
2012-10-22 1:46 ` Arnaldo Carvalho de Melo
2012-10-22 11:50 ` Ryan Johnson
2012-10-22 13:12 ` David Ahern
2012-10-22 14:10 ` Ryan Johnson
2012-10-22 14:13 ` Chulmin Kim
2012-10-22 14:15 ` Chulmin Kim
2012-10-22 14:45 ` Arnaldo Carvalho de Melo
2012-10-22 15:01 ` David Ahern
2012-10-22 16:04 ` Ryan Johnson
2012-10-23 6:04 ` Namhyung Kim [this message]
2012-10-23 16:10 ` David Ahern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8762617mi6.fsf@sejong.aot.lge.com \
--to=namhyung@kernel.org \
--cc=acme@ghostprotocols.net \
--cc=cmkim@core.kaist.ac.kr \
--cc=dsahern@gmail.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=ryan.johnson@cs.utoronto.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.