Hi Julien[...]
Unfortunately this is not safe. i.e., event->owner is not guaranteed to
be stable (even NULL or an invalid pointer) (e.g. kernel created events
or task exit raced event_start on another CPU).
That said, one thing to note is that the ETM4x driver parses the eventThanks for this suggestion, I will try this approach and provide a v3.
config in each "event_start" call back, instead of doing once during the
event_init. If we move this to a onetime parsing at the event_init, with
additional checks in place (e.g, !is_kernel_event()), we may be able to
solve it.