Home
last modified time | relevance | path

Searched refs:nr_loops (Results 1 – 14 of 14) sorted by relevance

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbpf_loop.c17 skel->bss->nr_loops = 0; in check_nr_loops()
21 ASSERT_EQ(skel->bss->nr_loops_returned, skel->bss->nr_loops, in check_nr_loops()
25 skel->bss->nr_loops = 500; in check_nr_loops()
29 ASSERT_EQ(skel->bss->nr_loops_returned, skel->bss->nr_loops, in check_nr_loops()
34 skel->bss->nr_loops = -1; in check_nr_loops()
52 skel->bss->nr_loops = 400; in check_callback_fn_stop()
74 skel->bss->nr_loops = 10; in check_null_callback_ctx()
78 ASSERT_EQ(skel->bss->nr_loops_returned, skel->bss->nr_loops, in check_null_callback_ctx()
102 __u32 nr_loops = 100, nested_callback_nr_loops = 4; in check_nested_calls() local
110 skel->bss->nr_loops = nr_loops; in check_nested_calls()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/benchs/
Dbench_bpf_loop.c14 __u32 nr_loops; member
16 .nr_loops = 10,
33 args.nr_loops = strtol(arg, NULL, 10); in parse_arg()
88 ctx.skel->bss->nr_loops = args.nr_loops; in setup()
Dbench_bpf_hashmap_lookup.c25 __u32 nr_loops; member
31 .nr_loops = 1000000,
100 args.nr_loops = ret; in parse_arg()
172 ctx.skel->bss->nr_loops = args.nr_loops / args.nr_entries; in setup()
203 return args.nr_loops * 1000000000llu / time / 1000000.0L; in events_from_time()
Dbench_bpf_hashmap_full_update.c50 ctx.skel->bss->nr_loops = MAX_LOOP_NUM; in setup()
77 i, ctx.skel->bss->nr_loops * 1000000000ll / time); in hashmap_report_final()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dbpf_loop_bench.c10 u32 nr_loops; variable
20 bpf_loop(nr_loops, empty_callback, NULL, 0); in outer_loop()
21 __sync_add_and_fetch(&hits, nr_loops); in outer_loop()
Dbpf_loop.c24 u32 nr_loops; variable
73 nr_loops_returned = bpf_loop(nr_loops, callback, &data, 0); in test_prog()
89 nr_loops_returned = bpf_loop(nr_loops, empty_callback, NULL, 0); in prog_null_ctx()
102 err = bpf_loop(nr_loops, callback, &data, 1); in prog_invalid_flags()
116 bpf_loop(nr_loops, nested_callback1, &data, 0); in prog_nested_calls()
Dbpf_hashmap_full_update_bench.c20 u64 nr_loops; variable
37 bpf_loop(nr_loops, loop_update_callback, &key, 0); in benchmark()
Dbpf_hashmap_lookup.c22 u64 nr_loops; variable
59 bpf_loop(nr_loops, loop_lookup_callback, NULL, 0); in benchmark()
/linux-6.6.21/tools/perf/bench/
Dmem-functions.c33 static int nr_loops = 1; variable
45 OPT_INTEGER('l', "nr_loops", &nr_loops,
193 size_total = (double)size * nr_loops; in bench_mem_common()
247 for (i = 0; i < nr_loops; ++i) in do_memcpy_cycles()
263 for (i = 0; i < nr_loops; ++i) in do_memcpy_gettimeofday()
269 return (double)(((double)size * nr_loops) / timeval2double(&tv_diff)); in do_memcpy_gettimeofday()
317 for (i = 0; i < nr_loops; ++i) in do_memset_cycles()
337 for (i = 0; i < nr_loops; ++i) in do_memset_gettimeofday()
343 return (double)(((double)size * nr_loops) / timeval2double(&tv_diff)); in do_memset_gettimeofday()
Dsched-messaging.c36 static unsigned int nr_loops = 100; variable
95 for (i = 0; i < nr_loops; i++) { in sender()
223 ctx->num_packets = num_fds * nr_loops; in group()
260 OPT_UINTEGER('l', "nr_loops", &nr_loops, "Specify the number of loops to run (default: 100)"),
Dnuma.c100 u32 nr_loops; member
178 OPT_UINTEGER('l', "nr_loops" , &p0.nr_loops, "max number of loops to run (default: unlimited)"),
842 chunk_1 = words/g->p.nr_loops; in do_work()
1145 (double)(l+1)/g->p.nr_loops*100.0, runtime_ns_max / NSEC_PER_SEC / 60.0); in show_summary()
1222 for (l = 0; l < g->p.nr_loops; l++) { in worker_thread()
1415 g->p.nr_loops, g->p.bytes_global/1024/1024); in print_summary()
1417 g->p.nr_loops, g->p.bytes_process/1024/1024); in print_summary()
1419 g->p.nr_loops, g->p.bytes_thread/1024/1024); in print_summary()
1779 p->nr_loops = -1; in init_params()
/linux-6.6.21/tools/perf/Documentation/
Dperf-bench.txt97 --nr_loops=::
173 --nr_loops::
197 --nr_loops::
/linux-6.6.21/kernel/bpf/
Dbpf_iter.c744 BPF_CALL_4(bpf_loop, u32, nr_loops, void *, callback_fn, void *, callback_ctx, in BPF_CALL_4() argument
757 if (nr_loops > BPF_MAX_LOOPS) in BPF_CALL_4()
760 for (i = 0; i < nr_loops; i++) { in BPF_CALL_4()
/linux-6.6.21/kernel/trace/
Dring_buffer.c3649 int nr_loops = 0; in rb_reserve_next_event() local
3700 if (RB_WARN_ON(cpu_buffer, ++nr_loops > 1000)) in rb_reserve_next_event()
4488 int nr_loops = 0; in rb_get_reader_page() local
4501 if (RB_WARN_ON(cpu_buffer, ++nr_loops > 3)) { in rb_get_reader_page()
4619 for (nr_loops = 0; nr_loops < USECS_WAIT; nr_loops++) { in rb_get_reader_page()
4631 if (RB_WARN_ON(cpu_buffer, nr_loops == USECS_WAIT)) in rb_get_reader_page()
4713 int nr_loops = 0; in rb_buffer_peek() local
4724 if (RB_WARN_ON(cpu_buffer, ++nr_loops > 2)) in rb_buffer_peek()
4787 int nr_loops = 0; in rb_iter_peek() local
4816 if (++nr_loops > 3) in rb_iter_peek()