Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/benchs/
H A 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()
H A Dbench_count.c25 res->hits = atomic_swap(&ctx->hits.value, 0); in count_global_measure()
60 res->hits += atomic_swap(&ctx->hits[i].value, 0); in count_local_measure()
H A Dbench_local_storage_rcu_tasks_trace.c193 res->gp_ct = atomic_swap(&ctx.skel->bss->gp_hits, 0); in measure()
194 res->gp_ns = atomic_swap(&ctx.skel->bss->gp_times, 0); in measure()
H A Dbench_local_storage_create.c142 res->hits = atomic_swap(&skel->bss->create_cnts, 0); in measure()
143 res->drops = atomic_swap(&skel->bss->kmalloc_cnts, 0); in measure()
H A 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()
H A Dbench_bpf_loop.c67 res->hits = atomic_swap(&ctx.skel->bss->hits, 0); in measure()
H A Dbench_rename.c43 res->hits = atomic_swap(&ctx.hits.value, 0); in measure()
H A Dbench_strncmp.c133 res->hits = atomic_swap(&ctx.skel->bss->hits, 0); in strncmp_measure()
H A Dbench_bpf_crypto.c149 res->hits = atomic_swap(&ctx.skel->bss->hits, 0); in crypto_measure()
H A Dbench_htab_mem.c295 res->hits = atomic_swap(&ctx.skel->bss->op_cnt, 0) / env.producer_cnt; in htab_mem_measure()
H A Dbench_trigger.c90 sum += atomic_swap(&counters[i].value, 0); in sum_and_reset_counters()
/linux/tools/testing/selftests/bpf/
H A Dbench.h95 static inline long atomic_swap(long *value, long n) in atomic_swap() function