From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Stephane Eranian <eranian@google.com>
Cc: LKML <linux-kernel@vger.kernel.org>, Jiri Olsa <jolsa@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: [RFC] perf script: callchain handling is not useful
Date: Wed, 29 Aug 2018 10:54:40 -0300 [thread overview]
Message-ID: <20180829135440.GA25381@kernel.org> (raw)
In-Reply-To: <CABPqkBTT-PSP+0sZc-EyrRtOLfLVPxOxwuDpxhGhGZLOe5L0CA@mail.gmail.com>
Em Tue, Aug 28, 2018 at 07:41:31PM -0700, Stephane Eranian escreveu:
> Hi,
>
> I am doing the following simple collection with callchain and load profiling:
>
> $ perf record -g -d -e cpu/event=0xd0,umask=0x81/pp my_test_program
>
> But when I type:
> $ perf script -F ip,addr
> ffff9d4821346878
> ffffffff9d58df25
> ffffffff9d58e054
> ffffffff9d5965bb
> ffffffff9d640650
> ffffffff9d697d06
> ffffffff9d63ec60
> ffffffff9d640322
> ffffffff9d64070c
> ffffffff9d455a60
> 7030c7
>
> ffff9d4638ba84a0
> ffffffff9d5df447
> ffffffff9d5eaf4a
> ffffffff9d63e165
> ffffffff9d63e439
> ffffffff9d697d98
> ffffffff9d63ec60
> ffffffff9d640322
> ffffffff9d64070c
> ffffffff9d455a60
> 7030c7
> I also see the callchain and it is not clear which is the IP. Further
> more parsing becomes more difficult because of multiple lines per
> sample. I understand that multiline is likely because of
> symbolization. But if I don't want symbolization, it should be
> possible to print all in one line.
Humm, to have this not break possibly existing scripts, perhaps we can
have something like:
$ perf script -F ip,-callchain,addr
?
And if asked explicitely for the callchain, then it gets added in the
same line?
- Arnaldo
> The current output is not very useful. You expect perf script to give
> you one line per sample and only what you want. Callchain != IP.
>
> I think the following should happen:
> - do not print callchain when asked for the IP. Create a callchain filter.
> - print callchain on the same line, much like what is done for brstack
>
> It is not clear to me why callchain and ip were lumped together.
> Any opinion on my proposal?
> Thanks.
next prev parent reply other threads:[~2018-08-29 13:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-29 2:41 [RFC] perf script: callchain handling is not useful Stephane Eranian
2018-08-29 13:54 ` Arnaldo Carvalho de Melo [this message]
2018-08-29 15:14 ` Stephane Eranian
2018-08-30 0:33 ` Namhyung Kim
2018-08-30 5:01 ` Stephane Eranian
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=20180829135440.GA25381@kernel.org \
--to=acme@kernel.org \
--cc=eranian@google.com \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.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 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.