Re: [RFC PATCH] perf/core: exposing type of context-switch-out event
From: Andi Kleen
Date: Thu Mar 01 2018 - 13:08:28 EST
On Thu, Mar 01, 2018 at 06:40:04PM +0300, Alexey Budankov wrote:
> Hi,
>
> This patch prototypes exposing the type of context-switch-out event using
> PERF_RECORD_MISC_EXT_RESERVED bit for PERF_RECORD_SWITCH[_CPU_WIDE] records.
It would be better to define an actually named bit in perf_event.h.
It can be the same value.
Also we would need a patch for perf script / perf report -D to print this
information.
The rest looks good to me.
-Andi