arm64: perf: factor out callchain code
authorMark Rutland <mark.rutland@arm.com>
Mon, 6 Jul 2015 11:23:54 +0000 (12:23 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 10:08:39 +0000 (11:08 +0100)
commit52da443ec4d0a807b720527eb474f9c2878cd671
treed558a2f8b991577f6f59b6e71e7d3c756b7f0fa2
parent23e94994464a7281838785675e09c8ed1055f62f
arm64: perf: factor out callchain code

We currently bundle the callchain handling code with the PMU code,
despite the fact the two are distinct, and the former can be useful even
in the absence of the latter.

Follow the example of arch/arm and factor the callchain handling into
its own file dependent on CONFIG_PERF_EVENTS rather than
CONFIG_HW_PERF_EVENTS.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/perf_event.h
arch/arm64/kernel/Makefile
arch/arm64/kernel/perf_callchain.c [new file with mode: 0644]
arch/arm64/kernel/perf_event.c