Lines Matching defs:counter
28 * - Each perf counter is defined as "struct kvm_pmc";
116 attr.sample_period = get_sample_period(pmc, pmc->counter);
124 * allocating the counter doesn't fail.
146 u64 counter = pmc->counter;
151 /* update counter, reset event value to avoid redundant accumulation */
152 counter += perf_event_pause(pmc->perf_event, true);
153 pmc->counter = counter & pmc_bitmask(pmc);
163 get_sample_period(pmc, pmc->counter)))