[GITLAB] - UPGRADE TO v12 on Wednesday the 18th of December at 11.30AM
The perf_event overflow handler does not receive any caller-derived
argument, so many callers need to resort to looking up the perf_event
in their local data structure. This is ugly and doesn't scale if a
single callback services many perf_events.
Fix by adding a context parameter to perf_event_create_kernel_counter()
(and derived hardware breakpoints APIs) and storing it in the perf_event.
The field can be accessed from the callback as event->overflow_handler_context.
All callers are updated.
Signed-off-by: Avi Kivity <email@example.com>
Signed-off-by: Peter Zijlstra <firstname.lastname@example.org>
Link: http://email@example.comSigned-off-by: Ingo Molnar <firstname.lastname@example.org>