/tools/bpf/ |
D | bpf_exp.y | 219 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_K, 0, 0, $3); } 230 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_K, 0, 0, $3); } 242 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_K, 0, 0, $3); } 254 bpf_set_curr_instr(BPF_JMP | BPF_JGE | BPF_K, 0, 0, $3); } 266 bpf_set_curr_instr(BPF_JMP | BPF_JGT | BPF_K, 0, 0, $3); } 279 bpf_set_curr_instr(BPF_JMP | BPF_JGT | BPF_K, 0, 0, $3); } 290 bpf_set_curr_instr(BPF_JMP | BPF_JGT | BPF_K, 0, 0, $3); } 303 bpf_set_curr_instr(BPF_JMP | BPF_JGE | BPF_K, 0, 0, $3); } 314 bpf_set_curr_instr(BPF_JMP | BPF_JGE | BPF_K, 0, 0, $3); } 327 bpf_set_curr_instr(BPF_JMP | BPF_JSET | BPF_K, 0, 0, $3); } [all …]
|
D | bpf_dbg.c | 223 case BPF_RET | BPF_K: in bpf_disasm() 308 case BPF_JMP_JGT | BPF_K: in bpf_disasm() 316 case BPF_JMP_JGE | BPF_K: in bpf_disasm() 324 case BPF_JMP_JEQ | BPF_K: in bpf_disasm() 332 case BPF_JMP_JSET | BPF_K: in bpf_disasm() 344 case BPF_ALU_LSH | BPF_K: in bpf_disasm() 352 case BPF_ALU_RSH | BPF_K: in bpf_disasm() 360 case BPF_ALU_ADD | BPF_K: in bpf_disasm() 368 case BPF_ALU_SUB | BPF_K: in bpf_disasm() 376 case BPF_ALU_MUL | BPF_K: in bpf_disasm() [all …]
|
/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 381 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 412 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 449 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 487 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 510 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 535 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 571 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_LOG), in TEST() 593 BPF_STMT(BPF_RET|BPF_K, 0x10000000U), in TEST_SIGNAL() 615 BPF_STMT(BPF_RET|BPF_K, 0x90000000U), in TEST_SIGNAL() 636 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL() [all …]
|
D | seccomp_benchmark.c | 126 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in main() 134 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in main()
|
/tools/include/linux/ |
D | filter.h | 54 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \ 62 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \ 100 .code = BPF_ALU64 | BPF_MOV | BPF_K, \ 108 .code = BPF_ALU | BPF_MOV | BPF_K, \ 232 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \ 242 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
|
/tools/testing/selftests/net/ |
D | toeplitz.c | 289 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, PACKET_HOST, 0, 4), in __set_filter() 291 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, proto, 0, 2), in __set_filter() 293 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, cfg_dport, 1, 0), in __set_filter() 294 BPF_STMT(BPF_RET + BPF_K, 0), in __set_filter() 295 BPF_STMT(BPF_RET + BPF_K, 0xFFFF), in __set_filter() 324 BPF_STMT(BPF_RET + BPF_K, 0), in set_filter_null()
|
D | psock_fanout.c | 151 { BPF_JMP | BPF_JGE | BPF_K, 0, 0, 1, DATA_LEN }, in sock_fanout_set_ebpf() 152 { BPF_JMP | BPF_JA | BPF_K, 0, 0, 4, 0 }, in sock_fanout_set_ebpf() 154 { BPF_JMP | BPF_JEQ | BPF_K, 0, 0, 2, DATA_CHAR }, in sock_fanout_set_ebpf() 155 { BPF_JMP | BPF_JEQ | BPF_K, 0, 0, 1, DATA_CHAR_1 }, in sock_fanout_set_ebpf() 156 { BPF_ALU | BPF_MOV | BPF_K, 0, 0, 0, 0 }, in sock_fanout_set_ebpf()
|
D | gro.c | 124 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ntohs(ethhdr_proto), 0, 7), in setup_sock_filter() 126 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, IPPROTO_TCP, 0, 5), in setup_sock_filter() 128 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, DPORT, 2, 0), in setup_sock_filter() 130 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, DPORT, 0, 1), in setup_sock_filter() 131 BPF_STMT(BPF_RET + BPF_K, 0xFFFFFFFF), in setup_sock_filter() 132 BPF_STMT(BPF_RET + BPF_K, 0), in setup_sock_filter()
|
D | reuseport_bpf.c | 106 { BPF_ALU64 | BPF_MOD | BPF_K, BPF_REG_0, 0, 0, mod }, in attach_ebpf() 345 { BPF_ALU64 | BPF_MOV | BPF_K, BPF_REG_0, 0, 0, 10 }, in test_filter_no_reuseport()
|
/tools/include/uapi/linux/ |
D | bpf_common.h | 50 #define BPF_K 0x00 macro
|
/tools/lib/bpf/ |
D | relo_core.c | 945 if (BPF_SRC(insn->code) != BPF_K) in bpf_core_patch_insn()
|
D | libbpf.c | 594 BPF_SRC(insn->code) == BPF_K && in insn_is_subprog_call() 6047 BPF_SRC(insn->code) == BPF_K && in insn_is_helper_call()
|