perf_events: Fix bad software/trace event recursion counting
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 24 Nov 2009 19:38:22 +0000 (20:38 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 24 Nov 2009 20:34:00 +0000 (21:34 +0100)
commitfe6126722718e51fba4879517c11ac12d9775bcc
tree12a2c8f0f39fd1051dfa0a1132f5c07f9a733362
parent1261a02a0c0ab8e643125705f0d1d83e5090e4d1
perf_events: Fix bad software/trace event recursion counting

Commit 4ed7c92d68a5387ba5f7030dc76eab03558e27f5
(perf_events: Undo some recursion damage) has introduced a bad
reference counting of the recursion context. putting the context
behaves like getting it, dropping every software/trace events
after the first one in a context.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <1259091502-5171-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c