perf: Fix the software context switch counter
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 26 Nov 2010 12:49:04 +0000 (13:49 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 26 Nov 2010 14:00:59 +0000 (15:00 +0100)
commitee6dcfa40a50fe12a3ae0fb4d2653c66c3ed6556
treee77ac01a6bf2106f7a2c22f00e43cb2960d72ba5
parentcc2067a51424dd25c10c1b1230b4222d8baec94d
perf: Fix the software context switch counter

Stephane noticed that because the perf_sw_event() call is inside the
perf_event_task_sched_out() call it won't get called unless we
have a per-task counter.

Reported-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_event.h
kernel/perf_event.c