Searched refs:cntr_mask (Results 1 – 6 of 6) sorted by relevance
| /linux/arch/x86/events/ |
| H A D | rapl.c | 143 unsigned int cntr_mask; member 411 if (!(rapl_pmus->cntr_mask & (1 << bit))) in rapl_pmu_event_init() 658 int num_counters = hweight32(rapl_pmus_pkg->cntr_mask); in rapl_advertise() 661 num_counters += hweight32(rapl_pmus_core->cntr_mask); in rapl_advertise() 667 if (rapl_pmus_pkg->cntr_mask & (1 << i)) { in rapl_advertise() 673 if (rapl_pmus_core && (rapl_pmus_core->cntr_mask & (1 << PERF_RAPL_CORE))) in rapl_advertise() 917 rapl_pmus_pkg->cntr_mask = perf_msr_probe(rapl_model->rapl_pkg_msrs, in rapl_pmu_init() 934 rapl_pmus_core->cntr_mask = perf_msr_probe(rapl_model->rapl_core_msrs, in rapl_pmu_init()
|
| H A D | core.c | 207 u64 cntr_mask = x86_pmu.cntr_mask64; in get_possible_counter_mask() local 211 return cntr_mask; in get_possible_counter_mask() 214 cntr_mask |= x86_pmu.hybrid_pmu[i].cntr_mask64; in get_possible_counter_mask() 216 return cntr_mask; in get_possible_counter_mask() 221 u64 cntr_mask = get_possible_counter_mask(); in reserve_pmc_hardware() local 224 for_each_set_bit(i, (unsigned long *)&cntr_mask, X86_PMC_IDX_MAX) { in reserve_pmc_hardware() 229 for_each_set_bit(i, (unsigned long *)&cntr_mask, X86_PMC_IDX_MAX) { in reserve_pmc_hardware() 238 for_each_set_bit(i, (unsigned long *)&cntr_mask, end) in reserve_pmc_hardware() 244 for_each_set_bit(i, (unsigned long *)&cntr_mask, end) in reserve_pmc_hardware() 252 u64 cntr_mask = get_possible_counter_mask(); in release_pmc_hardware() local [all …]
|
| H A D | perf_event.h | 742 unsigned long cntr_mask[BITS_TO_LONGS(X86_PMC_IDX_MAX)]; member 855 unsigned long cntr_mask[BITS_TO_LONGS(X86_PMC_IDX_MAX)]; member 1237 bool check_hw_exists(struct pmu *pmu, unsigned long *cntr_mask, 1845 static inline u64 intel_pmu_pebs_mask(u64 cntr_mask) in intel_pmu_pebs_mask() argument 1847 return MAX_PEBS_EVENTS_MASK & cntr_mask; in intel_pmu_pebs_mask()
|
| /linux/drivers/perf/ |
| H A D | arm_pmu.c | 756 for_each_set_bit(idx, armpmu->cntr_mask, ARMPMU_MAX_HWEVENTS) { in cpu_pm_pmu_setup() 945 pmu->name, bitmap_weight(pmu->cntr_mask, ARMPMU_MAX_HWEVENTS), in armpmu_register() 946 ARMPMU_MAX_HWEVENTS, &pmu->cntr_mask, in armpmu_register()
|
| /linux/arch/x86/events/intel/ |
| H A D | ds.c | 1800 u64 cntr_mask; in intel_get_arch_pebs_data_config() local 1807 cntr_mask = (PEBS_DATACFG_CNTR_MASK << PEBS_DATACFG_CNTR_SHIFT) | in intel_get_arch_pebs_data_config() 1810 pebs_data_cfg |= cpuc->pebs_data_cfg & cntr_mask; in intel_get_arch_pebs_data_config()
|
| /linux/arch/arm64/kvm/ |
| H A D | pmu-emul.c | 1025 return bitmap_weight(arm_pmu->cntr_mask, ARMV8_PMU_MAX_GENERAL_COUNTERS); in kvm_arm_pmu_get_max_counters()
|