Home
last modified time | relevance | path

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

/linux-4.4.14/samples/bpf/
Dlibbpf.h28 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \
36 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \
46 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
54 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \
159 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \
169 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \
/linux-4.4.14/tools/include/linux/
Dfilter.h35 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \
43 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \
53 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
61 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \
185 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \
195 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \
/linux-4.4.14/include/linux/
Dfilter.h54 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \
62 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \
72 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
80 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \
236 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \
246 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \
/linux-4.4.14/include/uapi/linux/
Dbpf_common.h29 #define BPF_OP(code) ((code) & 0xf0) macro
/linux-4.4.14/arch/x86/net/
Dbpf_jit_comp.c378 switch (BPF_OP(insn->code)) { in do_jit()
429 switch (BPF_OP(insn->code)) { in do_jit()
535 if (BPF_OP(insn->code) == BPF_MOD) in do_jit()
595 switch (BPF_OP(insn->code)) { in do_jit()
630 switch (BPF_OP(insn->code)) { in do_jit()
887 switch (BPF_OP(insn->code)) { in do_jit()
/linux-4.4.14/kernel/bpf/
Dverifier.c325 bpf_alu_string[BPF_OP(insn->code) >> 4], in print_bpf_insn()
332 bpf_alu_string[BPF_OP(insn->code) >> 4], in print_bpf_insn()
388 u8 opcode = BPF_OP(insn->code); in print_bpf_insn()
400 bpf_jmp_string[BPF_OP(insn->code) >> 4], in print_bpf_insn()
405 bpf_jmp_string[BPF_OP(insn->code) >> 4], in print_bpf_insn()
1018 u8 opcode = BPF_OP(insn->code); in check_alu_op()
1180 u8 opcode = BPF_OP(insn->code); in check_cond_jmp_op()
1518 u8 opcode = BPF_OP(insns[t].code); in check_cfg()
1877 u8 opcode = BPF_OP(insn->code); in do_check()
2092 BPF_OP(insn->code) == BPF_CALL || in adjust_branches()
[all …]
/linux-4.4.14/arch/s390/net/
Dbpf_jit_comp.c615 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn()
635 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn()
655 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn()
658 if (BPF_OP(insn->code) == BPF_MOD) in bpf_jit_insn()
677 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn()
680 if (BPF_OP(insn->code) == BPF_MOD) in bpf_jit_insn()
/linux-4.4.14/arch/arm64/net/
Dbpf_jit_comp.c319 switch (BPF_OP(code)) { in build_insn()
475 switch (BPF_OP(code)) { in build_insn()
/linux-4.4.14/net/core/
Dfilter.c484 insn->code = BPF_JMP | BPF_OP(fp->code) | bpf_src; in bpf_convert_filter()
491 if (fp->jt == 0 && BPF_OP(fp->code) == BPF_JEQ) { in bpf_convert_filter()
500 insn->code = BPF_JMP | BPF_OP(fp->code) | bpf_src; in bpf_convert_filter()
/linux-4.4.14/tools/net/
Dbpf_dbg.c431 if ((BPF_CLASS(f.code) == BPF_JMP && BPF_OP(f.code) != BPF_JA)) in bpf_disasm()
/linux-4.4.14/Documentation/networking/
Dfilter.txt881 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: