Searched refs:atomic_swap (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.10/tools/testing/selftests/bpf/benchs/ |
D | bench_ringbufs.c | 131 res->hits = atomic_swap(&buf_hits.value, 0); in ringbuf_libbpf_measure() 132 res->drops = atomic_swap(&ctx->skel->bss->dropped, 0); in ringbuf_libbpf_measure() 222 res->hits = atomic_swap(&buf_hits.value, 0); in ringbuf_custom_measure() 223 res->drops = atomic_swap(&ctx->skel->bss->dropped, 0); in ringbuf_custom_measure() 351 res->hits = atomic_swap(&buf_hits.value, 0); in perfbuf_measure() 352 res->drops = atomic_swap(&ctx->skel->bss->dropped, 0); in perfbuf_measure()
|
D | bench_count.c | 30 res->hits = atomic_swap(&ctx->hits.value, 0); in count_global_measure() 70 res->hits += atomic_swap(&ctx->hits[i].value, 0); in count_local_measure()
|
D | bench_trigger.c | 32 res->hits = atomic_swap(&base_hits.value, 0); in trigger_base_measure() 44 res->hits = atomic_swap(&ctx.skel->bss->hits, 0); in trigger_measure()
|
D | bench_rename.c | 43 res->hits = atomic_swap(&ctx.hits.value, 0); in measure()
|
/Linux-v5.10/tools/testing/selftests/bpf/ |
D | bench.h | 78 static inline long atomic_swap(long *value, long n) in atomic_swap() function
|