perf: Provide a separate task context for swevents
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 7 Sep 2010 15:34:50 +0000 (17:34 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 9 Sep 2010 18:46:34 +0000 (20:46 +0200)
commit89a1e18731959e9953fae15ddc1a983eb15a4f19
tree5a52e77acb23f47254c94e23eb6ed35a422fce1d
parent8dc85d547285668e509f86c177bcd4ea055bcaaf
perf: Provide a separate task context for swevents

Since software events are always schedulable, mixing them up with
hardware events (who are not) can lead to funny scheduling oddities.

Giving them their own context solves this.

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/hw_breakpoint.c
kernel/perf_event.c