Home
last modified time | relevance | path

Searched refs:new_raw_count (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/arch/sh/kernel/
Dperf_event.c161 u64 prev_raw_count, new_raw_count; in sh_perf_event_update() local
179 new_raw_count = sh_pmu->read(idx); in sh_perf_event_update()
182 new_raw_count) != prev_raw_count) in sh_perf_event_update()
193 delta = (new_raw_count << shift) - (prev_raw_count << shift); in sh_perf_event_update()
/linux-6.1.9/drivers/perf/
Driscv_pmu.c101 u64 prev_raw_count, new_raw_count; in riscv_pmu_event_update() local
112 new_raw_count = rvpmu->ctr_read(event); in riscv_pmu_event_update()
114 new_raw_count); in riscv_pmu_event_update()
117 delta = (new_raw_count - prev_raw_count) & cmask; in riscv_pmu_event_update()
Darm_pmu.c244 u64 delta, prev_raw_count, new_raw_count; in armpmu_event_update() local
249 new_raw_count = armpmu->read_counter(event); in armpmu_event_update()
252 new_raw_count) != prev_raw_count) in armpmu_event_update()
255 delta = (new_raw_count - prev_raw_count) & max_period; in armpmu_event_update()
260 return new_raw_count; in armpmu_event_update()
Dfsl_imx8_ddr_perf.c465 u64 new_raw_count; in ddr_perf_event_update() local
469 new_raw_count = ddr_perf_read_counter(pmu, counter); in ddr_perf_event_update()
470 local64_add(new_raw_count, &event->count); in ddr_perf_event_update()
Darm-cci.c986 u64 delta, prev_raw_count, new_raw_count; in pmu_event_update() local
990 new_raw_count = pmu_read_counter(event); in pmu_event_update()
992 new_raw_count) != prev_raw_count); in pmu_event_update()
994 delta = (new_raw_count - prev_raw_count) & CCI_PMU_CNTR_MASK; in pmu_event_update()
998 return new_raw_count; in pmu_event_update()
Dxgene_pmu.c992 u64 delta, prev_raw_count, new_raw_count; in xgene_perf_event_update() local
996 new_raw_count = xgene_pmu->ops->read_counter(pmu_dev, GET_CNTR(event)); in xgene_perf_event_update()
999 new_raw_count) != prev_raw_count) in xgene_perf_event_update()
1002 delta = (new_raw_count - prev_raw_count) & pmu_dev->max_period; in xgene_perf_event_update()
/linux-6.1.9/arch/xtensa/kernel/
Dperf_event.c139 uint64_t prev_raw_count, new_raw_count; in xtensa_perf_event_update() local
144 new_raw_count = xtensa_pmu_read_counter(event->hw.idx); in xtensa_perf_event_update()
146 new_raw_count) != prev_raw_count); in xtensa_perf_event_update()
148 delta = (new_raw_count - prev_raw_count) & XTENSA_PMU_COUNTER_MASK; in xtensa_perf_event_update()
/linux-6.1.9/arch/alpha/kernel/
Dperf_event.c310 long prev_raw_count, new_raw_count; in alpha_perf_event_update() local
315 new_raw_count = alpha_read_pmc(idx); in alpha_perf_event_update()
318 new_raw_count) != prev_raw_count) in alpha_perf_event_update()
321 delta = (new_raw_count - (prev_raw_count & alpha_pmu->pmc_count_mask[idx])) + ovf; in alpha_perf_event_update()
333 return new_raw_count; in alpha_perf_event_update()
/linux-6.1.9/drivers/perf/hisilicon/
Dhisi_uncore_pmu.c294 u64 delta, prev_raw_count, new_raw_count; in hisi_uncore_pmu_event_update() local
298 new_raw_count = hisi_pmu->ops->read_counter(hisi_pmu, hwc); in hisi_uncore_pmu_event_update()
301 new_raw_count) != prev_raw_count); in hisi_uncore_pmu_event_update()
305 delta = (new_raw_count - prev_raw_count) & in hisi_uncore_pmu_event_update()
/linux-6.1.9/arch/arm/mach-imx/
Dmmdc.c309 u64 delta, prev_raw_count, new_raw_count; in mmdc_pmu_event_update() local
313 new_raw_count = mmdc_pmu_read_counter(pmu_mmdc, in mmdc_pmu_event_update()
316 new_raw_count) != prev_raw_count); in mmdc_pmu_event_update()
318 delta = (new_raw_count - prev_raw_count) & 0xFFFFFFFF; in mmdc_pmu_event_update()
/linux-6.1.9/arch/x86/events/
Drapl.c178 u64 prev_raw_count, new_raw_count; in rapl_event_update() local
184 rdmsrl(event->hw.event_base, new_raw_count); in rapl_event_update()
187 new_raw_count) != prev_raw_count) { in rapl_event_update()
200 delta = (new_raw_count << shift) - (prev_raw_count << shift); in rapl_event_update()
207 return new_raw_count; in rapl_event_update()
Dcore.c117 u64 prev_raw_count, new_raw_count; in x86_perf_event_update() local
132 rdpmcl(hwc->event_base_rdpmc, new_raw_count); in x86_perf_event_update()
135 new_raw_count) != prev_raw_count) in x86_perf_event_update()
146 delta = (new_raw_count << shift) - (prev_raw_count << shift); in x86_perf_event_update()
152 return new_raw_count; in x86_perf_event_update()
/linux-6.1.9/drivers/dma/idxd/
Dperfmon.c244 u64 prev_raw_count, new_raw_count, delta, p, n; in perfmon_pmu_event_update() local
250 new_raw_count = perfmon_pmu_read_counter(event); in perfmon_pmu_event_update()
252 new_raw_count) != prev_raw_count); in perfmon_pmu_event_update()
254 n = (new_raw_count << shift); in perfmon_pmu_event_update()
/linux-6.1.9/arch/x86/events/intel/
Dcstate.c366 u64 prev_raw_count, new_raw_count; in cstate_pmu_event_update() local
370 new_raw_count = cstate_pmu_read_counter(event); in cstate_pmu_event_update()
373 new_raw_count) != prev_raw_count) in cstate_pmu_event_update()
376 local64_add(new_raw_count - prev_raw_count, &event->count); in cstate_pmu_event_update()
Dds.c1906 u64 prev_raw_count, new_raw_count; in intel_pmu_save_and_restart_reload() local
1917 rdpmcl(hwc->event_base_rdpmc, new_raw_count); in intel_pmu_save_and_restart_reload()
1918 local64_set(&hwc->prev_count, new_raw_count); in intel_pmu_save_and_restart_reload()
1947 new = ((s64)(new_raw_count << shift) >> shift); in intel_pmu_save_and_restart_reload()
/linux-6.1.9/arch/loongarch/kernel/
Dperf_event.c340 u64 prev_raw_count, new_raw_count; in loongarch_pmu_event_update() local
344 new_raw_count = loongarch_pmu.read_counter(idx); in loongarch_pmu_event_update()
347 new_raw_count) != prev_raw_count) in loongarch_pmu_event_update()
350 delta = new_raw_count - prev_raw_count; in loongarch_pmu_event_update()
/linux-6.1.9/arch/arc/kernel/
Dperf_event.c284 u64 new_raw_count = arc_pmu_read_counter(idx); in arc_perf_event_update() local
285 s64 delta = new_raw_count - prev_raw_count; in arc_perf_event_update()
291 local64_set(&hwc->prev_count, new_raw_count); in arc_perf_event_update()
/linux-6.1.9/arch/sparc/kernel/
Dperf_event.c867 u64 prev_raw_count, new_raw_count; in sparc_perf_event_update() local
872 new_raw_count = sparc_pmu->read_pmc(idx); in sparc_perf_event_update()
875 new_raw_count) != prev_raw_count) in sparc_perf_event_update()
878 delta = (new_raw_count << shift) - (prev_raw_count << shift); in sparc_perf_event_update()
884 return new_raw_count; in sparc_perf_event_update()
/linux-6.1.9/arch/x86/events/amd/
Dibs.c144 perf_event_try_update(struct perf_event *event, u64 new_raw_count, int width) in perf_event_try_update() argument
160 new_raw_count) != prev_raw_count) in perf_event_try_update()
171 delta = (new_raw_count << shift) - (prev_raw_count << shift); in perf_event_try_update()
/linux-6.1.9/arch/csky/kernel/
Dperf_event.c927 uint64_t new_raw_count = sign_extend64( in csky_perf_event_update() local
929 int64_t delta = new_raw_count - prev_raw_count; in csky_perf_event_update()
935 local64_set(&hwc->prev_count, new_raw_count); in csky_perf_event_update()
/linux-6.1.9/arch/mips/kernel/
Dperf_event_mipsxx.c453 u64 prev_raw_count, new_raw_count; in mipspmu_event_update() local
458 new_raw_count = mipspmu.read_counter(idx); in mipspmu_event_update()
461 new_raw_count) != prev_raw_count) in mipspmu_event_update()
464 delta = new_raw_count - prev_raw_count; in mipspmu_event_update()