Home
last modified time | relevance | path

Searched refs:hits (Results 1 - 25 of 79) sorted by relevance

1234

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/benchs/
H A Dbench_count.c8 struct counter hits; member
16 atomic_inc(&ctx->hits.value); in count_global_producer()
30 res->hits = atomic_swap(&ctx->hits.value, 0); in count_global_measure()
36 struct counter *hits; member
43 ctx->hits = calloc(env.consumer_cnt, sizeof(*ctx->hits)); in count_local_setup()
44 if (!ctx->hits) in count_local_setup()
54 atomic_inc(&ctx->hits[idx].value); in count_local_producer()
70 res->hits in count_local_measure()
[all...]
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_trigger.c32 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()
/kernel/linux/linux-6.6/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 in count_local_measure()
[all...]
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.c295 res->hits = atomic_swap(&ctx.skel->bss->op_cnt, 0) / env.producer_cnt; in htab_mem_measure()
303 loop = res->hits / 1000.0 / (delta_ns / 1000000000.0); in htab_mem_report_progress()
317 loop_mean += res[i].hits / 1000.0 / (0.0 + res_cnt); in htab_mem_report_final()
322 loop_stddev += (loop_mean - res[i].hits / 1000.0) * in htab_mem_report_final()
323 (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()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtrigger_bench.c12 long hits = 0; variable
17 __sync_add_and_fetch(&hits, 1); in bench_trigger_tp()
25 __sync_add_and_fetch(&hits, 1); in BPF_PROG()
32 __sync_add_and_fetch(&hits, 1); in bench_trigger_kprobe()
39 __sync_add_and_fetch(&hits, 1); in bench_trigger_fentry()
46 __sync_add_and_fetch(&hits, 1); in bench_trigger_fentry_sleep()
53 __sync_add_and_fetch(&hits, 1); in bench_trigger_fmodret()
60 __sync_add_and_fetch(&hits, 1); in bench_trigger_uprobe()
H A Dstrncmp_bench.c14 long hits = 0; variable
39 __sync_add_and_fetch(&hits, 1); in strncmp_no_helper()
47 __sync_add_and_fetch(&hits, 1); in strncmp_helper()
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()
/kernel/linux/linux-5.10/kernel/
H A Dprofile.c36 u32 pc, hits; member
219 * profile hits. read_profile() IPI's all cpus to request them
224 * profile hits required for the accuracy of reported profile hits
228 * and hold the number of pending hits to that profile buffer slot on
229 * a cpu in an entry. When the hashtable overflows, all pending hits
231 * atomic_add() and the hashtable emptied. As numerous pending hits
236 * positions to which hits are accounted during short intervals (e.g.
264 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[j]; in profile_flip_buffers() local
266 if (!hits[ in profile_flip_buffers()
287 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[i]; profile_discard_flip_buffers() local
297 struct profile_hit *hits; do_profile_hits() local
[all...]
/kernel/linux/linux-6.6/kernel/
H A Dprofile.c36 u32 pc, hits; member
142 * profile hits. read_profile() IPI's all cpus to request them
147 * profile hits required for the accuracy of reported profile hits
151 * and hold the number of pending hits to that profile buffer slot on
152 * a cpu in an entry. When the hashtable overflows, all pending hits
154 * atomic_add() and the hashtable emptied. As numerous pending hits
159 * positions to which hits are accounted during short intervals (e.g.
187 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[j]; in profile_flip_buffers() local
189 if (!hits[ in profile_flip_buffers()
210 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[i]; profile_discard_flip_buffers() local
220 struct profile_hit *hits; do_profile_hits() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtrigger_bench.c11 long hits = 0; variable
16 __sync_add_and_fetch(&hits, 1); in bench_trigger_tp()
24 __sync_add_and_fetch(&hits, 1); in BPF_PROG()
31 __sync_add_and_fetch(&hits, 1); in bench_trigger_kprobe()
38 __sync_add_and_fetch(&hits, 1); in bench_trigger_fentry()
45 __sync_add_and_fetch(&hits, 1); in bench_trigger_fentry_sleep()
52 __sync_add_and_fetch(&hits, 1); in bench_trigger_fmodret()
/kernel/linux/linux-5.10/drivers/cpuidle/governors/
H A Dteo.c70 * @hits: "On time" CPU wakeups "matching" this state.
90 unsigned int hits; member
154 * Decay the "early hits" metric for all of the states and find the in teo_update()
170 * Update the "hits" and "misses" data for the state matching the sleep in teo_update()
172 * so increase the "hits" metric for it then. Otherwise, this is a in teo_update()
174 * also increase the "early hits" metric for the state that actually in teo_update()
178 unsigned int hits = cpu_data->states[idx_timer].hits; in teo_update() local
181 hits -= hits >> DECAY_SHIF in teo_update()
246 unsigned int hits, misses, early_hits; teo_select() local
[all...]
/kernel/linux/linux-6.6/mm/
H A Dswap_state.c52 #define SWAP_RA_VAL(addr, win, hits) \
55 ((hits) & SWAP_RA_HITS_MASK))
57 /* Initial readahead hits is 4 to start up with a small window */
351 int win, hits; in swap_cache_get_folio() local
355 hits = SWAP_RA_HITS(ra_val); in swap_cache_get_folio()
357 hits = min_t(int, hits + 1, SWAP_RA_HITS_MAX); in swap_cache_get_folio()
359 SWAP_RA_VAL(addr, win, hits)); in swap_cache_get_folio()
543 int hits, in __swapin_nr_pages()
554 pages = hits in __swapin_nr_pages()
541 __swapin_nr_pages(unsigned long prev_offset, unsigned long offset, int hits, int max_pages, int prev_win) __swapin_nr_pages() argument
584 unsigned int hits, pages, max_pages; swapin_nr_pages() local
723 unsigned int max_win, hits, prev_win, win; swap_ra_info() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dbench.c40 long total = res->false_hits + res->hits + res->drops; in false_hits_report_progress()
45 printf("%ld false hits of %ld total operations. Percentage = %2.2f %%\n", in false_hits_report_progress()
55 total_hits += res[i].hits; in false_hits_report_final()
61 printf("Summary: %ld false hits of %ld total operations. ", in false_hits_report_final()
72 hits_per_sec = res->hits / 1000000.0 / (delta_ns / 1000000000.0); in hits_drops_report_progress()
79 printf("hits %8.3lfM/s (%7.3lfM/prod), drops %8.3lfM/s, total operations %8.3lfM/s\n", in hits_drops_report_progress()
128 hits_mean += res[i].hits / 1000000.0 / (0.0 + res_cnt); in hits_drops_report_final()
135 hits_stddev += (hits_mean - res[i].hits / 1000000.0) * in hits_drops_report_final()
136 (hits_mean - res[i].hits / 1000000.0) / in hits_drops_report_final()
141 total_ops = res[i].hits in hits_drops_report_final()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_acl_flex_keys.c139 } hits[0]; member
157 __set_bit(element, picker->hits[i].element); in mlxsw_afk_picker_count_hits()
158 picker->hits[i].total++; in mlxsw_afk_picker_count_hits()
172 memcpy(&hits_element, &picker->hits[block_index].element, in mlxsw_afk_picker_subtract_hits()
177 if (__test_and_clear_bit(j, picker->hits[i].element)) in mlxsw_afk_picker_subtract_hits()
178 picker->hits[i].total--; in mlxsw_afk_picker_subtract_hits()
191 if (picker->hits[i].total > most_hits) { in mlxsw_afk_picker_most_hits_get()
192 most_hits = picker->hits[i].total; in mlxsw_afk_picker_most_hits_get()
209 for_each_set_bit(element, picker->hits[block_index].element, in mlxsw_afk_picker_key_info_add()
230 alloc_size = sizeof(picker->hits[ in mlxsw_afk_picker()
[all...]
/kernel/linux/linux-5.10/mm/
H A Dswap_state.c52 #define SWAP_RA_VAL(addr, win, hits) \
55 ((hits) & SWAP_RA_HITS_MASK))
57 /* Initial readahead hits is 4 to start up with a small window */
397 int win, hits; in lookup_swap_cache() local
401 hits = SWAP_RA_HITS(ra_val); in lookup_swap_cache()
403 hits = min_t(int, hits + 1, SWAP_RA_HITS_MAX); in lookup_swap_cache()
405 SWAP_RA_VAL(addr, win, hits)); in lookup_swap_cache()
572 int hits, in __swapin_nr_pages()
583 pages = hits in __swapin_nr_pages()
570 __swapin_nr_pages(unsigned long prev_offset, unsigned long offset, int hits, int max_pages, int prev_win) __swapin_nr_pages() argument
613 unsigned int hits, pages, max_pages; swapin_nr_pages() local
759 unsigned int max_win, hits, prev_win, win, left; swap_ra_info() local
[all...]
/kernel/linux/linux-5.10/fs/
H A Dfs_struct.c69 int hits = 0; in chroot_fs_refs() local
72 hits += replace_path(&fs->root, old_root, new_root); in chroot_fs_refs()
73 hits += replace_path(&fs->pwd, old_root, new_root); in chroot_fs_refs()
75 while (hits--) { in chroot_fs_refs()
/kernel/linux/linux-6.6/fs/
H A Dfs_struct.c69 int hits = 0; in chroot_fs_refs() local
72 hits += replace_path(&fs->root, old_root, new_root); in chroot_fs_refs()
73 hits += replace_path(&fs->pwd, old_root, new_root); in chroot_fs_refs()
75 while (hits--) { in chroot_fs_refs()
/kernel/linux/linux-6.6/drivers/cpuidle/governors/
H A Dteo.c49 * Two metrics called "hits" and "intercepts" are associated with each bin.
53 * The "hits" metric reflects the relative frequency of situations in which the
74 * - The sum of the "hits" and "intercepts" metrics for the candidate state
173 * @hits: The "hits" metric.
178 unsigned int hits; member
187 * @total: Grand total of the "intercepts" and "hits" metrics for all bins.
190 * @tick_hits: Number of "hits" after TICK_NSEC.
268 * Decay the "hits" and "intercepts" metrics for all of the bins and in teo_update()
275 bin->hits in teo_update()
[all...]
/kernel/linux/linux-5.10/tools/power/cpupower/utils/idle_monitor/
H A Dcpupower-monitor.c223 int mon, hits = 0; in parse_monitor_param() local
241 tmp_mons[hits] = monitors[num]; in parse_monitor_param()
242 hits++; in parse_monitor_param()
246 if (hits == 0) { in parse_monitor_param()
254 avail_monitors = hits; in parse_monitor_param()
/kernel/linux/linux-6.6/tools/power/cpupower/utils/idle_monitor/
H A Dcpupower-monitor.c223 int mon, hits = 0; in parse_monitor_param() local
241 tmp_mons[hits] = monitors[num]; in parse_monitor_param()
242 hits++; in parse_monitor_param()
246 if (hits == 0) { in parse_monitor_param()
254 avail_monitors = hits; in parse_monitor_param()

Completed in 12 milliseconds

1234