History

perf/x86/intel/pt: Remove software double buffering PMU capability

Now that all AUX allocations are high-order by default, the software double buffering PMU capability doesn't make sense any more, get rid of it. In case some PMUs choose to opt out, we can re-introduce it.

Alexander Shishkin committed 7 years ago

Commit 72e830f1 parent 26ae4f42 files · +1 −3Browse files

Unified · Split

2 files
  1. arch/x86/events/intel/pt.c +1 −2
  2. include/linux/perf_event.h +0 −1
arch/x86/events/intel/pt.c+1−2
@@ -1525,8 +1525,7 @@ static __init int pt_init(void) · 1524 unmodified lines
15251525 }
15261526
15271527 if (!intel_pt_validate_hw_cap(PT_CAP_topa_multiple_entries))
1528− pt_pmu.pmu.capabilities =
1529− PERF_PMU_CAP_AUX_NO_SG | PERF_PMU_CAP_AUX_SW_DOUBLEBUF;
1528+ pt_pmu.pmu.capabilities = PERF_PMU_CAP_AUX_NO_SG;
15301529
15311530 pt_pmu.pmu.capabilities |= PERF_PMU_CAP_EXCLUSIVE | PERF_PMU_CAP_ITRACE;
15321531 pt_pmu.pmu.attr_groups = pt_attr_groups;
include/linux/perf_event.h+0−1
@@ -240,7 +240,6 @@ struct perf_event; · 239 unmodified lines
240240 #define PERF_PMU_CAP_NO_INTERRUPT 0x01
241241 #define PERF_PMU_CAP_NO_NMI 0x02
242242 #define PERF_PMU_CAP_AUX_NO_SG 0x04
243−#define PERF_PMU_CAP_AUX_SW_DOUBLEBUF 0x08
244243 #define PERF_PMU_CAP_EXCLUSIVE 0x10
245244 #define PERF_PMU_CAP_ITRACE 0x20
246245 #define PERF_PMU_CAP_HETEROGENEOUS_CPUS 0x40