Home
last modified time | relevance | path

Searched refs:atomic_swap (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c131 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()
Dbench_count.c30 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()
Dbench_local_storage_rcu_tasks_trace.c206 res->gp_ct = atomic_swap(&ctx.skel->bss->gp_hits, 0); in measure()
207 res->gp_ns = atomic_swap(&ctx.skel->bss->gp_times, 0); in measure()
Dbench_local_storage.c224 res->hits = atomic_swap(&ctx.skel->bss->hits, 0); in measure()
225 res->important_hits = atomic_swap(&ctx.skel->bss->important_hits, 0); in measure()
Dbench_trigger.c33 res->hits = atomic_swap(&base_hits.value, 0); in trigger_base_measure()
45 res->hits = atomic_swap(&ctx.skel->bss->hits, 0); in trigger_measure()
Dbench_bpf_loop.c72 res->hits = atomic_swap(&ctx.skel->bss->hits, 0); in measure()
Dbench_rename.c43 res->hits = atomic_swap(&ctx.hits.value, 0); in measure()
Dbench_strncmp.c138 res->hits = atomic_swap(&ctx.skel->bss->hits, 0); in strncmp_measure()
/linux-6.1.9/tools/testing/selftests/bpf/
Dbench.h100 static inline long atomic_swap(long *value, long n) in atomic_swap() function