Home
last modified time | relevance | path

Searched refs:BPF_ALU64 (Results 1 – 9 of 9) sorted by relevance

/linux-4.1.27/arch/x86/net/
Dbpf_jit_comp.c282 case BPF_ALU64 | BPF_ADD | BPF_X: in do_jit()
283 case BPF_ALU64 | BPF_SUB | BPF_X: in do_jit()
284 case BPF_ALU64 | BPF_AND | BPF_X: in do_jit()
285 case BPF_ALU64 | BPF_OR | BPF_X: in do_jit()
286 case BPF_ALU64 | BPF_XOR | BPF_X: in do_jit()
294 if (BPF_CLASS(insn->code) == BPF_ALU64) in do_jit()
302 case BPF_ALU64 | BPF_MOV | BPF_X: in do_jit()
315 case BPF_ALU64 | BPF_NEG: in do_jit()
316 if (BPF_CLASS(insn->code) == BPF_ALU64) in do_jit()
328 case BPF_ALU64 | BPF_ADD | BPF_K: in do_jit()
[all …]
/linux-4.1.27/kernel/bpf/
Dcore.c220 [BPF_ALU64 | BPF_ADD | BPF_X] = &&ALU64_ADD_X, in __bpf_prog_run()
221 [BPF_ALU64 | BPF_ADD | BPF_K] = &&ALU64_ADD_K, in __bpf_prog_run()
222 [BPF_ALU64 | BPF_SUB | BPF_X] = &&ALU64_SUB_X, in __bpf_prog_run()
223 [BPF_ALU64 | BPF_SUB | BPF_K] = &&ALU64_SUB_K, in __bpf_prog_run()
224 [BPF_ALU64 | BPF_AND | BPF_X] = &&ALU64_AND_X, in __bpf_prog_run()
225 [BPF_ALU64 | BPF_AND | BPF_K] = &&ALU64_AND_K, in __bpf_prog_run()
226 [BPF_ALU64 | BPF_OR | BPF_X] = &&ALU64_OR_X, in __bpf_prog_run()
227 [BPF_ALU64 | BPF_OR | BPF_K] = &&ALU64_OR_K, in __bpf_prog_run()
228 [BPF_ALU64 | BPF_LSH | BPF_X] = &&ALU64_LSH_X, in __bpf_prog_run()
229 [BPF_ALU64 | BPF_LSH | BPF_K] = &&ALU64_LSH_K, in __bpf_prog_run()
[all …]
Dverifier.c275 [BPF_ALU64] = "alu64",
319 if (class == BPF_ALU || class == BPF_ALU64) { in print_bpf_insn()
970 if (BPF_CLASS(insn->code) == BPF_ALU64) { in check_alu_op()
1024 int size = BPF_CLASS(insn->code) == BPF_ALU64 ? 64 : 32; in check_alu_op()
1033 if (opcode == BPF_ADD && BPF_CLASS(insn->code) == BPF_ALU64 && in check_alu_op()
1631 if (class == BPF_ALU || class == BPF_ALU64) { in do_check()
/linux-4.1.27/arch/arm64/net/
Dbpf_jit_comp.c224 const bool is64 = BPF_CLASS(code) == BPF_ALU64; in build_insn()
242 case BPF_ALU64 | BPF_MOV | BPF_X: in build_insn()
247 case BPF_ALU64 | BPF_ADD | BPF_X: in build_insn()
251 case BPF_ALU64 | BPF_SUB | BPF_X: in build_insn()
255 case BPF_ALU64 | BPF_AND | BPF_X: in build_insn()
259 case BPF_ALU64 | BPF_OR | BPF_X: in build_insn()
263 case BPF_ALU64 | BPF_XOR | BPF_X: in build_insn()
267 case BPF_ALU64 | BPF_MUL | BPF_X: in build_insn()
271 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
273 case BPF_ALU64 | BPF_MOD | BPF_X: in build_insn()
[all …]
/linux-4.1.27/arch/s390/net/
Dbpf_jit_comp.c472 case BPF_ALU64 | BPF_MOV | BPF_X: /* dst = src */ in bpf_jit_insn()
480 case BPF_ALU64 | BPF_MOV | BPF_K: /* dst = imm */ in bpf_jit_insn()
507 case BPF_ALU64 | BPF_ADD | BPF_X: /* dst = dst + src */ in bpf_jit_insn()
518 case BPF_ALU64 | BPF_ADD | BPF_K: /* dst = dst + imm */ in bpf_jit_insn()
532 case BPF_ALU64 | BPF_SUB | BPF_X: /* dst = dst - src */ in bpf_jit_insn()
543 case BPF_ALU64 | BPF_SUB | BPF_K: /* dst = dst - imm */ in bpf_jit_insn()
557 case BPF_ALU64 | BPF_MUL | BPF_X: /* dst = dst * src */ in bpf_jit_insn()
568 case BPF_ALU64 | BPF_MUL | BPF_K: /* dst = dst * imm */ in bpf_jit_insn()
597 case BPF_ALU64 | BPF_DIV | BPF_X: /* dst = dst / src */ in bpf_jit_insn()
598 case BPF_ALU64 | BPF_MOD | BPF_X: /* dst = dst % src */ in bpf_jit_insn()
[all …]
/linux-4.1.27/samples/bpf/
Dlibbpf.h25 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \
43 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
61 .code = BPF_ALU64 | BPF_MOV | BPF_X, \
71 .code = BPF_ALU64 | BPF_MOV | BPF_K, \
/linux-4.1.27/include/linux/
Dfilter.h52 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \
70 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
98 .code = BPF_ALU64 | BPF_MOV | BPF_X, \
116 .code = BPF_ALU64 | BPF_MOV | BPF_K, \
156 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \
/linux-4.1.27/include/uapi/linux/
Dbpf.h16 #define BPF_ALU64 0x07 /* alu mode in double word width */ macro
/linux-4.1.27/Documentation/networking/
Dfilter.txt862 BPF_MISC 0x07 BPF_ALU64 0x07
881 If BPF_CLASS(code) == BPF_ALU or BPF_ALU64 [ in eBPF ], BPF_OP(code) is one of:
919 BPF_MISC operations in eBPF, the class 7 is used as BPF_ALU64 to mean
921 instead. So BPF_ADD | BPF_X | BPF_ALU64 means 64-bit addition, i.e.: