[PATCH v2 4/5] perf/x86/intel/bts: Fix BTS PMI detection

2016-09-06 Thread Alexander Shishkin
Since BTS doesn't have a dedicated PMI status bit, the driver needs to take extra care to check for the condition that triggers it to avoid spurious NMI warnings. Regardless of the local BTS context state, the only way of knowing that the NMI is ours is to compare the write pointer against the

[PATCH v2 4/5] perf/x86/intel/bts: Fix BTS PMI detection

2016-09-06 Thread Alexander Shishkin
Since BTS doesn't have a dedicated PMI status bit, the driver needs to take extra care to check for the condition that triggers it to avoid spurious NMI warnings. Regardless of the local BTS context state, the only way of knowing that the NMI is ours is to compare the write pointer against the