From: Adrian Hunter <adrian.hunter@intel.com>
To: Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>, Andi Kleen <ak@linux.intel.com>,
linux-kernel@vger.kernel.org, Namhyung Kim <namhyung@kernel.org>,
linux-perf-users@vger.kernel.org
Subject: Re: [PATCH 11/16] perf intel-pt: Add support for synthesizing callchains for regular events
Date: Fri, 17 Apr 2020 16:50:00 +0300 [thread overview]
Message-ID: <5b8f28f5-968f-bfff-68af-ed0350a90765@intel.com> (raw)
In-Reply-To: <20200416151443.GA2650@kernel.org>
On 16/04/20 6:14 pm, Arnaldo Carvalho de Melo wrote:
> Em Wed, Apr 01, 2020 at 01:16:08PM +0300, Adrian Hunter escreveu:
>> Currently, callchains can be synthesized only for synthesized events.
>> Support also synthesizing callchains for regular events.
>
> This is super cool, I wonder if we shouldn't do it automatically or just
> adding a new type of callchains, i.e.:
>
> perf record --call-graph pt uname
>
> Should take care of all the details, i.e. do the extra steps below
> behind the scenes.
>
> Possibly even find out that the workload specified was built with
> -fomit-frame-pointers, that the hardware has Intel PT and do all behind
> the scenes for:
>
> perf record -g uname
>
> Alternatively we could take some less seemingly far fetched approach and
> make this configurable via:
>
> perf config call-graph.record-mode=pt
>
> What do you think?
Adding a --call-graph option sounds reasonable, and config to define default
callgraph options. But this was done at Andi Kleen's request, so he may
want to comment.
next prev parent reply other threads:[~2020-04-17 13:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200401101613.6201-1-adrian.hunter@intel.com>
[not found] ` <20200401101613.6201-12-adrian.hunter@intel.com>
2020-04-16 15:14 ` [PATCH 11/16] perf intel-pt: Add support for synthesizing callchains for regular events Arnaldo Carvalho de Melo
2020-04-17 13:50 ` Adrian Hunter [this message]
2020-04-17 21:37 ` Arnaldo Carvalho de Melo
2020-04-20 3:04 ` Andi Kleen
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=5b8f28f5-968f-bfff-68af-ed0350a90765@intel.com \
--to=adrian.hunter@intel.com \
--cc=ak@linux.intel.com \
--cc=arnaldo.melo@gmail.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=namhyung@kernel.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;
as well as URLs for NNTP newsgroup(s).