]> git.baikalelectronics.ru Git - kernel.git/commit
arc: perf: Enable generic "cache-references" and "cache-misses" events
authorAlexey Brodkin <abrodkin@synopsys.com>
Thu, 25 Aug 2016 11:47:27 +0000 (14:47 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 30 Sep 2016 21:48:18 +0000 (14:48 -0700)
commit6364567bddac329420603c8745ef108d80253301
tree530bd17be9dd0642f3f04bd217eaf6ce255cf97d
parent02c786ba8569bb9adf9531146f3a29ef6e6d784d
arc: perf: Enable generic "cache-references" and "cache-misses" events

We used to live with PERF_COUNT_HW_CACHE_REFERENCES and
PERF_COUNT_HW_CACHE_REFERENCES not specified on ARC.

Those events are actually aliases to 2 cache events that we do support
and so this change sets "cache-reference" and "cache-misses" events
in the same way as "L1-dcache-loads" and L1-dcache-load-misses.

And while at it adding debug info for cache events as well as doing a
subtle fix in HW events debug info - config value is much better
represented by hex so we may see not only event index but as well other
control bits set (if they exist).

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-snps-arc@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/perf_event.h
arch/arc/kernel/perf_event.c