Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
A Diters.c168 bpf_for(i, 5, 10) { in iter_bpf_for_macro()
376 bpf_for(i, 0, ARRAY_SIZE(arr)) { in iter_array_fill()
1543 bpf_for(i, 0, n) { in iter_arr_with_actual_elem_count()
1594 bpf_for(i, 0, upper) { in iter_subprog_check_stacksafe()
1638 bpf_for(i, 0, 10) in clean_live_states()
1639 bpf_for(j, 0, 10) in clean_live_states()
1640 bpf_for(k, 0, 10) in clean_live_states()
1641 bpf_for(l, 0, 10) in clean_live_states()
1642 bpf_for(m, 0, 10) in clean_live_states()
1643 bpf_for(n, 0, 10) in clean_live_states()
[all …]
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()
A Ddynptr_success.c576 bpf_for(i, 0, size) { in bpf_memcmp()
625 bpf_for(i, 0, chunks) { in test_dynptr_copy_xdp()
635 bpf_for(i, 0, chunks) { in test_dynptr_copy_xdp()
646 bpf_for(i, 0, chunks) { in test_dynptr_copy_xdp()
656 bpf_for(i, 0, chunks) { in test_dynptr_copy_xdp()
670 bpf_for(i, 0, chunks - 1) { in test_dynptr_copy_xdp()
838 bpf_for(i, 0, max_chunks) { in test_dynptr_memset_xdp_chunks()
892 bpf_for(i, 0, ARRAY_SIZE(test_len)) { in test_dynptr_probe()
922 bpf_for(i, 0, ARRAY_SIZE(test_len)) { in test_dynptr_probe_str()
953 bpf_for(i, 0, ARRAY_SIZE(test_len)) { in test_dynptr_probe_xdp()
[all …]
A Dpercpu_alloc_array.c96 bpf_for(i, 0, nr_cpus) { in BPF_PROG()
174 bpf_for(i, 0, nr_cpus) { in BPF_PROG()
A Dfree_timer.c26 bpf_for(i, 0, 1024 * 1024) sum += i; in timer_cb()
A Ddmabuf_iter.c89 bpf_for(i, len, DMA_BUF_NAME_LEN) in iter_dmabuf_for_each()
A Dpercpu_alloc_cgrp_local_storage.c97 bpf_for(i, 0, nr_cpus) { in BPF_PROG()
A Dtest_usdt.c103 bpf_for(i, 0, 12) { in BPF_USDT()
A Dbpf_qdisc_fifo.c93 bpf_for(i, 0, sch->q.qlen) { in BPF_PROG()
A Dmem_rdonly_untrusted.c73 bpf_for(i, 0, 1000 * 1000 * 1000) { in offset_not_tracked()
A Dverifier_spin_lock.c548 bpf_for(i, 0, 10) { in bpf_loop_inside_locked_region()
A Dpyperf.h311 bpf_for(i, 0, STACK_MAX_LEN) {
A Dcpumask_success.c874 bpf_for(i, 0, nr_cpus) { in BPF_PROG()
A Dbpf_qdisc_fq.c604 bpf_for(i, 0, sch->limit) { in BPF_PROG()
/tools/testing/selftests/sched_ext/
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()
A Dnuma.bpf.c78 bpf_for(node, 0, __COMPAT_scx_bpf_nr_node_ids()) { in BPF_STRUCT_OPS_SLEEPABLE()
/tools/sched_ext/
A Dscx_central.bpf.c188 bpf_for(cpu, 0, nr_cpu_ids) { in BPF_STRUCT_OPS()
267 bpf_for(i, 0, nr_cpu_ids) { in central_timerfn()
A Dscx_qmap.bpf.c574 bpf_for(i, 0, 5) { in BPF_STRUCT_OPS()
653 bpf_for(cpu, 0, scx_bpf_nr_cpu_ids()) { in print_cpus()
717 bpf_for(i, 0, nr_cpu_ids) { in monitor_cpuperf()
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()
/tools/lib/bpf/
A Dbpf_helpers.h395 #ifndef bpf_for
409 #define bpf_for(i, start, end) for ( \ macro

Completed in 33 milliseconds