mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 17:31:37 -04:00
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf fixes from Thomas Gleixner:
"Three fixlets for perf:
- add a missing NULL pointer check in the intel BTS driver
- make BTS an exclusive PMU because BTS can only handle one event at
a time
- ensure that exclusive events are limited to one PMU so that several
exclusive events can be scheduled on different PMU instances"
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf/core: Limit matching exclusive events to one PMU
perf/x86/intel/bts: Make it an exclusive PMU
perf/x86/intel/bts: Make sure debug store is valid
This commit is contained in:
@@ -3929,7 +3929,7 @@ static void exclusive_event_destroy(struct perf_event *event)
|
||||
|
||||
static bool exclusive_event_match(struct perf_event *e1, struct perf_event *e2)
|
||||
{
|
||||
if ((e1->pmu->capabilities & PERF_PMU_CAP_EXCLUSIVE) &&
|
||||
if ((e1->pmu == e2->pmu) &&
|
||||
(e1->cpu == e2->cpu ||
|
||||
e1->cpu == -1 ||
|
||||
e2->cpu == -1))
|
||||
|
||||
Reference in New Issue
Block a user