Home
last modified time | relevance | path

Searched refs:BPF_OP (Results 1 – 25 of 29) sorted by relevance

12

/OK3568_Linux_fs/kernel/samples/bpf/
H A Dbpf_insn.h12 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \
20 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \
30 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
38 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \
161 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \
171 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \
181 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \
191 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
/OK3568_Linux_fs/kernel/tools/include/linux/
H A Dfilter.h36 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \
44 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \
54 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
62 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \
196 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \
206 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \
216 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \
226 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Ddisasm.c125 if (BPF_OP(insn->code) == BPF_END) { in print_bpf_insn()
130 } else if (BPF_OP(insn->code) == BPF_NEG) { in print_bpf_insn()
139 bpf_alu_string[BPF_OP(insn->code) >> 4], in print_bpf_insn()
146 bpf_alu_string[BPF_OP(insn->code) >> 4], in print_bpf_insn()
218 u8 opcode = BPF_OP(insn->code); in print_bpf_insn()
245 bpf_jmp_string[BPF_OP(insn->code) >> 4], in print_bpf_insn()
253 bpf_jmp_string[BPF_OP(insn->code) >> 4], in print_bpf_insn()
H A Dverifier.c1527 if (BPF_OP(code) == BPF_EXIT || BPF_OP(code) == BPF_CALL) in check_subprogs()
1616 op = BPF_OP(code); in is_reg64()
1813 u8 opcode = BPF_OP(insn->code); in backtrack_insn()
5774 u8 opcode = BPF_OP(insn->code); in sanitize_ptr_alu()
5876 const char *op = BPF_OP(insn->code) == BPF_ADD ? "add" : "sub"; in sanitize_err()
5994 u8 opcode = BPF_OP(insn->code); in adjust_ptr_min_max_vals()
6784 u8 opcode = BPF_OP(insn->code); in adjust_scalar_min_max_vals()
6946 u8 opcode = BPF_OP(insn->code); in adjust_reg_min_max_vals()
7023 u8 opcode = BPF_OP(insn->code); in check_alu_op()
7828 switch (BPF_OP(insn->code)) { in try_match_pkt_pointers()
[all …]
H A Dcore.c403 BPF_OP(code) == BPF_EXIT) in bpf_adj_branches()
406 if (BPF_OP(code) == BPF_CALL) { in bpf_adj_branches()
/OK3568_Linux_fs/kernel/include/linux/
H A Dfilter.h95 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \
103 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \
113 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
121 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \
291 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \
301 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \
311 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \
321 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
/OK3568_Linux_fs/kernel/arch/x86/net/
H A Dbpf_jit_comp32.c540 switch (BPF_OP(op)) { in emit_ia32_alu_r()
1559 emit_ia32_alu_r64(is64, BPF_OP(code), dst, in do_jit()
1564 emit_ia32_alu_i64(is64, BPF_OP(code), dst, in do_jit()
1594 emit_ia32_shift_r(BPF_OP(code), dst_lo, src_lo, in do_jit()
1601 emit_ia32_shift_r(BPF_OP(code), dst_lo, in do_jit()
1617 emit_ia32_div_mod_r(BPF_OP(code), dst_lo, in do_jit()
1624 emit_ia32_div_mod_r(BPF_OP(code), dst_lo, in do_jit()
1645 emit_ia32_shift_r(BPF_OP(code), dst_lo, IA32_ECX, dstk, in do_jit()
1682 emit_ia32_alu_i(is64, false, BPF_OP(code), in do_jit()
2169 emit_cond_jmp: jmp_cond = get_cond_jmp_opcode(BPF_OP(code), false); in do_jit()
[all …]
H A Dbpf_jit_comp.c831 switch (BPF_OP(insn->code)) { in do_jit()
881 switch (BPF_OP(insn->code)) { in do_jit()
959 if (BPF_OP(insn->code) == BPF_MOD) in do_jit()
1021 switch (BPF_OP(insn->code)) { in do_jit()
1060 switch (BPF_OP(insn->code)) { in do_jit()
1368 switch (BPF_OP(insn->code)) { in do_jit()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dbpf_common.h31 #define BPF_OP(code) ((code) & 0xf0) macro
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dbpf_common.h31 #define BPF_OP(code) ((code) & 0xf0) macro
/OK3568_Linux_fs/kernel/tools/include/uapi/linux/
H A Dbpf_common.h31 #define BPF_OP(code) ((code) & 0xf0) macro
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dbpf_common.h31 #define BPF_OP(code) ((code) & 0xf0) macro
/OK3568_Linux_fs/kernel/arch/mips/net/
H A Debpf_jit.c431 switch (BPF_OP(insn->code)) { in gen_imm_insn()
463 BPF_OP(insn->code) != BPF_MOV && in gen_imm_insn()
468 BPF_OP(insn->code) != BPF_LSH && in gen_imm_insn()
469 BPF_OP(insn->code) != BPF_MOV && in gen_imm_insn()
475 switch (BPF_OP(insn->code) | BPF_CLASS(insn->code)) { in gen_imm_insn()
529 if (BPF_OP(insn->code) == BPF_MOV) { in gen_imm_insn()
533 switch (BPF_OP(insn->code) | BPF_CLASS(insn->code)) { in gen_imm_insn()
667 int bpf_op = BPF_OP(insn->code); in build_one_insn()
1577 switch (BPF_OP(insn->code)) { in reg_val_propagate_range()
1614 switch (BPF_OP(insn->code)) { in reg_val_propagate_range()
[all …]
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dcfg.c179 __u8 opcode = BPF_OP(cur->code); in func_partition_bb_head()
305 BPF_OP(insn->code) == BPF_EXIT) { in func_add_bb_edges()
310 } else if (BPF_OP(insn->code) == BPF_JA) { in func_add_bb_edges()
/OK3568_Linux_fs/kernel/arch/riscv/net/
H A Dbpf_jit_comp32.c994 emit_alu_r64(dst, src, ctx, BPF_OP(code)); in bpf_jit_emit_insn()
998 emit_alu_r64(dst, tmp2, ctx, BPF_OP(code)); in bpf_jit_emit_insn()
1014 emit_alu_i64(dst, imm, ctx, BPF_OP(code)); in bpf_jit_emit_insn()
1047 emit_alu_r32(dst, src, ctx, BPF_OP(code)); in bpf_jit_emit_insn()
1063 emit_alu_i32(dst, imm, ctx, BPF_OP(code)); in bpf_jit_emit_insn()
1071 emit_alu_r32(dst, tmp2, ctx, BPF_OP(code)); in bpf_jit_emit_insn()
1221 emit_branch_r64(dst, src, rvoff, ctx, BPF_OP(code)); in bpf_jit_emit_insn()
1223 emit_branch_r32(dst, src, rvoff, ctx, BPF_OP(code)); in bpf_jit_emit_insn()
H A Dbpf_jit_comp64.c765 if (is_signed_bpf_cond(BPF_OP(code))) in bpf_jit_emit_insn()
775 if (BPF_OP(code) == BPF_JSET) { in bpf_jit_emit_insn()
782 emit_branch(BPF_OP(code), rd, rs, rvoff, ctx); in bpf_jit_emit_insn()
817 if (is_signed_bpf_cond(BPF_OP(code))) in bpf_jit_emit_insn()
826 emit_branch(BPF_OP(code), rd, rs, rvoff, ctx); in bpf_jit_emit_insn()
/OK3568_Linux_fs/kernel/arch/powerpc/net/
H A Dbpf_jit_comp64.c420 if (BPF_OP(code) == BPF_MOD) { in bpf_jit_build_body()
430 if (BPF_OP(code) == BPF_MOD) { in bpf_jit_build_body()
445 if (BPF_OP(code) == BPF_DIV) { in bpf_jit_build_body()
456 if (BPF_OP(code) == BPF_MOD) { in bpf_jit_build_body()
470 if (BPF_OP(code) == BPF_MOD) { in bpf_jit_build_body()
/OK3568_Linux_fs/kernel/arch/s390/net/
H A Dbpf_jit_comp.c836 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn()
853 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn()
868 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn()
871 if (BPF_OP(insn->code) == BPF_MOD) in bpf_jit_insn()
903 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn()
906 if (BPF_OP(insn->code) == BPF_MOD) in bpf_jit_insn()
/OK3568_Linux_fs/kernel/arch/arm/net/
H A Dbpf_jit_32.c675 switch (BPF_OP(op)) { in emit_alu_r()
1446 emit_a32_alu_r64(is64, dst, src, ctx, BPF_OP(code)); in build_insn()
1456 emit_a32_alu_r64(is64, dst, tmp2, ctx, BPF_OP(code)); in build_insn()
1479 emit_udivmod(rd_lo, rd_lo, rt, ctx, BPF_OP(code)); in build_insn()
1498 emit_a32_alu_i(dst_lo, imm, ctx, BPF_OP(code)); in build_insn()
1534 emit_a32_alu_i(dst_lo, 0, ctx, BPF_OP(code)); in build_insn()
1739 emit_ar_r(rd[0], rd[1], rm, rn, ctx, BPF_OP(code), in build_insn()
1744 switch (BPF_OP(code)) { in build_insn()
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Dbpf-prologue.c340 opcode = BPF_OP(insn->code); in prologue_relocate()
/OK3568_Linux_fs/kernel/arch/sparc/net/
H A Dbpf_jit_comp_64.c668 BPF_OP(code) == BPF_JSET) in emit_compare_and_branch()
691 if (BPF_OP(code) == BPF_JSET) { in emit_compare_and_branch()
702 switch (BPF_OP(code)) { in emit_compare_and_branch()
745 switch (BPF_OP(code)) { in emit_compare_and_branch()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.h363 return BPF_OP(meta->insn.code); in mbpf_op()
H A Djit.c1390 op = BPF_OP(meta->insn.code) >> 4; in nfp_jmp_code_get()
3926 switch (BPF_OP(insn.code)) { in nfp_bpf_opt_neg_add_sub()
3937 if (BPF_OP(insn.code) == BPF_ADD) in nfp_bpf_opt_neg_add_sub()
3939 else if (BPF_OP(insn.code) == BPF_SUB) in nfp_bpf_opt_neg_add_sub()
4498 if (BPF_OP(code) == BPF_EXIT) in nfp_bpf_jit_prepare()
4506 pseudo_call = BPF_OP(code) == BPF_CALL; in nfp_bpf_jit_prepare()
/OK3568_Linux_fs/kernel/arch/arm64/net/
H A Dbpf_jit_comp.c493 switch (BPF_OP(code)) { in build_insn()
678 switch (BPF_OP(code)) { in build_insn()
/OK3568_Linux_fs/kernel/tools/bpf/
H A Dbpf_dbg.c431 if ((BPF_CLASS(f.code) == BPF_JMP && BPF_OP(f.code) != BPF_JA)) in bpf_disasm()

12