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>
Showing
- arch/x86/kernel/cpu/perf_event_intel_ds.c 1 addition, 1 deletionarch/x86/kernel/cpu/perf_event_intel_ds.c
- include/linux/perf_event.h 1 addition, 3 deletionsinclude/linux/perf_event.h
- kernel/events/core.c 20 additions, 6 deletionskernel/events/core.c
- kernel/events/ring_buffer.c 1 addition, 18 deletionskernel/events/ring_buffer.c
Loading
Please register or sign in to comment