Home
last modified time | relevance | path

Searched refs:bpf_for (Results 1 – 22 of 22) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Diters.c251 bpf_for(i, 5, 10) { in iter_bpf_for_macro()
459 bpf_for(i, 0, ARRAY_SIZE(arr)) { in iter_array_fill()
464 bpf_for(i, 0, ARRAY_SIZE(arr)) { in iter_array_fill()
485 bpf_for(row, 0, ARRAY_SIZE(arr2d)) { in iter_nested_iters()
486 bpf_for( col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters()
493 bpf_for(row, 0, ARRAY_SIZE(arr2d)) { in iter_nested_iters()
496 bpf_for(col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters()
501 bpf_for(row, 0, ARRAY_SIZE(arr2d)) { in iter_nested_iters()
502 bpf_for(col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters()
510 bpf_for(row, 0, ARRAY_SIZE(arr2d)) { in iter_nested_iters()
[all …]
H A Diters_num.c18 bpf_for(i, 0, 0) sum += i; in num_empty_zero()
32 bpf_for(i, INT_MIN, INT_MIN) sum += i; in num_empty_int_min()
46 bpf_for(i, INT_MAX, INT_MAX) sum += i; in num_empty_int_max()
60 bpf_for(i, -1, -1) sum += i; in num_empty_minus_one()
74 bpf_for(i, 0, 10) sum += i; in num_simple_sum()
88 bpf_for(i, -10, 0) sum += i; in num_neg_sum()
102 bpf_for(i, INT_MIN, INT_MIN + 2) sum += i; in num_very_neg_sum()
116 bpf_for(i, INT_MAX - 2, INT_MAX) sum += i; in num_very_big_sum()
130 bpf_for(i, -3, 3) sum += i; in num_neg_pos_sum()
H A Ddynptr_success.c631 bpf_for(i, 0, size) { in test_dynptr_copy_xdp()
680 bpf_for(i, 0, chunks) { in test_dynptr_copy_xdp()
690 bpf_for(i, 0, chunks) { in test_dynptr_memset_zero()
701 bpf_for(i, 0, chunks) { in test_dynptr_memset_zero()
711 bpf_for(i, 0, chunks) { in test_dynptr_memset_notzero()
725 bpf_for(i, 0, chunks - 1) {
893 bpf_for(i, 0, max_chunks) { in test_dynptr_probe()
947 bpf_for(i, 0, ARRAY_SIZE(test_len)) { in test_dynptr_probe_xdp()
977 bpf_for(i, 0, ARRAY_SIZE(test_len)) { in test_dynptr_probe_str_xdp()
1008 bpf_for( in test_probe_read_user_dynptr()
[all...]
H A Dpercpu_alloc_array.c96 bpf_for(i, 0, nr_cpus) { in BPF_PROG()
174 bpf_for(i, 0, nr_cpus) { in BPF_PROG()
H A Dbpf_for_bench.c21 bpf_for(i, 0, nr_loops) in outer_loop()
H A Dfree_timer.c36 bpf_for(i, 0, 1024 * 1024) sum += i; in start_cb()
H A Ddmabuf_iter.c89 bpf_for(i, len, DMA_BUF_NAME_LEN) in iter_dmabuf_for_each()
H A Dpercpu_alloc_cgrp_local_storage.c97 bpf_for(i, 0, nr_cpus) { in BPF_PROG()
H A Dverifier_spin_lock.c548 bpf_for(i, 0, 10) { in bpf_loop_inside_locked_region()
H A Dmem_rdonly_untrusted.c74 bpf_for(i, 0, 1000 * 1000 * 1000) { in offset_not_tracked()
H A Dverifier_global_subprogs.c401 bpf_for(i, 0, 100) in syscall_array_bpf_for()
H A Dpyperf.h319 bpf_for(i, 0, STACK_MAX_LEN) {
H A Dcpumask_success.c874 bpf_for(i, 0, nr_cpus) { in BPF_PROG()
/linux/tools/testing/selftests/sched_ext/
H A Dpeek_dsq.bpf.c67 bpf_for(ix, 0, 10) { in record_peek_result()
87 bpf_for(i, 0, DSQ_POOL_SIZE) { in scan_dsq_pool()
205 bpf_for(i, 0, DSQ_POOL_SIZE) { in BPF_STRUCT_OPS_SLEEPABLE()
216 bpf_for(i, 0, MAX_SAMPLES) { in BPF_STRUCT_OPS_SLEEPABLE()
235 bpf_for(i, 0, DSQ_POOL_SIZE) { in BPF_STRUCT_OPS()
H A Dcreate_dsq.bpf.c37 bpf_for(i, 0, 1024) { in BPF_STRUCT_OPS_SLEEPABLE()
45 bpf_for(i, 0, 1024) { in BPF_STRUCT_OPS_SLEEPABLE()
H A Dnuma.bpf.c103 bpf_for(node, 0, __COMPAT_scx_bpf_nr_node_ids()) { in BPF_STRUCT_OPS_SLEEPABLE()
/linux/tools/sched_ext/include/scx/
H A Dcid.bpf.h79 bpf_for(i, 0, CMASK_MAX_WORDS) { in __cmask_init()
153 bpf_for(i, 0, CMASK_CAS_TRIES) { in cmask_set()
174 bpf_for(i, 0, CMASK_CAS_TRIES) { in cmask_clear()
195 bpf_for(i, 0, CMASK_CAS_TRIES) { in cmask_test_and_set()
217 bpf_for(i, 0, CMASK_CAS_TRIES) { in cmask_test_and_clear()
275 bpf_for(i, 0, CMASK_MAX_WORDS) { in cmask_zero()
334 bpf_for(i, 0, CMASK_MAX_WORDS) { in cmask_op()
398 bpf_for(i, 0, CMASK_MAX_WORDS) { in cmask_equal()
431 bpf_for(i, 0, CMASK_MAX_WORDS) { in cmask_next_set()
498 bpf_for(i, 0, CMASK_MAX_WORDS) { in cmask_subset()
[all …]
/linux/tools/sched_ext/
H A Dscx_qmap.bpf.c229 bpf_for(i, 0, IDLE_PICK_RETRIES) { in pick_direct_dispatch_cid()
379 bpf_for(c, 0, nr_cids) { in first_unavail_cid()
1002 bpf_for(i, 0, 5) { in BPF_STRUCT_OPS()
1165 bpf_for(cid, 0, nr_online) { in monitor_cpuperf()
1402 bpf_for(cid, 0, nr_cids) { in compute_partition()
1418 bpf_for(i, 0, MAX_SUB_SCHEDS) { in compute_partition()
1430 bpf_for(i, 0, MAX_SUB_SCHEDS) { in compute_partition()
1448 bpf_for(i, 0, MAX_SUB_SCHEDS) { in compute_partition()
1469 bpf_for(cid, 0, nr_cids) { in compute_partition()
1520 bpf_for(i, 0, MAX_SUB_SCHEDS) in account_alloc()
[all …]
H A Dscx_central.bpf.c231 bpf_for(cpu, 0, nr_cpu_ids) { in BPF_STRUCT_OPS()
310 bpf_for(i, 0, nr_cpu_ids) { in BPF_STRUCT_OPS_SLEEPABLE()
H A Dscx_flatcg.bpf.c207 bpf_for(level, 0, cgrp->level + 1) { in cgrp_refresh_hweight()
454 bpf_for(idx, 0, cgrp->level) { in update_active_weight_sums()
H A Dscx_pair.bpf.c611 bpf_for(i, 0, MAX_CGRPS) { in BPF_STRUCT_OPS()
/linux/tools/lib/bpf/
H A Dbpf_helpers.h392 #ifndef bpf_for
406 #define bpf_for(i, start, end) for ( \ macro