perf: Rework free paths
authorPeter Zijlstra <peterz@infradead.org>
Mon, 5 May 2014 10:11:24 +0000 (12:11 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 7 May 2014 11:44:19 +0000 (13:44 +0200)
commit683ede43dd412c6cad0d23578a018409ac9c683e
tree18a640da4a9355e3ef9b7944f62ab4303eed122d
parent63342411efd2d9350ad405205da036cd45ed1640
perf: Rework free paths

Primarily make perf_event_release_kernel() into put_event(), this will
allow kernel space to create per-task inherited events, and is safer
in general.

Also, document the free_event() assumptions.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-rk9pvr6e1d0559lxstltbztc@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c