perf: Multiple task contexts
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 2 Sep 2010 14:50:03 +0000 (16:50 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 9 Sep 2010 18:46:33 +0000 (20:46 +0200)
commit8dc85d547285668e509f86c177bcd4ea055bcaaf
tree5474dd6c31952b342f0a3f1bcec09e3049129264
parenteb184479874238393ac186c4e054d24311c34aaa
perf: Multiple task contexts

Provide the infrastructure for multiple task contexts.

A more flexible approach would have resulted in more pointer chases
in the scheduling hot-paths. This approach has the limitation of a
static number of task contexts.

Since I expect most external PMUs to be system wide, or at least node
wide (as per the intel uncore unit) they won't actually need a task
context.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: paulus <paulus@samba.org>
Cc: stephane eranian <eranian@googlemail.com>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Lin Ming <ming.m.lin@intel.com>
Cc: Yanmin <yanmin_zhang@linux.intel.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_event.h
include/linux/sched.h
kernel/perf_event.c