Home
last modified time | relevance | path

Searched refs:BPF_JEQ (Results 1 – 25 of 79) sorted by relevance

1234

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_verifier.c155 insn[i] = BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 10, len - i - 2); in bpf_fill_jump_around_ld_abs()
579 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 1),
594 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 1),
608 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 1),
792 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, -3),
1130 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 1),
1148 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 2),
1165 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 1),
1167 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 1, 1),
1169 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 2, 1),
[all …]
/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
Dresumption.c96 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_sigreturn, 3, 0), in FIXTURE_SETUP()
98 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_exit, 2, 0), in FIXTURE_SETUP()
99 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_rt_sigreturn, 1, 0), in FIXTURE_SETUP()
101 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_write, 0, 1), in FIXTURE_SETUP()
107 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ((__u32*)&thunk_addr)[0], 0, 3), in FIXTURE_SETUP()
110 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ((__u32*)&thunk_addr)[1], 0, 1), in FIXTURE_SETUP()
Dsigsegv.c72 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_sigreturn, 4, 0), in FIXTURE_SETUP()
75 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_mprotect, 3, 0), in FIXTURE_SETUP()
76 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_exit, 2, 0), in FIXTURE_SETUP()
77 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_rt_sigreturn, 1, 0), in FIXTURE_SETUP()
79 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_write, 0, 1), in FIXTURE_SETUP()
Dseccomp_bpf_tests.c257 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL()
281 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 1, 0), in TEST_SIGNAL()
285 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, 0x0C0FFEE, 0, 1), in TEST_SIGNAL()
311 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 1, 0), in TEST_SIGNAL()
315 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, 0x0C0FFEE, 0, 1), in TEST_SIGNAL()
360 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_read, 0, 1), in TEST()
384 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_read, 0, 1), in TEST()
412 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 0, 1), in FIXTURE_SETUP()
520 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 1, 0), in FIXTURE_SETUP()
527 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 1, 0), in FIXTURE_SETUP()
[all …]
/external/strace/xlat/
Dbpf_op_jmp.h13 #if defined(BPF_JEQ) || (defined(HAVE_DECL_BPF_JEQ) && HAVE_DECL_BPF_JEQ)
15 static_assert((BPF_JEQ) == (0x10), "BPF_JEQ != 0x10");
18 # define BPF_JEQ 0x10
116 XLAT(BPF_JEQ),
Dbpf_op_jmp.in2 BPF_JEQ 0x10
/external/openssh/
Dsandbox-seccomp-filter.c88 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (_nr), 0, 1), \
91 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (_nr), 0, 1), \
94 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (_nr), 0, 6), \
98 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, \
103 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, \
115 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, SECCOMP_AUDIT_ARCH, 1, 0),
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_monitor.c201 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0, PASS, 0),
217 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0x0801, PASS, 0),
228 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 8, 0, FAIL),
235 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 3, PASS, 0),
258 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_X, 0, PASS, 0),
264 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0xAAAA0300, 0, FAIL),
266 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0x0000888E, PASS, FAIL),
/external/linux-kselftest/tools/testing/selftests/seccomp/
Dseccomp_bpf.c512 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL()
540 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_times, 1, 0), in TEST_SIGNAL()
544 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, in TEST_SIGNAL()
580 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, sysno, 1, 0), in TEST_SIGNAL()
584 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, 0x0C0FFEE, 0, 1), in TEST_SIGNAL()
646 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_prctl, 0, 1), in kill_thread_or_group()
657 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_prctl, 0, 1), in kill_thread_or_group()
762 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), \
869 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in FIXTURE_SETUP()
988 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 1, 0), in FIXTURE_SETUP()
[all …]
/external/seccomp-tests/linux/
Dseccomp_bpf.c411 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL()
439 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_times, 1, 0), in TEST_SIGNAL()
443 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, in TEST_SIGNAL()
479 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, sysno, 1, 0), in TEST_SIGNAL()
483 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, 0x0C0FFEE, 0, 1), in TEST_SIGNAL()
549 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), in TEST()
576 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), in TEST()
603 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), in TEST()
634 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in FIXTURE_SETUP()
752 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 1, 0), in FIXTURE_SETUP()
[all …]
/external/minijail/
Dsyscall_filter_unittest_macros.h91 BPF_JMP+BPF_JEQ+BPF_K, ARCH_NR, SKIP, NEXT); \
98 BPF_JMP+BPF_JEQ+BPF_K, (_nr), NEXT, SKIP); \
106 BPF_JMP+BPF_JEQ+BPF_K, (_nr), NEXT, SKIP); \
Dbpf.c19 set_bpf_jump(curr_block++, BPF_JMP + BPF_JEQ + BPF_K, ARCH_NR, SKIP, in bpf_validate_arch()
29 set_bpf_jump(curr_block++, BPF_JMP + BPF_JEQ + BPF_K, nr, NEXT, SKIP); in bpf_allow_syscall()
38 set_bpf_jump(curr_block++, BPF_JMP + BPF_JEQ + BPF_K, nr, NEXT, SKIP); in bpf_allow_syscall_args()
67 set_bpf_jump(filter, BPF_JMP + BPF_JEQ + BPF_K, lo, jt, jf); in bpf_comp_jeq32()
/external/strace/tests-m32/
Dsock_filter-v.c68 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, IPPROTO_UDP, 0, 5),
72 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, 'a', 0, 1),
94 XLAT_ARGS(BPF_JMP), XLAT_ARGS(BPF_K), XLAT_ARGS(BPF_JEQ)); in print_filter()
108 XLAT_ARGS(BPF_JMP), XLAT_ARGS(BPF_K), XLAT_ARGS(BPF_JEQ)); in print_filter()
Dprctl-seccomp-filter-v.c55 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
59 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
Dseccomp-filter-v.c55 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
59 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
/external/strace/tests-mx32/
Dsock_filter-v.c68 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, IPPROTO_UDP, 0, 5),
72 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, 'a', 0, 1),
94 XLAT_ARGS(BPF_JMP), XLAT_ARGS(BPF_K), XLAT_ARGS(BPF_JEQ)); in print_filter()
108 XLAT_ARGS(BPF_JMP), XLAT_ARGS(BPF_K), XLAT_ARGS(BPF_JEQ)); in print_filter()
Dprctl-seccomp-filter-v.c55 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
59 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
Dseccomp-filter-v.c55 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
59 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
/external/strace/tests/
Dsock_filter-v.c68 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, IPPROTO_UDP, 0, 5),
72 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, 'a', 0, 1),
94 XLAT_ARGS(BPF_JMP), XLAT_ARGS(BPF_K), XLAT_ARGS(BPF_JEQ)); in print_filter()
108 XLAT_ARGS(BPF_JMP), XLAT_ARGS(BPF_K), XLAT_ARGS(BPF_JEQ)); in print_filter()
Dprctl-seccomp-filter-v.c55 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
59 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
Dseccomp-filter-v.c55 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
59 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
/external/minijail/tools/
Dbpf.py54 BPF_JEQ = 0x10 variable
104 elif ins.code == BPF_JMP | BPF_JEQ | BPF_K:
265 def __init__(self, syscall_number, jt, jf, *, op=BPF_JEQ):
321 op = BPF_JEQ
323 op = BPF_JEQ
558 arg_offset(block.arg_index, True), BPF_JEQ, hi, lo_block,
578 assert block.op == BPF_JEQ, block.op
646 SockFilter(BPF_JMP | BPF_JEQ | BPF_K,
/external/android-clat/
Dclatd.c92 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[0]), 0, 7), in configure_packet_socket()
94 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[1]), 0, 5), in configure_packet_socket()
96 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[2]), 0, 3), in configure_packet_socket()
98 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[3]), 0, 1), in configure_packet_socket()
/external/libpcap/
Dgencode.c934 return gen_ncmp(cstate, offrel, offset, size, 0xffffffff, BPF_JEQ, 0, v); in gen_cmp()
969 return gen_ncmp(cstate, offrel, offset, size, mask, BPF_JEQ, 0, v); in gen_mcmp()
1811 b = new_block(cstate, JMP(BPF_JEQ)); in gen_uncond()
2280 sjeq_avs_cookie = new_stmt(cstate, JMP(BPF_JEQ)); in gen_load_prism_llprefixlen()
2866 b = new_block(cstate, JMP(BPF_JEQ)); in gen_ppi_dlt_check()
3131 b0 = gen_atmfield_code(cstate, A_PROTOTYPE, PT_LLC, BPF_JEQ, 0); in gen_linktype()
5864 s[i] = new_stmt(cstate, BPF_JMP|BPF_JEQ|BPF_K); in gen_protochain()
5875 s[i] = new_stmt(cstate, BPF_JMP|BPF_JEQ|BPF_K); in gen_protochain()
5888 s[i] = new_stmt(cstate, BPF_JMP|BPF_JEQ|BPF_K); in gen_protochain()
5895 s[i - 1]->s.jf = s[i] = new_stmt(cstate, BPF_JMP|BPF_JEQ|BPF_K); in gen_protochain()
[all …]
Dbpf_filter.c270 case BPF_JMP|BPF_JEQ|BPF_K: in bpf_filter_with_aux_data()
286 case BPF_JMP|BPF_JEQ|BPF_X: in bpf_filter_with_aux_data()
519 case BPF_JEQ: in bpf_validate()

1234