From: Namhyung Kim <namhyung@kernel.org>
To: Jiri Olsa <jolsa@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Ingo Molnar <mingo@kernel.org>, Paul Mackerras <paulus@samba.org>,
Namhyung Kim <namhyung.kim@lge.com>,
LKML <linux-kernel@vger.kernel.org>,
David Ahern <dsahern@gmail.com>, Andi Kleen <andi@firstfloor.org>
Subject: Re: [PATCH 1/5] perf tools: Count filtered entries to total period also
Date: Mon, 27 Jan 2014 14:31:07 +0900 [thread overview]
Message-ID: <8738ka6les.fsf@sejong.aot.lge.com> (raw)
In-Reply-To: <20140123132100.GA1180@krava.brq.redhat.com> (Jiri Olsa's message of "Thu, 23 Jan 2014 14:21:00 +0100")
On Thu, 23 Jan 2014 14:21:00 +0100, Jiri Olsa wrote:
> On Thu, Jan 23, 2014 at 08:28:49AM +0900, Namhyung Kim wrote:
>> Currently if a sample was filtered by command line option, it just
>> dropped. But this affects final output in that the percentage can be
>> different since the filtered entries were not included to the total.
>>
>> But user might want to see the original percentages when filter
>> applied so change the behavior depends on a new symbol_conf.filter_
>> relative value in order to be controlled by user later.
>>
>> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
>
> SNIP
>
>> +++ b/tools/perf/util/hist.h
>> @@ -14,6 +14,13 @@ struct hist_entry;
>> struct addr_location;
>> struct symbol;
>>
>> +enum hist_filter {
>> + HIST_FILTER__DSO,
>> + HIST_FILTER__THREAD,
>> + HIST_FILTER__PARENT,
>> + HIST_FILTER__SYMBOL,
>> +};
>
> in thread__find_addr_map we still have:
> ...
> if ((cpumode == PERF_RECORD_MISC_GUEST_USER ||
> cpumode == PERF_RECORD_MISC_GUEST_KERNEL) &&
> !perf_guest)
> al->filtered = true;
> if ((cpumode == PERF_RECORD_MISC_USER ||
> cpumode == PERF_RECORD_MISC_KERNEL) &&
> !perf_host)
> al->filtered = true;
> ...
>
> seems like we need HIST_FILTER__GUEST|HOST
>
> also in machine__resolve_callchain_sample there's old (and superfluos) init:
> ...
> al.filtered = false;
> thread__find_addr_location(thread, machine, cpumode,
> MAP__FUNCTION, ip, &al);
> ...
Both seems to need to be changed - will fix.
Thanks,
Namhyung
next prev parent reply other threads:[~2014-01-27 5:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-22 23:28 [PATCHSET 0/5] perf tools: Update on filtered entries' percentage output (v3) Namhyung Kim
2014-01-22 23:28 ` [PATCH 1/5] perf tools: Count filtered entries to total period also Namhyung Kim
2014-01-23 13:21 ` Jiri Olsa
2014-01-27 5:31 ` Namhyung Kim [this message]
2014-01-23 13:38 ` Jiri Olsa
2014-01-27 5:35 ` Namhyung Kim
2014-01-22 23:28 ` [PATCH 2/5] perf ui/tui: Add support for showing relative percentage Namhyung Kim
2014-01-22 23:28 ` [PATCH 3/5] perf report: Add --percentage option Namhyung Kim
2014-01-22 23:28 ` [PATCH 4/5] perf report: Add report.percentage config option Namhyung Kim
2014-01-22 23:28 ` [PATCH 5/5] perf tools: Show absolute percentage by default Namhyung Kim
2014-01-23 14:24 ` Jiri Olsa
-- strict thread matches above, loose matches on Subject: below --
2014-01-14 4:43 [PATCHSET 0/5] perf tools: Update on filtered entries' percentage output Namhyung Kim
2014-01-14 4:43 ` [PATCH 1/5] perf tools: Count filtered entries to total period also Namhyung Kim
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=8738ka6les.fsf@sejong.aot.lge.com \
--to=namhyung@kernel.org \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@ghostprotocols.net \
--cc=andi@firstfloor.org \
--cc=dsahern@gmail.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=namhyung.kim@lge.com \
--cc=paulus@samba.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome