perf_counter: Fix COMM and MMAP events for cpu wide counters
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 29 May 2009 12:25:58 +0000 (14:25 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 May 2009 14:21:51 +0000 (16:21 +0200)
commitefb3d17240d80e27508d238809168120fe4b93a4
tree09c079a4ee4bfa531735b70691b8ab4d06d34e9b
parent012b84dae17126d8b5d159173091eb3db5a2bc43
perf_counter: Fix COMM and MMAP events for cpu wide counters

Commit a63eaf34ae6 ("perf_counter: Dynamically allocate tasks'
perf_counter_context struct") broke COMM and MMAP notification for
cpu wide counters by dropping out early if there was no task context,
thereby also not iterating the cpu context.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c