/linux/tools/include/linux/ |
H A D | filter.h | 72 .code = BPF_ALU | BPF_END | BPF_SRC(TYPE), \ 136 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \ 144 .code = BPF_ALU | BPF_MOV | BPF_SRC(TYPE), \
|
/linux/tools/include/uapi/linux/ |
H A D | bpf_common.h | 49 #define BPF_SRC(code) ((code) & 0x08) macro
|
/linux/include/uapi/linux/ |
H A D | bpf_common.h | 49 #define BPF_SRC(code) ((code) & 0x08) macro
|
/linux/kernel/bpf/ |
H A D | disasm.c | 144 BPF_SRC(insn->code) == BPF_TO_BE ? "be" : "le", in print_bpf_end_insn() 211 } else if (BPF_SRC(insn->code) == BPF_X) { in print_bpf_insn() 370 } else if (BPF_SRC(insn->code) == BPF_X) { in print_bpf_insn()
|
H A D | verifier.c | 4302 if (BPF_SRC(insn->code) == BPF_X) { in backtrack_insn() 4320 if (BPF_SRC(insn->code) == BPF_X) { in backtrack_insn() 4513 } else if (BPF_SRC(insn->code) == BPF_X) { in backtrack_insn() 4526 } else if (BPF_SRC(insn->code) == BPF_K) { in backtrack_insn() 14169 BPF_SRC(insn->code) == BPF_K || in can_skip_alu_sanitation() 14222 if (BPF_SRC(insn->code) == BPF_K) { in sanitize_speculative_path() 14224 } else if (BPF_SRC(insn->code) == BPF_X) { in sanitize_speculative_path() 15436 if (BPF_SRC(insn->code) == BPF_X) { in adjust_reg_min_max_vals() 15548 if (BPF_SRC(insn->code) != BPF_K || in check_alu_op() 15558 BPF_SRC(ins in check_alu_op() [all...] |
/linux/tools/testing/selftests/bpf/ |
H A D | disasm.c | 144 BPF_SRC(insn->code) == BPF_TO_BE ? "be" : "le", in print_bpf_end_insn() 211 } else if (BPF_SRC(insn->code) == BPF_X) { in print_bpf_insn() 370 } else if (BPF_SRC(insn->code) == BPF_X) { in print_bpf_insn()
|
/linux/Documentation/bpf/ |
H A D | classic_vs_extended.rst | 279 BPF_SRC(code) == BPF_X - use register X as source operand 280 BPF_SRC(code) == BPF_K - use 32-bit immediate as source operand 284 BPF_SRC(code) == BPF_X - use 'src_reg' register as source operand 285 BPF_SRC(code) == BPF_K - use 32-bit immediate as source operand
|
/linux/arch/x86/net/ |
H A D | bpf_jit_comp32.c | 1693 switch (BPF_SRC(code)) { in do_jit() 1738 switch (BPF_SRC(code)) { in do_jit() 1753 switch (BPF_SRC(code)) { in do_jit() 1773 switch (BPF_SRC(code)) { in do_jit() 1796 switch (BPF_SRC(code)) { in do_jit() 1875 switch (BPF_SRC(code)) { in do_jit()
|
H A D | bpf_jit_comp.c | 1791 if (BPF_SRC(insn->code) == BPF_X) { in do_jit()
|
/linux/arch/arm/net/ |
H A D | bpf_jit_32.c | 1622 switch (BPF_SRC(code)) { in build_insn() 1673 switch (BPF_SRC(code)) { in build_insn() 1696 switch (BPF_SRC(code)) { in build_insn() 1718 switch (BPF_SRC(code)) { in build_insn() 1786 switch (BPF_SRC(code)) { in build_insn() 1809 if (BPF_SRC(code) == BPF_FROM_LE && BPF_CLASS(code) != BPF_ALU64) in build_insn()
|
/linux/include/linux/ |
H A D | filter.h | 150 .code = BPF_ALU | BPF_END | BPF_SRC(TYPE), \ 160 .code = BPF_ALU64 | BPF_END | BPF_SRC(BPF_TO_LE), \ 289 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \ 297 .code = BPF_ALU | BPF_MOV | BPF_SRC(TYPE), \
|
/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | main.h | 358 return BPF_SRC(meta->insn.code); in mbpf_src()
|
H A D | jit.c | 3926 if (BPF_SRC(insn.code) != BPF_K) in nfp_bpf_opt_neg_add_sub()
|
/linux/arch/arc/net/ |
H A D | bpf_jit_core.c | 377 return BPF_SRC(insn->code) == BPF_K; in has_imm() 853 CHECK_RET(handle_swap(buf, dst, imm, BPF_SRC(code), in handle_insn()
|
/linux/arch/riscv/net/ |
H A D | bpf_jit_comp32.c | 987 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn() 1040 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn() 1209 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn()
|
/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp64.c | 806 if (BPF_SRC(code) == BPF_FROM_BE) in bpf_jit_build_body() 809 if (BPF_CLASS(code) == BPF_ALU && BPF_SRC(code) == BPF_FROM_LE) in bpf_jit_build_body()
|
H A D | bpf_jit_comp32.c | 319 BPF_OP(prevcode) == BPF_MOV && BPF_SRC(prevcode) == BPF_X && in bpf_jit_build_body()
|
/linux/arch/parisc/net/ |
H A D | bpf_jit_comp32.c | 1162 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn() 1210 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn() 1379 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn()
|
/linux/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 808 if (BPF_SRC(code) == in build_insn()
|
H A D | bpf_jit_comp32.c | 1638 if (BPF_SRC(code) == in build_insn()
|
/linux/tools/lib/bpf/ |
H A D | relo_core.c | 1066 if (BPF_SRC(insn->code) != BPF_K) in bpf_core_patch_insn()
|
H A D | libbpf.c | 790 BPF_SRC(insn->code) == BPF_K && in insn_is_subprog_call() 7360 BPF_SRC(insn->code) == BPF_K && in insn_is_helper_call()
|
/linux/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 1289 if (BPF_CLASS(code) == BPF_ALU && BPF_SRC(code) == BPF_FROM_BE) in build_insn() 1292 if (BPF_CLASS(code) == BPF_ALU && BPF_SRC(code) == BPF_FROM_LE) in build_insn()
|
/linux/net/core/ |
H A D | filter.c | 745 if (BPF_SRC(fp->code) == BPF_K && (int) fp->k < 0) { in bpf_convert_filter() 758 bpf_src = BPF_SRC(fp->code); in bpf_convert_filter()
|