Searched refs:BPF_OP (Results 1 – 10 of 10) sorted by relevance
/linux-4.1.27/samples/bpf/ |
D | libbpf.h | 25 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \ 33 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \ 43 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \ 51 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \ 148 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \ 158 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \
|
/linux-4.1.27/include/linux/ |
D | filter.h | 52 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \ 60 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \ 70 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \ 78 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \ 224 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \ 234 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \
|
/linux-4.1.27/include/uapi/linux/ |
D | bpf_common.h | 29 #define BPF_OP(code) ((code) & 0xf0) macro
|
/linux-4.1.27/arch/x86/net/ |
D | bpf_jit_comp.c | 287 switch (BPF_OP(insn->code)) { in do_jit() 338 switch (BPF_OP(insn->code)) { in do_jit() 444 if (BPF_OP(insn->code) == BPF_MOD) in do_jit() 504 switch (BPF_OP(insn->code)) { in do_jit() 539 switch (BPF_OP(insn->code)) { in do_jit() 781 switch (BPF_OP(insn->code)) { in do_jit()
|
/linux-4.1.27/kernel/bpf/ |
D | verifier.c | 324 bpf_alu_string[BPF_OP(insn->code) >> 4], in print_bpf_insn() 331 bpf_alu_string[BPF_OP(insn->code) >> 4], in print_bpf_insn() 387 u8 opcode = BPF_OP(insn->code); in print_bpf_insn() 399 bpf_jmp_string[BPF_OP(insn->code) >> 4], in print_bpf_insn() 404 bpf_jmp_string[BPF_OP(insn->code) >> 4], in print_bpf_insn() 916 u8 opcode = BPF_OP(insn->code); in check_alu_op() 1057 u8 opcode = BPF_OP(insn->code); in check_cond_jmp_op() 1385 u8 opcode = BPF_OP(insns[t].code); in check_cfg() 1736 u8 opcode = BPF_OP(insn->code); in do_check() 1940 BPF_OP(insn->code) == BPF_CALL || in adjust_branches() [all …]
|
/linux-4.1.27/arch/s390/net/ |
D | bpf_jit_comp.c | 580 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn() 600 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn() 620 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn() 623 if (BPF_OP(insn->code) == BPF_MOD) in bpf_jit_insn() 642 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn() 645 if (BPF_OP(insn->code) == BPF_MOD) in bpf_jit_insn()
|
/linux-4.1.27/net/core/ |
D | filter.c | 483 insn->code = BPF_JMP | BPF_OP(fp->code) | bpf_src; in bpf_convert_filter() 490 if (fp->jt == 0 && BPF_OP(fp->code) == BPF_JEQ) { in bpf_convert_filter() 499 insn->code = BPF_JMP | BPF_OP(fp->code) | bpf_src; in bpf_convert_filter()
|
/linux-4.1.27/arch/arm64/net/ |
D | bpf_jit_comp.c | 286 switch (BPF_OP(code)) { in build_insn() 442 switch (BPF_OP(code)) { in build_insn()
|
/linux-4.1.27/tools/net/ |
D | bpf_dbg.c | 431 if ((BPF_CLASS(f.code) == BPF_JMP && BPF_OP(f.code) != BPF_JA)) in bpf_disasm()
|
/linux-4.1.27/Documentation/networking/ |
D | filter.txt | 881 If BPF_CLASS(code) == BPF_ALU or BPF_ALU64 [ in eBPF ], BPF_OP(code) is one of: 898 If BPF_CLASS(code) == BPF_JMP, BPF_OP(code) is one of:
|