OSDN Git Service

x86/intel_rdt: Re-enable pseudo-lock measurements
authorReinette Chatre <reinette.chatre@intel.com>
Wed, 19 Sep 2018 17:29:11 +0000 (10:29 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 3 Oct 2018 19:53:35 +0000 (21:53 +0200)
commit53ed74af05517cf5fe83d87c4bb7ab998adfd631
tree695de6a7188fe29934da4565066ae0fba65aab0e
parentdd45407c0b2445bc2aa0ecfea744d5af3a146577
x86/intel_rdt: Re-enable pseudo-lock measurements

Commit 4a7a54a55e72 ("x86/intel_rdt: Disable PMU access") disabled
measurements of pseudo-locked regions because of incorrect usage
of the performance monitoring hardware.

Cache pseudo-locking measurements are now done correctly with the
in-kernel perf API and its use can be re-enabled at this time.

The adjustment to the in-kernel perf API also separated the L2 and L3
measurements that can be triggered separately from user space. The
re-enabling of the measurements is thus not a simple revert of the
original disable in order to accommodate the additional parameter
possible.

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: peterz@infradead.org
Cc: acme@kernel.org
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/bfb9fc31692e0c62d9ca39062e55eceb6a0635b5.1537377064.git.reinette.chatre@intel.com
arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c