Re: [PATCH 07/25] mm/csky: Use mm_fault_accounting()

From: Linus Torvalds
Date: Thu Jun 18 2020 - 19:00:10 EST


On Thu, Jun 18, 2020 at 3:28 PM Peter Xu <peterx@xxxxxxxxxx> wrote:
>
> > > if (regs)
> > > perf_sw_event(event_type, 1, regs, address);
>
> Sadly, this line seems to fail the compilation:

Yeah, I should have known that. We require a constant event ID,
because it uses the magical static keys.

So never mind. The perf_sw_event() calls can't be shared for two different ID's.

Linus