Searched refs:gp_counter_width (Results 1 – 3 of 3) sorted by relevance
18 pmu.gp_counter_width = this_cpu_property(X86_PROPERTY_PMU_GP_COUNTERS_BIT_WIDTH); in pmu_init()51 pmu.gp_counter_width = PMC_DEFAULT_WIDTH; in pmu_init()
65 u8 gp_counter_width; member
547 cnt.count &= (1ull << pmu.gp_counter_width) - 1; in check_counter_overflow()555 cnt.count &= (1ull << pmu.gp_counter_width) - 1; in check_counter_overflow()638 x &= (1ull << pmu.gp_counter_width) - 1; in check_rdpmc()699 count &= (1ull << pmu.gp_counter_width) - 1; in check_running_counter_wrmsr()718 uint64_t gp_counter_width = (1ull << pmu.gp_counter_width) - 1; in check_emulated_instr() local745 wrmsr(MSR_GP_COUNTERx(0), brnch_start & gp_counter_width); in check_emulated_instr()746 wrmsr(MSR_GP_COUNTERx(1), instr_start & gp_counter_width); in check_emulated_instr()865 u64 val_max_width = val_64 & ((1ull << pmu.gp_counter_width) - 1); in check_gp_counters_write_width()1010 printf("GP counter width: %d\n", pmu.gp_counter_width); in main()