Home
last modified time | relevance | path

Searched refs:BPF_K (Results 1 – 14 of 14) sorted by relevance

/tools/bpf/
Dbpf_exp.y219 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 …]
Dbpf_dbg.c223 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/
Dseccomp_bpf.c392 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
425 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
462 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
500 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
523 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
548 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
584 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_LOG), in TEST()
606 BPF_STMT(BPF_RET|BPF_K, 0x10000000U), in TEST_SIGNAL()
628 BPF_STMT(BPF_RET|BPF_K, 0x90000000U), in TEST_SIGNAL()
649 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL()
[all …]
Dseccomp_benchmark.c126 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/
Dfilter.h54 .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/perf/bench/
Dsched-seccomp-notify.c54 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, nr, 0, 1), in user_notif_syscall()
55 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_USER_NOTIF), in user_notif_syscall()
56 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in user_notif_syscall()
/tools/testing/selftests/net/
Dtoeplitz.c291 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, PACKET_HOST, 0, 4), in __set_filter()
293 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, proto, 0, 2), in __set_filter()
295 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, cfg_dport, 1, 0), in __set_filter()
296 BPF_STMT(BPF_RET + BPF_K, 0), in __set_filter()
297 BPF_STMT(BPF_RET + BPF_K, 0xFFFF), in __set_filter()
326 BPF_STMT(BPF_RET + BPF_K, 0), in set_filter_null()
Dpsock_fanout.c152 { BPF_JMP | BPF_JGE | BPF_K, 0, 0, 1, DATA_LEN }, in sock_fanout_set_ebpf()
153 { BPF_JMP | BPF_JA | BPF_K, 0, 0, 4, 0 }, in sock_fanout_set_ebpf()
155 { BPF_JMP | BPF_JEQ | BPF_K, 0, 0, 2, DATA_CHAR }, in sock_fanout_set_ebpf()
156 { BPF_JMP | BPF_JEQ | BPF_K, 0, 0, 1, DATA_CHAR_1 }, in sock_fanout_set_ebpf()
157 { BPF_ALU | BPF_MOV | BPF_K, 0, 0, 0, 0 }, in sock_fanout_set_ebpf()
Dcsum.c499 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, PACKET_HOST, 0, 4), in __recv_prepare_packet_filter()
501 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, cfg_encap ? IPPROTO_UDP : cfg_proto, 0, 2), in __recv_prepare_packet_filter()
503 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, cfg_port_dst, 1, 0), in __recv_prepare_packet_filter()
504 BPF_STMT(BPF_RET + BPF_K, 0), in __recv_prepare_packet_filter()
505 BPF_STMT(BPF_RET + BPF_K, 0xFFFF), in __recv_prepare_packet_filter()
Dgro.c125 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ntohs(ethhdr_proto), 0, 7), in setup_sock_filter()
127 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, IPPROTO_TCP, 0, 5), in setup_sock_filter()
129 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, DPORT, 2, 0), in setup_sock_filter()
131 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, DPORT, 0, 1), in setup_sock_filter()
132 BPF_STMT(BPF_RET + BPF_K, 0xFFFFFFFF), in setup_sock_filter()
133 BPF_STMT(BPF_RET + BPF_K, 0), in setup_sock_filter()
Dreuseport_bpf.c104 { BPF_ALU64 | BPF_MOD | BPF_K, BPF_REG_0, 0, 0, mod }, in attach_ebpf()
343 { BPF_ALU64 | BPF_MOV | BPF_K, BPF_REG_0, 0, 0, 10 }, in test_filter_no_reuseport()
/tools/include/uapi/linux/
Dbpf_common.h50 #define BPF_K 0x00 macro
/tools/lib/bpf/
Drelo_core.c1050 if (BPF_SRC(insn->code) != BPF_K) in bpf_core_patch_insn()
Dlibbpf.c731 BPF_SRC(insn->code) == BPF_K && in insn_is_subprog_call()
6776 BPF_SRC(insn->code) == BPF_K && in insn_is_helper_call()