diff options
author | Matt Fleming <matt@codeblueprint.co.uk> | 2016-08-24 16:12:08 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-09-16 17:19:49 +0300 |
commit | 080fe0b790ad438fc1b61621dac37c1964ce7f35 (patch) | |
tree | a8629c8fb6fd22c2942a17de410276ca8c3009ca /arch/arm/mach-orion5x | |
parent | 1155bafcb79208abc6ae234c6e135ac70607755c (diff) | |
download | linux-080fe0b790ad438fc1b61621dac37c1964ce7f35.tar.xz |
perf/x86/amd: Make HW_CACHE_REFERENCES and HW_CACHE_MISSES measure L2
While the Intel PMU monitors the LLC when perf enables the
HW_CACHE_REFERENCES and HW_CACHE_MISSES events, these events monitor
L1 instruction cache fetches (0x0080) and instruction cache misses
(0x0081) on the AMD PMU.
This is extremely confusing when monitoring the same workload across
Intel and AMD machines, since parameters like,
$ perf stat -e cache-references,cache-misses
measure completely different things.
Instead, make the AMD PMU measure instruction/data cache and TLB fill
requests to the L2 and instruction/data cache and TLB misses in the L2
when HW_CACHE_REFERENCES and HW_CACHE_MISSES are enabled,
respectively. That way the events measure unified caches on both
platforms.
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: <stable@vger.kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1472044328-21302-1-git-send-email-matt@codeblueprint.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/arm/mach-orion5x')
0 files changed, 0 insertions, 0 deletions