Skip to content
Commit 58ba4d5a authored by Andi Kleen's avatar Andi Kleen Committed by Thomas Gleixner
Browse files

perf/x86/intel: Hide TSX events when RTM is not supported



0day testing reported a perf test regression on Haswell systems without
RTM. Commit a5df70c3 hides the in_tx/in_tx_cp attributes when RTM is not
available, but the TSX events are still available in sysfs. Due to the
missing attributes the event parser fails on those files.

Don't show the TSX events in sysfs when RTM is not available on
Haswell/Broadwell/Skylake.

Fixes: a5df70c3 (perf/x86: Only show format attributes when supported)
Reported-by: default avatarkernel test robot <xiaolong.ye@intel.com>
Tested-by: default avatarJin Yao <yao.jin@linux.intel.com>
Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarPeter Zijlstra <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20171109000718.14137-1-andi@firstfloor.org
parent 516fb7f2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment