Re: [PATCH v2 4/5] perf/record: add support for sampling skid ip

From: Andi Kleen
Date: Mon Nov 06 2017 - 16:25:28 EST


On Thu, Nov 02, 2017 at 11:15:58AM -0700, Stephane Eranian wrote:
> This patch adds a new --skid-ip option to perf record
> to capture the unmodified interrupted instruction pointer in
> each sample. With this option, the kernel captures both the
> ip and skid ip. Unless precise mode is enabled both ip are
> the same. They may be different in precise mode depending
> on the event and precise sampling mode.
>
> $ perf record --skid-ip .....

perf record already has too many options. I would rather just make it a
event qualifier which is more flexible too

perf record -e cpu/cpu-cycles,skidip=1/

-Andi