Searched refs:prev_raw_count (Results 1 – 10 of 10) sorted by relevance
| /linux/arch/sh/kernel/ |
| H A D | perf_event.c | 161 u64 prev_raw_count, new_raw_count; in sh_perf_event_update() local 178 prev_raw_count = local64_read(&hwc->prev_count); in sh_perf_event_update() 181 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, 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/drivers/perf/hisilicon/ |
| H A D | hisi_uncore_pmu.c | 319 u64 delta, prev_raw_count, new_raw_count; in hisi_uncore_pmu_event_update() local 324 prev_raw_count = local64_read(&hwc->prev_count); in hisi_uncore_pmu_event_update() 325 } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in hisi_uncore_pmu_event_update() 326 new_raw_count) != prev_raw_count); in hisi_uncore_pmu_event_update() 330 delta = (new_raw_count - prev_raw_count) & in hisi_uncore_pmu_event_update() 349 u64 prev_raw_count = local64_read(&hwc->prev_count); in hisi_uncore_pmu_start() local 351 hisi_pmu->ops->write_counter(hisi_pmu, hwc, prev_raw_count); in hisi_uncore_pmu_start()
|
| /linux/drivers/perf/ |
| H A D | riscv_pmu.c | 164 u64 prev_raw_count, new_raw_count; in riscv_pmu_event_update() local 174 prev_raw_count = local64_read(&hwc->prev_count); in riscv_pmu_event_update() 176 oldval = local64_cmpxchg(&hwc->prev_count, prev_raw_count, in riscv_pmu_event_update() 178 } while (oldval != prev_raw_count); in riscv_pmu_event_update() 180 delta = (new_raw_count - prev_raw_count) & cmask; in riscv_pmu_event_update()
|
| H A D | starfive_starlink_pmu.c | 237 u64 prev_raw_count, new_raw_count; in starlink_pmu_update() local 242 prev_raw_count = local64_read(&hwc->prev_count); in starlink_pmu_update() 250 oldval = local64_cmpxchg(&hwc->prev_count, prev_raw_count, in starlink_pmu_update() 252 } while (oldval != prev_raw_count); in starlink_pmu_update() 254 delta = (new_raw_count - prev_raw_count) & STARLINK_PMU_COUNTER_MASK; in starlink_pmu_update()
|
| H A D | alibaba_uncore_drw_pmu.c | 586 unsigned long prev_raw_count = in ali_drw_pmu_start() local 588 writel(prev_raw_count, in ali_drw_pmu_start()
|
| /linux/arch/loongarch/kernel/ |
| H A D | perf_event.c | 340 u64 prev_raw_count, new_raw_count; in loongarch_pmu_event_update() local 343 prev_raw_count = local64_read(&hwc->prev_count); in loongarch_pmu_event_update() 346 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, 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/drivers/dma/idxd/ |
| H A D | perfmon.c | 213 u64 prev_raw_count, new_raw_count, delta, p, n; in perfmon_pmu_event_update() local 217 prev_raw_count = local64_read(&hwc->prev_count); in perfmon_pmu_event_update() 221 &prev_raw_count, new_raw_count)); in perfmon_pmu_event_update() 223 p = (prev_raw_count << shift); in perfmon_pmu_event_update()
|
| /linux/arch/x86/events/amd/ |
| H A D | ibs.c | 149 u64 prev_raw_count; in perf_event_try_update() local 159 prev_raw_count = local64_read(&hwc->prev_count); in perf_event_try_update() 161 &prev_raw_count, new_raw_count)) in perf_event_try_update() 172 delta = (new_raw_count << shift) - (prev_raw_count << shift); in perf_event_try_update()
|
| /linux/arch/x86/events/ |
| H A D | core.c | 129 u64 prev_raw_count, new_raw_count; in x86_perf_event_update() local 142 prev_raw_count = local64_read(&hwc->prev_count); in x86_perf_event_update() 146 &prev_raw_count, new_raw_count)); in x86_perf_event_update() 156 delta = (new_raw_count << shift) - (prev_raw_count << shift); in x86_perf_event_update()
|
| /linux/arch/x86/events/intel/ |
| H A D | ds.c | 2527 u64 prev_raw_count, new_raw_count; in intel_pmu_save_and_restart_reload() local 2537 prev_raw_count = local64_read(&hwc->prev_count); in intel_pmu_save_and_restart_reload() 2569 old = ((s64)(prev_raw_count << shift) >> shift); in intel_pmu_save_and_restart_reload()
|