Files
linux/arch/sh/kernel
Avi Kivity 4dc0da8696 perf: Add context field to perf_event
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 <avi@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1309362157-6596-2-git-send-email-avi@redhat.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2011-07-01 11:06:38 +02:00
..
2010-09-30 09:43:32 +09:00
2010-01-12 15:22:26 +09:00
2010-04-26 19:08:55 +09:00
2010-06-02 16:31:42 +09:00
2010-11-01 09:49:04 -04:00
2010-11-01 09:49:04 -04:00
2010-10-07 14:08:55 +01:00
2011-03-31 11:26:23 -03:00
2010-06-14 17:06:10 +09:00
2010-04-26 19:08:55 +09:00
2010-07-14 17:14:00 +10:00
2010-11-01 09:49:04 -04:00
2009-09-01 17:38:32 +09:00
2010-12-16 11:36:43 +01:00
2010-06-14 15:16:53 +09:00
2011-03-31 11:26:23 -03:00
2010-01-12 18:42:52 +09:00
2010-02-15 14:49:37 +09:00
…