Re: [PATCH 1/2] perf pt: Mark PT return events as "return"

From: Andi Kleen
Date: Mon May 23 2016 - 20:51:05 EST


On Mon, May 23, 2016 at 03:05:08PM +0300, Adrian Hunter wrote:
> On 20/05/16 22:52, Andi Kleen wrote:
> > From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
> >
> > With perf script --itrace=cr we can synthesize calls and returns out of
> > a PT log. However both calls and returns are marked with the same event,
> > called branches. This makes it difficult to read and post process,
> > because calls and returns are somewhat diffferent.
>
> Did you consider the sample flags?
> e.g.

True. But reporting it in the event name looks nicer, so I think the patch
is still useful.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only