Home
last modified time | relevance | path

Searched refs:bpf_for (Results 1 – 24 of 24) 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.c651 bpf_for(i, 0, size) { in bpf_memcmp()
700 bpf_for(i, 0, chunks) { in test_dynptr_copy_xdp()
710 bpf_for(i, 0, chunks) { in test_dynptr_copy_xdp()
721 bpf_for(i, 0, chunks) { in test_dynptr_copy_xdp()
731 bpf_for(i, 0, chunks) { in test_dynptr_copy_xdp()
745 bpf_for(i, 0, chunks - 1) { in test_dynptr_copy_xdp()
913 bpf_for(i, 0, max_chunks) { in test_dynptr_memset_xdp_chunks()
967 bpf_for(i, 0, ARRAY_SIZE(test_len)) { in test_dynptr_probe()
997 bpf_for(i, 0, ARRAY_SIZE(test_len)) { in test_dynptr_probe_str()
1028 bpf_for(i, 0, ARRAY_SIZE(test_len)) { in test_dynptr_probe_xdp()
[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 Dtask_local_data.bpf.h155 bpf_for(i, 0, TLD_KEY_MAP_CREATE_RETRY) { in tld_object_init()
185 bpf_for(i, 0, cnt) { in __tld_fetch_key()
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()
H A Denable_cmask.bpf.c69 bpf_for(cid, 0, nr_cids) { in check_mask()
/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.c232 bpf_for(i, 0, IDLE_PICK_RETRIES) { in pick_direct_dispatch_cid()
382 bpf_for(c, 0, nr_cids) { in first_unavail_cid()
1015 bpf_for(i, 0, 5) { in BPF_STRUCT_OPS()
1178 bpf_for(cid, 0, nr_online) { in monitor_cpuperf()
1422 bpf_for(cid, 0, nr_cids) { in compute_partition()
1438 bpf_for(i, 0, MAX_SUB_SCHEDS) { in compute_partition()
1450 bpf_for(i, 0, MAX_SUB_SCHEDS) { in compute_partition()
1468 bpf_for(i, 0, MAX_SUB_SCHEDS) { in compute_partition()
1489 bpf_for(cid, 0, nr_cids) { in compute_partition()
1540 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()
311 bpf_for(i, 0, nr_cpu_ids) { in central_timerfn()
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