@@ -3006,6 +3006,7 @@ void perf_get_x86_pmu_capability(struct x86_pmu_capability *cap)
* which available for all cores.
*/
cap->num_counters_gp = x86_pmu.num_counters;
+ cap->num_topdown_events = x86_pmu.num_topdown_events;
cap->num_counters_fixed = x86_pmu.num_counters_fixed;
cap->bit_width_gp = x86_pmu.cntval_bits;
cap->bit_width_fixed = x86_pmu.cntval_bits;
@@ -219,6 +219,7 @@ struct x86_pmu_capability {
int version;
int num_counters_gp;
int num_counters_fixed;
+ int num_topdown_events;
int bit_width_gp;
int bit_width_fixed;
unsigned int events_mask;