Home
last modified time | relevance | path

Searched refs:BPF_SRC (Results 1 – 23 of 23) sorted by relevance

/Linux-v6.6/tools/include/linux/
Dfilter.h72 .code = BPF_ALU | BPF_END | BPF_SRC(TYPE), \
118 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \
126 .code = BPF_ALU | BPF_MOV | BPF_SRC(TYPE), \
/Linux-v6.6/tools/include/uapi/linux/
Dbpf_common.h49 #define BPF_SRC(code) ((code) & 0x08) macro
/Linux-v6.6/include/uapi/linux/
Dbpf_common.h49 #define BPF_SRC(code) ((code) & 0x08) macro
/Linux-v6.6/tools/testing/selftests/bpf/
Ddisasm.c144 BPF_SRC(insn->code) == BPF_TO_BE ? "be" : "le", in print_bpf_end_insn()
187 } else if (BPF_SRC(insn->code) == BPF_X) { in print_bpf_insn()
330 } else if (BPF_SRC(insn->code) == BPF_X) { in print_bpf_insn()
/Linux-v6.6/kernel/bpf/
Ddisasm.c144 BPF_SRC(insn->code) == BPF_TO_BE ? "be" : "le", in print_bpf_end_insn()
187 } else if (BPF_SRC(insn->code) == BPF_X) { in print_bpf_insn()
330 } else if (BPF_SRC(insn->code) == BPF_X) { in print_bpf_insn()
Dverifier.c3430 if (BPF_SRC(insn->code) == BPF_X) { in backtrack_insn()
3447 if (BPF_SRC(insn->code) == BPF_X) { in backtrack_insn()
3634 } else if (BPF_SRC(insn->code) == BPF_X) { in backtrack_insn()
11745 return env->bypass_spec_v1 || BPF_SRC(insn->code) == BPF_K; in can_skip_alu_sanitation()
11797 if (BPF_SRC(insn->code) == BPF_K) { in sanitize_speculative_path()
11799 } else if (BPF_SRC(insn->code) == BPF_X) { in sanitize_speculative_path()
13003 if (BPF_SRC(insn->code) == BPF_X) { in adjust_reg_min_max_vals()
13078 if (BPF_SRC(insn->code) != BPF_K || in check_alu_op()
13088 BPF_SRC(insn->code) != BPF_TO_LE)) { in check_alu_op()
13112 if (BPF_SRC(insn->code) == BPF_X) { in check_alu_op()
[all …]
/Linux-v6.6/Documentation/bpf/
Dclassic_vs_extended.rst279 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-v6.6/arch/x86/net/
Dbpf_jit_comp32.c1693 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()
Dbpf_jit_comp.c1180 if (BPF_SRC(insn->code) == BPF_X) { in do_jit()
/Linux-v6.6/arch/arm/net/
Dbpf_jit_32.c1381 switch (BPF_SRC(code)) { in build_insn()
1429 switch (BPF_SRC(code)) { in build_insn()
1452 switch (BPF_SRC(code)) { in build_insn()
1530 switch (BPF_SRC(code)) { in build_insn()
1551 if (BPF_SRC(code) == BPF_FROM_LE) in build_insn()
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.h358 return BPF_SRC(meta->insn.code); in mbpf_src()
Djit.c3926 if (BPF_SRC(insn.code) != BPF_K) in nfp_bpf_opt_neg_add_sub()
/Linux-v6.6/include/linux/
Dfilter.h140 .code = BPF_ALU | BPF_END | BPF_SRC(TYPE), \
222 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \
230 .code = BPF_ALU | BPF_MOV | BPF_SRC(TYPE), \
/Linux-v6.6/arch/powerpc/net/
Dbpf_jit_comp64.c660 if (BPF_SRC(code) == BPF_FROM_BE) in bpf_jit_build_body()
663 if (BPF_SRC(code) == BPF_FROM_LE) in bpf_jit_build_body()
Dbpf_jit_comp32.c314 BPF_OP(prevcode) == BPF_MOV && BPF_SRC(prevcode) == BPF_X && in bpf_jit_build_body()
/Linux-v6.6/arch/riscv/net/
Dbpf_jit_comp32.c988 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn()
1041 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn()
1210 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn()
/Linux-v6.6/arch/parisc/net/
Dbpf_jit_comp32.c1162 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-v6.6/arch/arm64/net/
Dbpf_jit_comp.c866 if (BPF_CLASS(code) == BPF_ALU && BPF_SRC(code) == BPF_FROM_BE) in build_insn()
869 if (BPF_CLASS(code) == BPF_ALU && BPF_SRC(code) == BPF_FROM_LE) in build_insn()
/Linux-v6.6/arch/mips/net/
Dbpf_jit_comp64.c808 if (BPF_SRC(code) == in build_insn()
Dbpf_jit_comp32.c1638 if (BPF_SRC(code) == in build_insn()
/Linux-v6.6/tools/lib/bpf/
Drelo_core.c1050 if (BPF_SRC(insn->code) != BPF_K) in bpf_core_patch_insn()
Dlibbpf.c730 BPF_SRC(insn->code) == BPF_K && in insn_is_subprog_call()
6770 BPF_SRC(insn->code) == BPF_K && in insn_is_helper_call()
/Linux-v6.6/net/core/
Dfilter.c719 if (BPF_SRC(fp->code) == BPF_K && (int) fp->k < 0) { in bpf_convert_filter()
732 bpf_src = BPF_SRC(fp->code); in bpf_convert_filter()