diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2015-06-14 00:41:25 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2015-08-17 06:33:30 +0200 |
commit | 9bd46da45edd9701bcb2a221d58afe7d01febd1d (patch) | |
tree | b7e0fb6b38b05a205b4ddd52352e848ed99b8e3e /arch/xtensa/kernel/Makefile | |
parent | xtensa: count software page fault perf events (diff) | |
download | linux-9bd46da45edd9701bcb2a221d58afe7d01febd1d.tar.xz linux-9bd46da45edd9701bcb2a221d58afe7d01febd1d.zip |
xtensa: implement counting and sampling perf events
Xtensa Performance Monitor Module has up to 8 32 bit wide performance
counters. Each counter may be enabled independently and can count any
single type of hardware performance events. Event counting may be enabled
and disabled globally (per PMM).
Each counter has status register with bits indicating if the counter has
been overflown and may be programmed to raise profiling IRQ on overflow.
This IRQ is used to rewind counters and allow for counting more than 2^32
samples for counting events and to report samples for sampling events.
For more details see Tensilica Debug User's Guide, chapter 8
"Performance monitor module".
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel/Makefile')
-rw-r--r-- | arch/xtensa/kernel/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/xtensa/kernel/Makefile b/arch/xtensa/kernel/Makefile index d3a0f0fd56dd..547a757e6fa2 100644 --- a/arch/xtensa/kernel/Makefile +++ b/arch/xtensa/kernel/Makefile @@ -13,6 +13,7 @@ obj-$(CONFIG_PCI) += pci.o obj-$(CONFIG_MODULES) += xtensa_ksyms.o module.o obj-$(CONFIG_FUNCTION_TRACER) += mcount.o obj-$(CONFIG_SMP) += smp.o mxhead.o +obj-$(CONFIG_XTENSA_VARIANT_HAVE_PERF_EVENTS) += perf_event.o AFLAGS_head.o += -mtext-section-literals |