/linux-6.6.21/arch/sh/kernel/ |
D | perf_event.c | 161 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.6.21/arch/xtensa/kernel/ |
D | perf_event.c | 148 uint64_t prev_raw_count, new_raw_count; in xtensa_perf_event_update() local 153 new_raw_count = xtensa_pmu_read_counter(event->hw.idx); in xtensa_perf_event_update() 155 new_raw_count) != prev_raw_count); in xtensa_perf_event_update() 157 delta = (new_raw_count - prev_raw_count) & XTENSA_PMU_COUNTER_MASK; in xtensa_perf_event_update()
|
/linux-6.6.21/drivers/perf/ |
D | riscv_pmu.c | 166 u64 prev_raw_count, new_raw_count; in riscv_pmu_event_update() local 177 new_raw_count = rvpmu->ctr_read(event); in riscv_pmu_event_update() 179 new_raw_count); in riscv_pmu_event_update() 182 delta = (new_raw_count - prev_raw_count) & cmask; in riscv_pmu_event_update()
|
D | arm_pmu.c | 246 u64 delta, prev_raw_count, new_raw_count; in armpmu_event_update() local 251 new_raw_count = armpmu->read_counter(event); in armpmu_event_update() 254 new_raw_count) != prev_raw_count) in armpmu_event_update() 257 delta = (new_raw_count - prev_raw_count) & max_period; in armpmu_event_update() 262 return new_raw_count; in armpmu_event_update()
|
D | fsl_imx8_ddr_perf.c | 479 u64 new_raw_count; in ddr_perf_event_update() local 483 new_raw_count = ddr_perf_read_counter(pmu, counter); in ddr_perf_event_update() 487 new_raw_count &= CYCLES_COUNTER_MASK; in ddr_perf_event_update() 490 local64_add(new_raw_count, &event->count); in ddr_perf_event_update()
|
D | fsl_imx9_ddr_perf.c | 404 u64 new_raw_count; in ddr_perf_event_update() local 406 new_raw_count = ddr_perf_read_counter(pmu, counter); in ddr_perf_event_update() 407 local64_add(new_raw_count, &event->count); in ddr_perf_event_update()
|
D | arm-cci.c | 983 u64 delta, prev_raw_count, new_raw_count; in pmu_event_update() local 987 new_raw_count = pmu_read_counter(event); in pmu_event_update() 989 new_raw_count) != prev_raw_count); in pmu_event_update() 991 delta = (new_raw_count - prev_raw_count) & CCI_PMU_CNTR_MASK; in pmu_event_update() 995 return new_raw_count; in pmu_event_update()
|
D | xgene_pmu.c | 992 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.6.21/arch/alpha/kernel/ |
D | perf_event.c | 310 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.6.21/drivers/perf/hisilicon/ |
D | hisi_uncore_pmu.c | 296 u64 delta, prev_raw_count, new_raw_count; in hisi_uncore_pmu_event_update() local 300 new_raw_count = hisi_pmu->ops->read_counter(hisi_pmu, hwc); in hisi_uncore_pmu_event_update() 303 new_raw_count) != prev_raw_count); in hisi_uncore_pmu_event_update() 307 delta = (new_raw_count - prev_raw_count) & in hisi_uncore_pmu_event_update()
|
/linux-6.6.21/arch/arm/mach-imx/ |
D | mmdc.c | 310 u64 delta, prev_raw_count, new_raw_count; in mmdc_pmu_event_update() local 314 new_raw_count = mmdc_pmu_read_counter(pmu_mmdc, in mmdc_pmu_event_update() 317 new_raw_count) != prev_raw_count); in mmdc_pmu_event_update() 319 delta = (new_raw_count - prev_raw_count) & 0xFFFFFFFF; in mmdc_pmu_event_update()
|
/linux-6.6.21/arch/x86/events/ |
D | rapl.c | 178 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()
|
D | core.c | 119 u64 prev_raw_count, new_raw_count; in x86_perf_event_update() local 134 rdpmcl(hwc->event_base_rdpmc, new_raw_count); in x86_perf_event_update() 136 &prev_raw_count, new_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.6.21/drivers/perf/amlogic/ |
D | meson_ddr_pmu_core.c | 88 u64 new_raw_count = 0; in meson_ddr_perf_event_update() local 100 new_raw_count = sum_dc.all_cnt; in meson_ddr_perf_event_update() 111 new_raw_count = sum_dc.channel_cnt[idx]; in meson_ddr_perf_event_update() 115 local64_set(&event->count, new_raw_count); in meson_ddr_perf_event_update()
|
/linux-6.6.21/drivers/dma/idxd/ |
D | perfmon.c | 244 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 &prev_raw_count, new_raw_count)); in perfmon_pmu_event_update() 253 n = (new_raw_count << shift); in perfmon_pmu_event_update()
|
/linux-6.6.21/arch/x86/events/intel/ |
D | cstate.c | 366 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() 372 &prev_raw_count, new_raw_count)); in cstate_pmu_event_update() 374 local64_add(new_raw_count - prev_raw_count, &event->count); in cstate_pmu_event_update()
|
D | ds.c | 1982 u64 prev_raw_count, new_raw_count; in intel_pmu_save_and_restart_reload() local 1993 rdpmcl(hwc->event_base_rdpmc, new_raw_count); in intel_pmu_save_and_restart_reload() 1994 local64_set(&hwc->prev_count, new_raw_count); in intel_pmu_save_and_restart_reload() 2023 new = ((s64)(new_raw_count << shift) >> shift); in intel_pmu_save_and_restart_reload()
|
/linux-6.6.21/arch/loongarch/kernel/ |
D | perf_event.c | 340 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.6.21/arch/arc/kernel/ |
D | perf_event.c | 284 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.6.21/arch/sparc/kernel/ |
D | perf_event.c | 867 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.6.21/arch/csky/kernel/ |
D | perf_event.c | 927 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.6.21/arch/mips/kernel/ |
D | perf_event_mipsxx.c | 453 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()
|
/linux-6.6.21/arch/x86/events/amd/ |
D | ibs.c | 144 perf_event_try_update(struct perf_event *event, u64 new_raw_count, int width) in perf_event_try_update() argument 160 &prev_raw_count, new_raw_count)) in perf_event_try_update() 171 delta = (new_raw_count << shift) - (prev_raw_count << shift); in perf_event_try_update()
|