]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
x86/intel_rdt: More precise L2 hit/miss measurements
authorReinette Chatre <reinette.chatre@intel.com>
Fri, 22 Jun 2018 22:42:28 +0000 (15:42 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 24 Jun 2018 13:35:48 +0000 (15:35 +0200)
commit8a2fc0e1bc0cd856101927188884d7c370b62188
tree81ff3b5d96ca3c9d8a010862ef496aebb53bd824
parent746e08590b864cf730d7bd23394e2d3fbb0f22b6
x86/intel_rdt: More precise L2 hit/miss measurements

Intel Goldmont processors supports non-architectural precise events that
can be used to give us more insight into the success of L2 cache
pseudo-locking on these platforms.

Introduce a new measurement trigger that will enable two precise events,
MEM_LOAD_UOPS_RETIRED.L2_HIT and MEM_LOAD_UOPS_RETIRED.L2_MISS, while
accessing pseudo-locked data. A new tracepoint, pseudo_lock_l2, is
created to make these results visible to the user.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: fenghua.yu@intel.com
Cc: tony.luck@intel.com
Cc: vikas.shivappa@linux.intel.com
Cc: gavin.hindman@intel.com
Cc: jithu.joseph@intel.com
Cc: dave.hansen@intel.com
Cc: hpa@zytor.com
Link: https://lkml.kernel.org/r/06b1456da65b543479dac8d9493e41f92f175d6c.1529706536.git.reinette.chatre@intel.com
arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c
arch/x86/kernel/cpu/intel_rdt_pseudo_lock_event.h