]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Remove the perf_output_begin(.sample) argument
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 27 Jun 2011 14:47:16 +0000 (16:47 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 1 Jul 2011 09:06:35 +0000 (11:06 +0200)
commit077ee1684893518ad1401526316d70d8c4c1f76b
treee79d13a1096e751061af285265b1862d7e6dca70
parent6cd5e2d7019f2930826d5b9ed1c206e05c1e8709
perf: Remove the perf_output_begin(.sample) argument

Since only samples call perf_output_sample() its much saner (and more
correct) to put the sample logic in there than in the
perf_output_begin()/perf_output_end() pair.

Saves a useless argument, reduces conditionals and shrinks
struct perf_output_handle, win!

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-2crpvsx3cqu67q3zqjbnlpsc@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event_intel_ds.c
include/linux/perf_event.h
kernel/events/core.c
kernel/events/ring_buffer.c