Searched refs:prev_raw_count (Results 1 – 10 of 10) sorted by relevance
/arch/sh/kernel/ |
D | perf_event.c | 190 u64 prev_raw_count, new_raw_count; in sh_perf_event_update() local 207 prev_raw_count = local64_read(&hwc->prev_count); in sh_perf_event_update() 210 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in sh_perf_event_update() 211 new_raw_count) != prev_raw_count) in sh_perf_event_update() 222 delta = (new_raw_count << shift) - (prev_raw_count << shift); in sh_perf_event_update()
|
/arch/blackfin/kernel/ |
D | perf_event.c | 263 u64 prev_raw_count, new_raw_count; in bfin_perf_event_update() local 280 prev_raw_count = local64_read(&hwc->prev_count); in bfin_perf_event_update() 283 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in bfin_perf_event_update() 284 new_raw_count) != prev_raw_count) in bfin_perf_event_update() 295 delta = (new_raw_count << shift) - (prev_raw_count << shift); in bfin_perf_event_update()
|
/arch/arm/kernel/ |
D | perf_event.c | 131 u64 delta, prev_raw_count, new_raw_count; in armpmu_event_update() local 134 prev_raw_count = local64_read(&hwc->prev_count); in armpmu_event_update() 137 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in armpmu_event_update() 138 new_raw_count) != prev_raw_count) in armpmu_event_update() 141 delta = (new_raw_count - prev_raw_count) & armpmu->max_period; in armpmu_event_update()
|
/arch/alpha/kernel/ |
D | perf_event.c | 300 long prev_raw_count, new_raw_count; in alpha_perf_event_update() local 304 prev_raw_count = local64_read(&hwc->prev_count); in alpha_perf_event_update() 307 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in alpha_perf_event_update() 308 new_raw_count) != prev_raw_count) in alpha_perf_event_update() 311 delta = (new_raw_count - (prev_raw_count & alpha_pmu->pmc_count_mask[idx])) + ovf; in alpha_perf_event_update()
|
/arch/x86/kernel/cpu/ |
D | perf_event_amd_ibs.c | 119 u64 prev_raw_count; in perf_event_try_update() local 129 prev_raw_count = local64_read(&hwc->prev_count); in perf_event_try_update() 130 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in perf_event_try_update() 131 new_raw_count) != prev_raw_count) in perf_event_try_update() 142 delta = (new_raw_count << shift) - (prev_raw_count << shift); in perf_event_try_update()
|
D | perf_event.c | 64 u64 prev_raw_count, new_raw_count; in x86_perf_event_update() local 79 prev_raw_count = local64_read(&hwc->prev_count); in x86_perf_event_update() 82 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in x86_perf_event_update() 83 new_raw_count) != prev_raw_count) in x86_perf_event_update() 94 delta = (new_raw_count << shift) - (prev_raw_count << shift); in x86_perf_event_update()
|
/arch/metag/kernel/perf/ |
D | perf_event.c | 192 u64 prev_raw_count, new_raw_count; in metag_pmu_event_update() local 205 prev_raw_count = local64_read(&hwc->prev_count); in metag_pmu_event_update() 208 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in metag_pmu_event_update() 209 new_raw_count) != prev_raw_count) in metag_pmu_event_update() 215 delta = (new_raw_count - prev_raw_count) & MAX_PERIOD; in metag_pmu_event_update()
|
/arch/arm64/kernel/ |
D | perf_event.c | 190 u64 delta, prev_raw_count, new_raw_count; in armpmu_event_update() local 193 prev_raw_count = local64_read(&hwc->prev_count); in armpmu_event_update() 196 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in armpmu_event_update() 197 new_raw_count) != prev_raw_count) in armpmu_event_update() 200 delta = (new_raw_count - prev_raw_count) & armpmu->max_period; in armpmu_event_update()
|
/arch/mips/kernel/ |
D | perf_event_mipsxx.c | 415 u64 prev_raw_count, new_raw_count; in mipspmu_event_update() local 419 prev_raw_count = local64_read(&hwc->prev_count); in mipspmu_event_update() 422 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in mipspmu_event_update() 423 new_raw_count) != prev_raw_count) in mipspmu_event_update() 426 delta = new_raw_count - prev_raw_count; in mipspmu_event_update()
|
/arch/sparc/kernel/ |
D | perf_event.c | 858 u64 prev_raw_count, new_raw_count; in sparc_perf_event_update() local 862 prev_raw_count = local64_read(&hwc->prev_count); in sparc_perf_event_update() 865 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in sparc_perf_event_update() 866 new_raw_count) != prev_raw_count) in sparc_perf_event_update() 869 delta = (new_raw_count << shift) - (prev_raw_count << shift); in sparc_perf_event_update()
|