Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A 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/tools/testing/selftests/bpf/benchs/
H A 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()
H A Dbench_bpf_for.c14 __u32 nr_loops; member
20 .nr_loops = 1000,
37 args.nr_loops = strtol(arg, NULL, 10); in parse_arg()
92 ctx.skel->bss->nr_loops = args.nr_loops; in setup()
H A Dbench_bpf_hashmap_lookup.c25 __u32 nr_loops; member
31 .nr_loops = 1000000,
51 { "nr_loops", ARG_NR_LOOPS, "NR_LOOPS", 0,
96 fprintf(stderr, "invalid nr_loops: %ld (min=1 max=%u)\n", in parse_arg()
100 args.nr_loops = ret; in parse_arg()
178 ctx.skel->bss->nr_loops = args.nr_loops / args.nr_entries; in setup()
219 return args.nr_loops * 1000000000llu / time / 1000000.0L; in compute_events()
H A Dbench_bpf_hashmap_full_update.c60 ctx.skel->bss->nr_loops = MAX_LOOP_NUM; in setup()
97 i, ctx.skel->bss->nr_loops * 1000000000ll / time);
/linux/tools/testing/selftests/net/bench/page_pool/
H A Dbench_page_pool_simple.c216 uint32_t nr_loops = loops; in run_benchmark_tests() local
220 time_bench_loop(nr_loops * 10, 0, "for_loop", NULL, in run_benchmark_tests()
222 time_bench_loop(nr_loops * 10, 0, "atomic_inc", NULL, in run_benchmark_tests()
224 time_bench_loop(nr_loops, 0, "lock", NULL, time_bench_lock); in run_benchmark_tests()
229 time_bench_loop(nr_loops, 0, "no-softirq-page_pool01", NULL, in run_benchmark_tests()
232 time_bench_loop(nr_loops, 0, "no-softirq-page_pool02", NULL, in run_benchmark_tests()
235 time_bench_loop(nr_loops, 0, "no-softirq-page_pool03", NULL, in run_benchmark_tests()
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_for_bench.c10 int nr_loops; variable
21 bpf_for(i, 0, nr_loops) in outer_loop()
23 __sync_add_and_fetch(&hits, nr_loops); in outer_loop()
H A 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()
H A 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()
H A Dbpf_hashmap_full_update_bench.c20 u64 nr_loops; variable
37 bpf_loop(nr_loops, loop_update_callback, &key, 0); in benchmark()
H A Dbpf_hashmap_lookup.c22 u64 nr_loops; variable
59 bpf_loop(nr_loops, loop_lookup_callback, NULL, 0); in benchmark()
/linux/tools/perf/bench/
H A Dmem-functions.c42 static unsigned int nr_loops = 1;
60 OPT_UINTEGER('l', "nr_loops", &nr_loops,
86 unsigned int nr_loops;
271 p.nr_loops = nr_loops; in bench_mem_common()
278 p.size_total = p.size * p.nr_loops; in bench_mem_common()
346 for (unsigned int i = 0; i < p->nr_loops; ++i) in bench_mmap()
450 for (unsigned int i = 0; i < p->nr_loops; ++i)
530 for (unsigned int i = 0; i < p->nr_loops;
40 static unsigned int nr_loops = 1; global() variable
83 unsigned int nr_loops; global() member
[all...]
H A Dsched-messaging.c36 static unsigned int nr_loops = 100; variable
93 /* Sender sprays nr_loops messages down each file descriptor */
103 for (i = 0; i < nr_loops; i++) { in sender()
235 ctx->num_packets = num_fds * nr_loops; in group()
283 OPT_UINTEGER('l', "nr_loops", &nr_loops, "Specify the number of loops to run (default: 100)"),
/linux/kernel/sched/ext/
H A Dinlines.h34 int nr_loops = SCX_DSP_MAX_LOOPS; in scx_dispatch_sched() local
120 if (unlikely(!--nr_loops)) { in scx_dispatch_sched()
/linux/tools/perf/Documentation/
H A Dperf-bench.txt97 --nr_loops=::
202 --nr_loops::
236 --nr_loops::
270 --nr_loops::
/linux/kernel/bpf/
H A Dbpf_iter.c727 BPF_CALL_4(bpf_loop, u32, nr_loops, void *, callback_fn, void *, callback_ctx, in BPF_CALL_4() argument
740 if (nr_loops > BPF_MAX_LOOPS) in BPF_CALL_4()
743 for (i = 0; i < nr_loops; i++) { in BPF_CALL_4()
/linux/kernel/trace/
H A Dring_buffer.c1608 int nr_loops = 0; in rb_check_pages() local
1630 if (++nr_loops > 3) in rb_check_pages()
4921 int nr_loops = 0; in rb_reserve_next_event() local
4977 if (RB_WARN_ON(cpu_buffer, ++nr_loops > 1000)) in rb_reserve_next_event()
5861 int nr_loops = 0; in __rb_get_reader_page() local
5877 if (RB_WARN_ON(cpu_buffer, ++nr_loops > max_loops)) { in __rb_get_reader_page()
6002 for (nr_loops = 0; nr_loops < USECS_WAIT; nr_loops++) { in __rb_get_reader_page()
6014 if (RB_WARN_ON(cpu_buffer, nr_loops == USECS_WAIT)) in __rb_get_reader_page()
6105 int nr_loops = 0; in rb_buffer_peek() local
6116 if (RB_WARN_ON(cpu_buffer, ++nr_loops > 2)) in rb_buffer_peek()
[all …]