Home
last modified time | relevance | path

Searched refs:BPF_JMP (Results 1 – 25 of 98) sorted by relevance

1234

/external/elfutils/libcpu/
Dbpf_disasm.c49 [BPF_JMP] = "jmp",
155 case BPF_JMP | BPF_EXIT: in bpf_disasm()
158 case BPF_JMP | BPF_JA: in bpf_disasm()
161 case BPF_JMP | BPF_CALL: in bpf_disasm()
328 case BPF_JMP | BPF_JEQ | BPF_K: in bpf_disasm()
331 case BPF_JMP | BPF_JGT | BPF_K: in bpf_disasm()
334 case BPF_JMP | BPF_JGE | BPF_K: in bpf_disasm()
337 case BPF_JMP | BPF_JSET | BPF_K: in bpf_disasm()
340 case BPF_JMP | BPF_JNE | BPF_K: in bpf_disasm()
343 case BPF_JMP | BPF_JSGT | BPF_K: in bpf_disasm()
[all …]
/external/minijail/
Dsyscall_filter_unittest_macros.h38 EXPECT_TRUE((_block)->code == (BPF_JMP+BPF_JA)); \
45 EXPECT_TRUE((_block)->code == (BPF_JMP+BPF_JA)); \
53 EXPECT_EQ((_block)->code, BPF_JMP+BPF_JA); \
91 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); \
108 BPF_JMP+BPF_JA, (_id), (_jt), (_jf)); \
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()
97 set_bpf_jump(filter, BPF_JMP + BPF_JGT + BPF_K, lo, jt, jf); in bpf_comp_jgt32()
105 set_bpf_jump(filter, BPF_JMP + BPF_JGE + BPF_K, lo, jt, jf); in bpf_comp_jge32()
169 set_bpf_jump(filter, BPF_JMP + BPF_JSET + BPF_K, mask_lo, jt, jf); in bpf_comp_jset32()
310 if (instr->code != (BPF_JMP + BPF_JA)) in bpf_resolve_jumps()
/external/libpcap/
Dbpf_image.c147 case BPF_JMP|BPF_JA: in bpf_image()
153 case BPF_JMP|BPF_JGT|BPF_K: in bpf_image()
159 case BPF_JMP|BPF_JGE|BPF_K: in bpf_image()
165 case BPF_JMP|BPF_JEQ|BPF_K: in bpf_image()
171 case BPF_JMP|BPF_JSET|BPF_K: in bpf_image()
177 case BPF_JMP|BPF_JGT|BPF_X: in bpf_image()
182 case BPF_JMP|BPF_JGE|BPF_X: in bpf_image()
187 case BPF_JMP|BPF_JEQ|BPF_X: in bpf_image()
192 case BPF_JMP|BPF_JSET|BPF_X: in bpf_image()
322 if (BPF_CLASS(p->code) == BPF_JMP && BPF_OP(p->code) != BPF_JA) { in bpf_image()
Dbpf_filter.c254 case BPF_JMP|BPF_JA: in bpf_filter_with_aux_data()
262 case BPF_JMP|BPF_JGT|BPF_K: in bpf_filter_with_aux_data()
266 case BPF_JMP|BPF_JGE|BPF_K: in bpf_filter_with_aux_data()
270 case BPF_JMP|BPF_JEQ|BPF_K: in bpf_filter_with_aux_data()
274 case BPF_JMP|BPF_JSET|BPF_K: in bpf_filter_with_aux_data()
278 case BPF_JMP|BPF_JGT|BPF_X: in bpf_filter_with_aux_data()
282 case BPF_JMP|BPF_JGE|BPF_X: in bpf_filter_with_aux_data()
286 case BPF_JMP|BPF_JEQ|BPF_X: in bpf_filter_with_aux_data()
290 case BPF_JMP|BPF_JSET|BPF_X: in bpf_filter_with_aux_data()
486 case BPF_JMP: in bpf_validate()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_verifier.c123 insn[i++] = BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in bpf_fill_ld_abs_vlan_push_pop()
134 insn[i++] = BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, in bpf_fill_ld_abs_vlan_push_pop()
849 BPF_RAW_INSN(BPF_JMP | BPF_CALL | BPF_X, 0, 0, 0, 0),
858 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 1, 0),
867 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, 1234567),
879 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0,
922 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0,
924 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0,
936 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0,
939 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0,
[all …]
/external/strace/xlat/
Debpf_class.h41 #if defined(BPF_JMP) || (defined(HAVE_DECL_BPF_JMP) && HAVE_DECL_BPF_JMP)
43 static_assert((BPF_JMP) == (0x5), "BPF_JMP != 0x5");
46 # define BPF_JMP 0x5
71 [BPF_JMP] = XLAT(BPF_JMP),
Dbpf_class.h41 #if defined(BPF_JMP) || (defined(HAVE_DECL_BPF_JMP) && HAVE_DECL_BPF_JMP)
43 static_assert((BPF_JMP) == (0x5), "BPF_JMP != 0x5");
46 # define BPF_JMP 0x5
78 [BPF_JMP] = XLAT(BPF_JMP),
/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/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),
289 if (BPF_CLASS(insn->code) == BPF_JMP) { in add_monitor_filter()
290 if (insn->code == (BPF_JMP|BPF_JA)) { in add_monitor_filter()
/external/minijail/tools/
Dbpf.py35 BPF_JMP = 0x05 variable
102 elif ins.code == BPF_JMP | BPF_JA | BPF_K:
104 elif ins.code == BPF_JMP | BPF_JEQ | BPF_K:
109 elif ins.code == BPF_JMP | BPF_JGT | BPF_K:
114 elif ins.code == BPF_JMP | BPF_JGE | BPF_K:
119 elif ins.code == BPF_JMP | BPF_JSET | BPF_K:
613 SockFilter(BPF_JMP | op | BPF_K, jt_distance, jf_distance,
618 SockFilter(BPF_JMP | op | BPF_K, jt_distance + 1, 0, value),
619 SockFilter(BPF_JMP | BPF_JA, 0, 0, jf_distance),
623 SockFilter(BPF_JMP | op | BPF_K, 0, jf_distance + 1, value),
[all …]
/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/strace/tests-m32/
Dsock_filter-v.c68 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, IPPROTO_UDP, 0, 5),
70 BPF_JUMP(BPF_JMP|BPF_K|BPF_JGE, 100, 0, 3),
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()
101 XLAT_ARGS(BPF_JMP), XLAT_ARGS(BPF_K), XLAT_ARGS(BPF_JGE)); in print_filter()
108 XLAT_ARGS(BPF_JMP), XLAT_ARGS(BPF_K), XLAT_ARGS(BPF_JEQ)); in print_filter()
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), \
161 case BPF_JMP: in main()
/external/strace/tests-mx32/
Dsock_filter-v.c68 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, IPPROTO_UDP, 0, 5),
70 BPF_JUMP(BPF_JMP|BPF_K|BPF_JGE, 100, 0, 3),
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()
101 XLAT_ARGS(BPF_JMP), XLAT_ARGS(BPF_K), XLAT_ARGS(BPF_JGE)); in print_filter()
108 XLAT_ARGS(BPF_JMP), XLAT_ARGS(BPF_K), XLAT_ARGS(BPF_JEQ)); in print_filter()
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), \
161 case BPF_JMP: in main()
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), \
/external/strace/tests/
Dsock_filter-v.c68 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, IPPROTO_UDP, 0, 5),
70 BPF_JUMP(BPF_JMP|BPF_K|BPF_JGE, 100, 0, 3),
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()
101 XLAT_ARGS(BPF_JMP), XLAT_ARGS(BPF_K), XLAT_ARGS(BPF_JGE)); in print_filter()
108 XLAT_ARGS(BPF_JMP), XLAT_ARGS(BPF_K), XLAT_ARGS(BPF_JEQ)); in print_filter()
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), \
161 case BPF_JMP: in main()
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), \
/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/linux-kselftest/tools/testing/selftests/net/
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()
158 { BPF_JMP | BPF_EXIT, 0, 0, 0, 0 } in sock_fanout_set_ebpf()

1234