On Thu, Jun 18, 2020 at 3:28 PM Peter Xu <[email protected]> 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

