/external/elfutils/libcpu/ |
D | bpf_disasm.c | 173 case BPF_ALU | BPF_ADD | BPF_K: in bpf_disasm() 176 case BPF_ALU | BPF_SUB | BPF_K: in bpf_disasm() 179 case BPF_ALU | BPF_MUL | BPF_K: in bpf_disasm() 182 case BPF_ALU | BPF_DIV | BPF_K: in bpf_disasm() 185 case BPF_ALU | BPF_OR | BPF_K: in bpf_disasm() 188 case BPF_ALU | BPF_AND | BPF_K: in bpf_disasm() 191 case BPF_ALU | BPF_LSH | BPF_K: in bpf_disasm() 194 case BPF_ALU | BPF_RSH | BPF_K: in bpf_disasm() 197 case BPF_ALU | BPF_MOD | BPF_K: in bpf_disasm() 200 case BPF_ALU | BPF_XOR | BPF_K: in bpf_disasm() [all …]
|
/external/libpcap/ |
D | bpf_filter.c | 115 case BPF_RET|BPF_K: in pcap_filter_with_aux_data() 245 case BPF_JMP|BPF_JGT|BPF_K: in pcap_filter_with_aux_data() 249 case BPF_JMP|BPF_JGE|BPF_K: in pcap_filter_with_aux_data() 253 case BPF_JMP|BPF_JEQ|BPF_K: in pcap_filter_with_aux_data() 257 case BPF_JMP|BPF_JSET|BPF_K: in pcap_filter_with_aux_data() 327 case BPF_ALU|BPF_ADD|BPF_K: in pcap_filter_with_aux_data() 331 case BPF_ALU|BPF_SUB|BPF_K: in pcap_filter_with_aux_data() 335 case BPF_ALU|BPF_MUL|BPF_K: in pcap_filter_with_aux_data() 339 case BPF_ALU|BPF_DIV|BPF_K: in pcap_filter_with_aux_data() 343 case BPF_ALU|BPF_MOD|BPF_K: in pcap_filter_with_aux_data() [all …]
|
D | bpf_image.c | 145 case BPF_RET|BPF_K: in bpf_image() 245 case BPF_JMP|BPF_JGT|BPF_K: in bpf_image() 251 case BPF_JMP|BPF_JGE|BPF_K: in bpf_image() 257 case BPF_JMP|BPF_JEQ|BPF_K: in bpf_image() 263 case BPF_JMP|BPF_JSET|BPF_K: in bpf_image() 339 case BPF_ALU|BPF_ADD|BPF_K: in bpf_image() 345 case BPF_ALU|BPF_SUB|BPF_K: in bpf_image() 351 case BPF_ALU|BPF_MUL|BPF_K: in bpf_image() 357 case BPF_ALU|BPF_DIV|BPF_K: in bpf_image() 363 case BPF_ALU|BPF_MOD|BPF_K: in bpf_image() [all …]
|
/external/seccomp-tests/linux/ |
D | seccomp_bpf.c | 158 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 189 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 226 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 264 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 287 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 312 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 348 BPF_STMT(BPF_RET|BPF_K, 0x10000000U), in TEST_SIGNAL() 370 BPF_STMT(BPF_RET|BPF_K, 0x90000000U), in TEST_SIGNAL() 391 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL() 411 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL() [all …]
|
/external/minijail/ |
D | syscall_filter_unittest_macros.h | 74 BPF_RET+BPF_K, SECCOMP_RET_KILL); \ 81 BPF_RET+BPF_K, SECCOMP_RET_TRAP); \ 88 BPF_RET+BPF_K, SECCOMP_RET_LOG); \ 96 BPF_RET+BPF_K, SECCOMP_RET_ALLOW); \ 103 EXPECT_EQ_BLOCK(&(_filter)[1], BPF_JMP + BPF_JEQ + BPF_K, \ 105 EXPECT_EQ_STMT(&(_filter)[2], BPF_RET + BPF_K, \ 112 BPF_JMP+BPF_JEQ+BPF_K, (_nr), NEXT, SKIP); \ 114 BPF_RET+BPF_K, SECCOMP_RET_ALLOW); \ 120 BPF_JMP+BPF_JEQ+BPF_K, (_nr), NEXT, SKIP); \
|
D | bpf.h | 171 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_KILL) 174 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_KILL_PROCESS) 177 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_TRAP) 180 set_bpf_stmt((_block), BPF_RET+BPF_K, \ 184 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_LOG) 187 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_ALLOW)
|
D | bpf.c | 19 set_bpf_jump(curr_block++, BPF_JMP + BPF_JEQ + BPF_K, MINIJAIL_ARCH_NR, in bpf_validate_arch() 29 set_bpf_jump(curr_block++, BPF_JMP + BPF_JEQ + BPF_K, nr, NEXT, SKIP); in bpf_allow_syscall() 30 set_bpf_stmt(curr_block++, BPF_RET + BPF_K, SECCOMP_RET_ALLOW); 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()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_nl80211_monitor.c | 189 BPF_STMT(BPF_ALU | BPF_LSH | BPF_K, 8), 202 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0xF), 204 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0, PASS, 0), 217 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x0F03), 220 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0x0801, PASS, 0), 229 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x0c), 231 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 8, 0, FAIL), 236 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x03), 238 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 3, PASS, 0), 246 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x80), [all …]
|
/external/linux-kselftest/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 383 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 414 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 451 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 489 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 512 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 537 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST() 573 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_LOG), in TEST() 595 BPF_STMT(BPF_RET|BPF_K, 0x10000000U), in TEST_SIGNAL() 617 BPF_STMT(BPF_RET|BPF_K, 0x90000000U), in TEST_SIGNAL() 638 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL() [all …]
|
/external/strace/tests-m32/ |
D | sock_filter-v.c | 68 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), 73 BPF_STMT(BPF_RET|BPF_K, -1U), 74 BPF_STMT(BPF_RET|BPF_K, 0) 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() 111 XLAT_ARGS(BPF_RET), XLAT_ARGS(BPF_K), in print_filter() 115 XLAT_ARGS(BPF_RET), XLAT_ARGS(BPF_K), in print_filter()
|
D | prctl-seccomp-filter-v.c | 55 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \ 56 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW) 59 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \ 60 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err))) 63 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
|
D | seccomp-filter-v.c | 55 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \ 56 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW) 59 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \ 60 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err))) 63 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
|
/external/strace/tests-mx32/ |
D | sock_filter-v.c | 68 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), 73 BPF_STMT(BPF_RET|BPF_K, -1U), 74 BPF_STMT(BPF_RET|BPF_K, 0) 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() 111 XLAT_ARGS(BPF_RET), XLAT_ARGS(BPF_K), in print_filter() 115 XLAT_ARGS(BPF_RET), XLAT_ARGS(BPF_K), in print_filter()
|
D | prctl-seccomp-filter-v.c | 55 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \ 56 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW) 59 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \ 60 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err))) 63 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
|
D | seccomp-filter-v.c | 55 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \ 56 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW) 59 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \ 60 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err))) 63 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
|
/external/strace/tests/ |
D | sock_filter-v.c | 68 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), 73 BPF_STMT(BPF_RET|BPF_K, -1U), 74 BPF_STMT(BPF_RET|BPF_K, 0) 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() 111 XLAT_ARGS(BPF_RET), XLAT_ARGS(BPF_K), in print_filter() 115 XLAT_ARGS(BPF_RET), XLAT_ARGS(BPF_K), in print_filter()
|
D | prctl-seccomp-filter-v.c | 55 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \ 56 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW) 59 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \ 60 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err))) 63 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
|
D | seccomp-filter-v.c | 55 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \ 56 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW) 59 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \ 60 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err))) 63 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
|
/external/strace/xlat/ |
D | bpf_src.h | 6 #if defined(BPF_K) || (defined(HAVE_DECL_BPF_K) && HAVE_DECL_BPF_K) 8 static_assert((BPF_K) == (0x00), "BPF_K != 0x00"); 11 # define BPF_K 0x00 31 XLAT(BPF_K),
|
D | bpf_rval.h | 6 #if defined(BPF_K) || (defined(HAVE_DECL_BPF_K) && HAVE_DECL_BPF_K) 8 static_assert((BPF_K) == (0x00), "BPF_K != 0x00"); 11 # define BPF_K 0x00 38 XLAT(BPF_K),
|
/external/bpftool/include/linux/ |
D | filter.h | 10 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \ 18 .code = BPF_ALU64 | BPF_MOV | BPF_K, \ 34 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \ 42 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
|
/external/libbpf/include/linux/ |
D | filter.h | 18 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \ 26 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \ 34 .code = BPF_ALU64 | BPF_MOV | BPF_K, \ 90 .code = BPF_ALU | BPF_MOV | BPF_K, \ 120 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \ 128 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
D | read_binary_name_regtest.c | 36 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, __NR_readlink, 0, 1), in main() 38 BPF_STMT(BPF_RET + BPF_K, SECCOMP_RET_ERRNO | EPERM), in main() 40 BPF_STMT(BPF_RET + BPF_K, SECCOMP_RET_ALLOW) in main()
|
/external/iproute2/include/ |
D | bpf_util.h | 90 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \ 98 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \ 126 .code = BPF_ALU64 | BPF_MOV | BPF_K, \ 134 .code = BPF_ALU | BPF_MOV | BPF_K, \ 221 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \
|
/external/libnetfilter_conntrack/src/conntrack/ |
D | bsf.c | 40 case BPF_JMP|BPF_JEQ|BPF_K: 43 case BPF_ALU|BPF_AND|BPF_K: 49 case BPF_RET|BPF_K: 52 case BPF_ALU|BPF_ADD|BPF_K: 168 .code = BPF_JMP|BPF_JEQ|BPF_K, in nfct_bsf_cmp_k_stack() 187 .code = BPF_JMP|BPF_JEQ|BPF_K, in nfct_bsf_cmp_k_stack_jf() 204 .code = BPF_ALU|BPF_AND|BPF_K, in nfct_bsf_alu_and() 216 .code = BPF_ALU|BPF_ADD|BPF_K, in nfct_bsf_add_attr_data_offset() 273 .code = BPF_RET|BPF_K, in nfct_bsf_ret_verdict() 308 .code = BPF_JMP|BPF_JEQ|BPF_K, in bsf_cmp_subsys() [all …]
|