| /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/include/uapi/linux/ |
| H A D | bpf_common.h | 49 #define BPF_SRC(code) ((code) & 0x08) macro
|
| /linux/tools/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() 373 } else if (BPF_SRC(insn->code) == BPF_X) { in print_bpf_insn()
|
| H A D | verifier.c | 4276 if (BPF_SRC(insn->code) == BPF_X) { in backtrack_insn() 4294 if (BPF_SRC(insn->code) == BPF_X) { in backtrack_insn() 4492 } else if (BPF_SRC(insn->code) == BPF_X) { in backtrack_insn() 4505 } else if (BPF_SRC(insn->code) == BPF_K) { in backtrack_insn() 14379 BPF_SRC(insn->code) == BPF_K || in can_skip_alu_sanitation() 14431 if (BPF_SRC(insn->code) == BPF_K) { in sanitize_speculative_path() 14433 } else if (BPF_SRC(insn->code) == BPF_X) { in sanitize_speculative_path() 15645 if (BPF_SRC(insn->code) == BPF_X) { in adjust_reg_min_max_vals() 15757 if (BPF_SRC(insn->code) != BPF_K || in check_alu_op() 15767 BPF_SRC(insn->code) != BPF_TO_LE)) { 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() 373 } 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 | 1890 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 | 153 .code = BPF_ALU | BPF_END | BPF_SRC(TYPE), \ 163 .code = BPF_ALU64 | BPF_END | BPF_SRC(BPF_TO_LE), \ 292 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \ 300 .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/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/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/powerpc/net/ |
| H A D | bpf_jit_comp64.c | 965 if (BPF_SRC(code) == BPF_FROM_BE) in bpf_jit_build_body() 968 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/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/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 1333 if (BPF_CLASS(code) == BPF_ALU && BPF_SRC(code) == BPF_FROM_BE) in build_insn() 1336 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()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 820 BPF_SRC(insn->code) == BPF_K && in insn_is_subprog_call() 7652 BPF_SRC(insn->code) == BPF_K && in insn_is_helper_call()
|