Home
last modified time | relevance | path

Searched refs:hits (Results 1 – 25 of 68) sorted by relevance

123

/linux/tools/testing/selftests/bpf/benchs/
H A Dbench_count.c8 struct counter hits; member
16 atomic_inc(&ctx->hits.value); in count_global_producer()
25 res->hits = atomic_swap(&ctx->hits.value, 0); in count_global_measure()
31 struct counter *hits; member
38 ctx->hits = calloc(env.producer_cnt, sizeof(*ctx->hits)); in count_local_setup()
39 if (!ctx->hits) in count_local_setup()
49 atomic_inc(&ctx->hits[idx].value); in count_local_producer()
60 res->hits += atomic_swap(&ctx->hits[i].value, 0); in count_local_measure()
H A Dbench_local_storage_create.c142 res->hits = atomic_swap(&skel->bss->create_cnts, 0); in measure()
208 creates_per_sec = res->hits / 1000.0 / (delta_ns / 1000000000.0); in report_progress()
209 kmallocs_per_create = (double)res->drops / res->hits; in report_progress()
225 creates_mean += res[i].hits / 1000.0 / (0.0 + res_cnt); in report_final()
226 total_creates += res[i].hits; in report_final()
232 creates_stddev += (creates_mean - res[i].hits / 1000.0) * in report_final()
233 (creates_mean - res[i].hits / 1000.0) / in report_final()
H A Dbench_rename.c10 struct counter hits; member
37 atomic_inc(&ctx.hits.value); in producer()
43 res->hits = atomic_swap(&ctx.hits.value, 0); in measure()
H A Dbench_htab_mem.c294 res->hits = atomic_swap(&ctx.skel->bss->op_cnt, 0) / env.producer_cnt; in htab_mem_measure()
302 loop = res->hits / 1000.0 / (delta_ns / 1000000000.0); in htab_mem_report_progress()
316 loop_mean += res[i].hits / 1000.0 / (0.0 + res_cnt); in htab_mem_report_final()
321 loop_stddev += (loop_mean - res[i].hits / 1000.0) * in htab_mem_report_final()
322 (loop_mean - res[i].hits / 1000.0) / in htab_mem_report_final()
H A Dbench_bpf_loop.c67 res->hits = atomic_swap(&ctx.skel->bss->hits, 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_trigger.c130 res->hits = sum_and_reset_counters(base_hits); in trigger_measure()
132 res->hits = sum_and_reset_counters(ctx.skel->bss->hits); in trigger_measure()
H A Dbench_local_storage.c224 res->hits = atomic_swap(&ctx.skel->bss->hits, 0); in measure()
/linux/mm/
H A Dswap_state.c58 #define SWAP_RA_VAL(addr, win, hits) \ argument
61 ((hits) & SWAP_RA_HITS_MASK))
387 int win, hits; in swap_update_readahead() local
391 hits = SWAP_RA_HITS(ra_val); in swap_update_readahead()
393 hits = min_t(int, hits + 1, SWAP_RA_HITS_MAX); in swap_update_readahead()
395 SWAP_RA_VAL(addr, win, hits)); in swap_update_readahead()
541 int hits, in __swapin_nr_pages() argument
552 pages = hits + 2; in __swapin_nr_pages()
582 unsigned int hits, pages, max_pages; in swapin_nr_pages() local
589 hits = atomic_xchg(&swapin_readahead_hits, 0); in swapin_nr_pages()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dbench.c41 long total = res->false_hits + res->hits + res->drops; in false_hits_report_progress()
46 printf("%ld false hits of %ld total operations. Percentage = %2.2f %%\n", in false_hits_report_progress()
56 total_hits += res[i].hits; in false_hits_report_final()
62 printf("Summary: %ld false hits of %ld total operations. ", in false_hits_report_final()
73 hits_per_sec = res->hits / 1000000.0 / (delta_ns / 1000000000.0); in hits_drops_report_progress()
80 printf("hits %8.3lfM/s (%7.3lfM/prod), drops %8.3lfM/s, total operations %8.3lfM/s\n", in hits_drops_report_progress()
129 hits_mean += res[i].hits / 1000000.0 / (0.0 + res_cnt); in hits_drops_report_final()
136 hits_stddev += (hits_mean - res[i].hits / 1000000.0) * in hits_drops_report_final()
137 (hits_mean - res[i].hits / 1000000.0) / in hits_drops_report_final()
142 total_ops = res[i].hits in hits_drops_report_final()
[all...]
/linux/tools/testing/selftests/bpf/progs/
H A Dstrncmp_bench.c14 long hits = 0; variable
42 __sync_add_and_fetch(&hits, 1);
50 __sync_add_and_fetch(&hits, 1);
H A Dcrypto_bench.c18 long hits = 0; variable
78 __sync_add_and_fetch(&hits, 1); in crypto_encrypt()
102 __sync_add_and_fetch(&hits, 1); in crypto_decrypt()
H A Dbpf_loop_bench.c11 long hits; variable
21 __sync_add_and_fetch(&hits, nr_loops); in outer_loop()
H A Dlocal_storage_rcu_tasks_trace_bench.c15 long hits; variable
38 __sync_add_and_fetch(&hits, 1); in get_local()
H A Dtrigger_bench.c19 struct counter hits[MAX_CPUS]; variable
25 __sync_add_and_fetch(&hits[cpu & CPU_MASK].value, 1); in inc_counter()
H A Dlocal_storage_bench.c37 long hits; variable
99 __sync_add_and_fetch(&hits, lctx.loop_hits); in get_local()
/linux/fs/
H A Dfs_struct.c65 int hits = 0; in chroot_fs_refs() local
67 hits += replace_path(&fs->root, old_root, new_root); in chroot_fs_refs()
68 hits += replace_path(&fs->pwd, old_root, new_root); in chroot_fs_refs()
69 while (hits--) { in chroot_fs_refs()
/linux/tools/power/cpupower/utils/idle_monitor/
H A Dcpupower-monitor.c238 int mon, hits = 0; in parse_monitor_param() local
256 tmp_mons[hits] = monitors[num]; in parse_monitor_param()
257 hits++; in parse_monitor_param()
261 if (hits == 0) { in parse_monitor_param()
269 avail_monitors = hits; in parse_monitor_param()
/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_debugfs.c62 u32 hits = mvpp2_cls_flow_hits(entry->priv, entry->id); in mvpp2_dbgfs_flow_flt_hits_show() local
64 seq_printf(s, "%u\n", hits); in mvpp2_dbgfs_flow_flt_hits_show()
75 u32 hits = mvpp2_cls_lookup_hits(entry->priv, entry->flow); in mvpp2_dbgfs_flow_dec_hits_show() local
77 seq_printf(s, "%u\n", hits); in mvpp2_dbgfs_flow_dec_hits_show()
194 u32 hits; in mvpp2_dbgfs_flow_c2_hits_show() local
196 hits = mvpp2_cls_c2_hit_count(entry->priv, entry->id); in mvpp2_dbgfs_flow_c2_hits_show()
198 seq_printf(s, "%u\n", hits); in mvpp2_dbgfs_flow_c2_hits_show()
/linux/tools/perf/Documentation/
H A Dperf-buildid-list.txt25 --with-hits::
26 Show only DSOs with hits.
H A Dperf-annotate.txt146 global-period, local-period, global-hits, local-hits
150 The period/hits keywords set the base the percentage is computed
151 on - the samples period or the number of samples (hits).
H A Dperf-archive.txt15 This command runs perf-buildid-list --with-hits, and collects the files with the
/linux/tools/perf/
H A Dperf-archive.sh106 …perf buildid-list -i $PERF_DATA --with-hits | grep -v "^ " | grep -Fv -f $EXCLUDE_BUILDIDS > $BUIL…
113 perf buildid-list -i $PERF_DATA --with-hits | grep -v "^ " > $BUILDIDS
/linux/lib/
H A Dlru_cache.c192 lc->hits = 0; in lc_reset()
230 lc->hits, lc->misses, lc->starving, lc->locked, lc->changed); in lc_seq_printf_stats()
377 ++lc->hits; in __lc_get()
381 ++lc->hits; in __lc_get()

123