Home
last modified time | relevance | path

Searched refs:BPF_JUMP (Results 1 – 4 of 4) sorted by relevance

/tools/include/uapi/linux/
Dfilter.h51 #ifndef BPF_JUMP
52 #define BPF_JUMP(code, k, jt, jf) { (unsigned short)(code), jt, jf, k } macro
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c656 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL()
684 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_times, 1, 0), in TEST_SIGNAL()
688 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, in TEST_SIGNAL()
724 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, sysno, 1, 0), in TEST_SIGNAL()
728 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, 0x0C0FFEE, 0, 1), in TEST_SIGNAL()
797 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_prctl, 0, 1), in kill_thread_or_group()
809 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_prctl, 0, 1), in kill_thread_or_group()
935 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), \
1042 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in FIXTURE_SETUP()
1161 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 1, 0), in FIXTURE_SETUP()
[all …]
/tools/testing/selftests/net/
Dtoeplitz.c289 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()
Dgro.c124 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()