-
- Downloads
perf: Generalize callchain_store()
callchain_store() is the same on every archs, inline it in perf_event.h and rename it to perf_callchain_store() to avoid any collision. This removes repetitive code. Signed-off-by:Frederic Weisbecker <fweisbec@gmail.com> Acked-by:
Paul Mackerras <paulus@samba.org> Tested-by:
Will Deacon <will.deacon@arm.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Stephane Eranian <eranian@google.com> Cc: David Miller <davem@davemloft.net> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Borislav Petkov <bp@amd64.org>
Showing
- arch/arm/kernel/perf_event.c 4 additions, 11 deletionsarch/arm/kernel/perf_event.c
- arch/powerpc/kernel/perf_callchain.c 14 additions, 26 deletionsarch/powerpc/kernel/perf_callchain.c
- arch/sh/kernel/perf_callchain.c 3 additions, 8 deletionsarch/sh/kernel/perf_callchain.c
- arch/sparc/kernel/perf_event.c 10 additions, 16 deletionsarch/sparc/kernel/perf_event.c
- arch/x86/kernel/cpu/perf_event.c 7 additions, 13 deletionsarch/x86/kernel/cpu/perf_event.c
- include/linux/perf_event.h 7 additions, 0 deletionsinclude/linux/perf_event.h
Loading
Please register or sign in to comment