Home
last modified time | relevance | path

Searched refs:BPF_CALL (Results 1 – 25 of 60) sorted by relevance

123

/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Dcalls.c281 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 2),
293 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 2),
308 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 8),
333 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 8),
357 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 8),
390 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 0),
416 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 3, 0, 0),
454 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 2),
470 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 4),
1031 BPF_RAW_INSN(BPF_JMP|BPF_CALL, 0, 1, 0, 1),
[all …]
H A Dbasic_call.c4 BPF_RAW_INSN(BPF_JMP | BPF_CALL | BPF_X, 0, 0, 0, 0),
13 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 1, 0),
22 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, 1234567),
31 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_cgroup_classid),
32 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_cgroup_classid),
43 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_cgroup_classid),
45 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_cgroup_classid),
H A Dmap_kptr.c11 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem),
31 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem),
51 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem),
82 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem),
97 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_kptr_xchg),
241 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_this_cpu_ptr),
284 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_kptr_xchg),
308 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_this_cpu_ptr),
332 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_kptr_xchg),
339 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_kptr_xchg),
[all …]
H A Dbpf_loop_inline.c24 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, BPF_PSEUDO_CALL, \
40 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_jiffies64),
50 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_loop),
70 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_jiffies64),
72 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_jiffies64),
81 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_loop),
117 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_loop),
155 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_loop),
189 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_loop),
196 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_loop),
[all …]
H A Ddead_code.c30 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32),
85 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 1),
101 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 1),
103 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 1),
117 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 3),
123 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, -5),
137 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 1),
151 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 1),
H A Dprecise.c120 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32),
124 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32),
129 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 4),
171 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32),
208 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_ringbuf_reserve),
213 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_ringbuf_submit),
243 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem),
H A Djset.c107 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32),
122 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32),
136 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32),
151 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32),
H A Djump.c81 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_delete_elem),
294 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, -20),
305 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 2),
325 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, -20),
336 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 4),
369 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, -31),
H A Devent_output.c35 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, \
H A Dld_abs.c84 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_skb_vlan_push),
260 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0,
H A Djmp32.c800 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem),
827 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem),
855 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem),
/openbmc/linux/samples/bpf/
H A Dcookie_uid_helper_example.c90 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in prog_load()
102 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in prog_load()
111 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in prog_load()
140 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in prog_load()
H A Dtest_cgrp2_attach.c54 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), in prog_load()
65 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), in prog_load()
H A Dsock_example.c55 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), in test_sock()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_cgroup_storage.c22 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in main()
30 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in main()
H A Dtest_verifier.c207 insn[i++] = BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in bpf_fill_ld_abs_vlan_push_pop()
218 insn[i++] = BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in bpf_fill_ld_abs_vlan_push_pop()
293 insn[i++] = BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in bpf_fill_scale1()
325 insn[i++] = BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in bpf_fill_scale2()
404 insn[i++] = BPF_RAW_INSN(BPF_JMP|BPF_CALL, 0, 1, 0, 4); in bpf_fill_torturous_jumps()
405 insn[i++] = BPF_RAW_INSN(BPF_JMP|BPF_CALL, 0, 1, 0, 262); in bpf_fill_torturous_jumps()
447 insn[i++] = BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_loop); in bpf_fill_big_prog_with_loop_1()
500 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, \
510 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, \
593 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in create_prog_dummy_loop()
H A Ddisasm.c134 [BPF_CALL >> 4] = "call",
307 if (opcode == BPF_CALL) { in print_bpf_insn()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_attach_multi.c45 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), in prog_load_cnt()
52 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_local_storage), in prog_load_cnt()
58 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_local_storage), in prog_load_cnt()
H A Dflow_dissector_load_bytes.c18 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in serial_test_flow_dissector_load_bytes()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.h457 return op != BPF_JA && op != BPF_EXIT && op != BPF_CALL; in is_mbpf_cond_jump()
464 return insn.code == (BPF_JMP | BPF_CALL) && in is_mbpf_helper_call()
472 return insn.code == (BPF_JMP | BPF_CALL) && in is_mbpf_pseudo_call()
/openbmc/linux/Documentation/bpf/
H A Dclang-notes.rst26 If ``-O0`` is used, Clang will generate the ``BPF_CALL | BPF_X | BPF_JMP`` (0x8d)
/openbmc/linux/tools/include/linux/
H A Dfilter.h262 .code = BPF_JMP | BPF_CALL, \
325 .code = BPF_JMP | BPF_CALL, \
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dsyscall.c69 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), in bpf_prog()
/openbmc/linux/kernel/bpf/
H A Ddisasm.c134 [BPF_CALL >> 4] = "call",
307 if (opcode == BPF_CALL) { in print_bpf_insn()
/openbmc/linux/tools/bpf/bpftool/
H A Dcfg.c141 if (cur->code != (BPF_JMP | BPF_CALL)) in cfg_partition_funcs()
181 if (opcode == BPF_EXIT || opcode == BPF_CALL) in func_partition_bb_head()

123