Home
last modified time | relevance | path

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

/linux-6.12.1/samples/seccomp/
Dbpf-helper.h50 BPF_JUMP(BPF_JMP+BPF_JA, FIND_LABEL((labels), (label)), \
53 BPF_JUMP(BPF_JMP+BPF_JA, FIND_LABEL((labels), (label)), \
56 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (nr), 0, 1), \
150 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (value), 0, 1), \
154 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (value), 1, 0), \
158 BPF_JUMP(BPF_JMP+BPF_JSET+BPF_K, (value), 0, 1), \
162 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, (value), 0, 1), \
166 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, (value), 0, 1), \
170 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, (value), 1, 0), \
174 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, (value), 1, 0), \
[all …]
Dbpf-direct.c117 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_rt_sigreturn, 0, 1), in install_filter()
120 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_sigreturn, 0, 1), in install_filter()
123 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_exit_group, 0, 1), in install_filter()
125 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_exit, 0, 1), in install_filter()
127 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_read, 1, 0), in install_filter()
128 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_write, 3, 2), in install_filter()
132 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, STDIN_FILENO, 4, 0), in install_filter()
137 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, STDOUT_FILENO, 1, 0), in install_filter()
139 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, STDERR_FILENO, 1, 2), in install_filter()
Ddropper.c33 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, arch, 0, 3), in install_filter()
36 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, nr, 0, 1), in install_filter()
Duser-trap.c95 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, nr, 0, 1), in user_trap_syscall()
/linux-6.12.1/tools/include/uapi/linux/
Dfilter.h51 #ifndef BPF_JUMP
52 #define BPF_JUMP(code, k, jt, jf) { (unsigned short)(code), jt, jf, k } macro
/linux-6.12.1/include/uapi/linux/
Dfilter.h51 #ifndef BPF_JUMP
52 #define BPF_JUMP(code, k, jt, jf) { (unsigned short)(code), jt, jf, k } macro
/linux-6.12.1/tools/testing/selftests/seccomp/
Dseccomp_bpf.c671 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL()
699 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_times, 1, 0), in TEST_SIGNAL()
703 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, in TEST_SIGNAL()
739 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, sysno, 1, 0), in TEST_SIGNAL()
743 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, 0x0C0FFEE, 0, 1), in TEST_SIGNAL()
812 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in kill_thread_or_group()
824 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in kill_thread_or_group()
950 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), \
1057 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in FIXTURE_SETUP()
1176 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 1, 0), in FIXTURE_SETUP()
[all …]
/linux-6.12.1/lib/
Dtest_bpf.c3154 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0, 1, 0),
3242 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, SKB_TYPE, 1, 0),
3246 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, SKB_TYPE, 1, 0),
3250 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, SKB_TYPE, 1, 0),
3295 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 20, 1, 0),
3301 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 30, 1, 0),
3498 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_X, 0, 0, 1),
3511 BPF_JUMP(BPF_JMP | BPF_JGT | BPF_X, 0, 0, 1),
3524 BPF_JUMP(BPF_JMP | BPF_JGE | BPF_X, 0, 0, 1),
3537 BPF_JUMP(BPF_JMP | BPF_JGE | BPF_X, 0, 0, 1),
[all …]
/linux-6.12.1/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()
Dgro.c149 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ntohs(ethhdr_proto), 0, 9), in setup_sock_filter()
151 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, IPPROTO_TCP, 2, 0), in setup_sock_filter()
153 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, IPPROTO_TCP, 0, 5), in setup_sock_filter()
155 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, DPORT, 2, 0), in setup_sock_filter()
157 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, DPORT, 0, 1), in setup_sock_filter()
/linux-6.12.1/tools/perf/bench/
Dsched-seccomp-notify.c54 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, nr, 0, 1), in user_notif_syscall()
/linux-6.12.1/Documentation/networking/
Dcdc_mbim.rst252 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, 1, 0, 6), /* true */
256 BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 256, 0, 4), /* 256 is first DSS VLAN */
257 BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 512, 3, 0), /* 511 is last DSS VLAN */
261 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, ETH_P_802_3, 0, 1),
/linux-6.12.1/tools/testing/selftests/net/lib/
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()
/linux-6.12.1/include/linux/
Dfilter.h508 ((struct sock_filter) BPF_JUMP(CODE, K, JT, JF))