Home
last modified time | relevance | path

Searched refs:BPF_LD (Results 1 – 25 of 102) sorted by relevance

12345

/external/strace/tests-m32/
Dsock_filter-v.c65 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_LL_OFF+4),
66 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_NET_OFF+8),
67 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_AD_OFF+SKF_AD_PROTOCOL),
69 BPF_STMT(BPF_LD|BPF_W|BPF_LEN, 0),
71 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, 42),
82 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_B), XLAT_ARGS(BPF_ABS), in print_filter()
86 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_B), XLAT_ARGS(BPF_ABS), in print_filter()
90 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_B), XLAT_ARGS(BPF_ABS), in print_filter()
97 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_W), XLAT_ARGS(BPF_LEN), in print_filter()
104 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_B), XLAT_ARGS(BPF_ABS), in print_filter()
Dseccomp-filter-v.c77 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
146 case BPF_LD: in main()
/external/strace/tests-mx32/
Dsock_filter-v.c65 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_LL_OFF+4),
66 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_NET_OFF+8),
67 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_AD_OFF+SKF_AD_PROTOCOL),
69 BPF_STMT(BPF_LD|BPF_W|BPF_LEN, 0),
71 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, 42),
82 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_B), XLAT_ARGS(BPF_ABS), in print_filter()
86 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_B), XLAT_ARGS(BPF_ABS), in print_filter()
90 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_B), XLAT_ARGS(BPF_ABS), in print_filter()
97 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_W), XLAT_ARGS(BPF_LEN), in print_filter()
104 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_B), XLAT_ARGS(BPF_ABS), in print_filter()
Dseccomp-filter-v.c77 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
146 case BPF_LD: in main()
/external/strace/tests/
Dsock_filter-v.c65 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_LL_OFF+4),
66 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_NET_OFF+8),
67 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_AD_OFF+SKF_AD_PROTOCOL),
69 BPF_STMT(BPF_LD|BPF_W|BPF_LEN, 0),
71 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, 42),
82 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_B), XLAT_ARGS(BPF_ABS), in print_filter()
86 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_B), XLAT_ARGS(BPF_ABS), in print_filter()
90 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_B), XLAT_ARGS(BPF_ABS), in print_filter()
97 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_W), XLAT_ARGS(BPF_LEN), in print_filter()
104 XLAT_ARGS(BPF_LD), XLAT_ARGS(BPF_B), XLAT_ARGS(BPF_ABS), in print_filter()
Dseccomp-filter-v.c77 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
146 case BPF_LD: in main()
/external/strace/xlat/
Debpf_class.h6 #if defined(BPF_LD) || (defined(HAVE_DECL_BPF_LD) && HAVE_DECL_BPF_LD)
8 static_assert((BPF_LD) == (0x0), "BPF_LD != 0x0");
11 # define BPF_LD 0x0
66 [BPF_LD] = XLAT(BPF_LD),
Dbpf_class.h6 #if defined(BPF_LD) || (defined(HAVE_DECL_BPF_LD) && HAVE_DECL_BPF_LD)
8 static_assert((BPF_LD) == (0x0), "BPF_LD != 0x0");
11 # define BPF_LD 0x0
73 [BPF_LD] = XLAT(BPF_LD),
Debpf_class.in2 BPF_LD 0x0
/external/libpcap/
Dbpf_image.c64 case BPF_LD|BPF_W|BPF_ABS: in bpf_image()
70 case BPF_LD|BPF_H|BPF_ABS: in bpf_image()
76 case BPF_LD|BPF_B|BPF_ABS: in bpf_image()
82 case BPF_LD|BPF_W|BPF_LEN: in bpf_image()
87 case BPF_LD|BPF_W|BPF_IND: in bpf_image()
93 case BPF_LD|BPF_H|BPF_IND: in bpf_image()
99 case BPF_LD|BPF_B|BPF_IND: in bpf_image()
105 case BPF_LD|BPF_IMM: in bpf_image()
123 case BPF_LD|BPF_MEM: in bpf_image()
Dbpf_filter.c146 case BPF_LD|BPF_W|BPF_ABS: in bpf_filter_with_aux_data()
154 case BPF_LD|BPF_H|BPF_ABS: in bpf_filter_with_aux_data()
162 case BPF_LD|BPF_B|BPF_ABS: in bpf_filter_with_aux_data()
188 case BPF_LD|BPF_W|BPF_LEN: in bpf_filter_with_aux_data()
196 case BPF_LD|BPF_W|BPF_IND: in bpf_filter_with_aux_data()
205 case BPF_LD|BPF_H|BPF_IND: in bpf_filter_with_aux_data()
214 case BPF_LD|BPF_B|BPF_IND: in bpf_filter_with_aux_data()
230 case BPF_LD|BPF_IMM: in bpf_filter_with_aux_data()
238 case BPF_LD|BPF_MEM: in bpf_filter_with_aux_data()
432 case BPF_LD: in bpf_validate()
Doptimize.c221 #define K(i) F(opt_state, BPF_LD|BPF_IMM|BPF_W, i, 0L)
495 case BPF_LD: in atomuse()
534 case BPF_LD: in atomdef()
673 (BPF_CLASS(code) == BPF_LD || BPF_CLASS(code) == BPF_LDX)) { in F()
759 s->code = BPF_LD|BPF_IMM; in fold_op()
823 if (s->s.code == (BPF_LD|BPF_IMM) && in opt_peep()
833 if (s->s.code == (BPF_LD|BPF_IMM)) { in opt_peep()
871 if (ild == 0 || BPF_CLASS(ild->s.code) != BPF_LD || in opt_peep()
1052 case BPF_LD|BPF_ABS|BPF_W: in opt_stmt()
1053 case BPF_LD|BPF_ABS|BPF_H: in opt_stmt()
[all …]
Dgencode.c1649 s2 = new_stmt(cstate, BPF_LD|BPF_IND|size); in gen_load_absoffsetrel()
1657 s = new_stmt(cstate, BPF_LD|BPF_ABS|size); in gen_load_absoffsetrel()
1675 s = new_stmt(cstate, BPF_LD|BPF_ABS|size); in gen_load_a()
1727 s2 = new_stmt(cstate, BPF_LD|BPF_IND|size); in gen_load_a()
1765 s2 = new_stmt(cstate, BPF_LD|BPF_IND|BPF_B); in gen_loadx_iphdrlen()
1809 s = new_stmt(cstate, BPF_LD|BPF_IMM); in gen_uncond()
2267 s1 = new_stmt(cstate, BPF_LD|BPF_W|BPF_ABS); in gen_load_prism_llprefixlen()
2291 s2 = new_stmt(cstate, BPF_LD|BPF_W|BPF_ABS); in gen_load_prism_llprefixlen()
2314 s2 = new_stmt(cstate, BPF_LD|BPF_W|BPF_IMM); in gen_load_prism_llprefixlen()
2358 s1 = new_stmt(cstate, BPF_LD|BPF_W|BPF_ABS); in gen_load_avs_llprefixlen()
[all …]
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_monitor.c180 BPF_STMT(BPF_LD | BPF_B | BPF_ABS, 2),
184 BPF_STMT(BPF_LD | BPF_B | BPF_ABS, 3),
197 BPF_STMT(BPF_LD | BPF_B | BPF_IND, 0),
212 BPF_STMT(BPF_LD | BPF_H | BPF_IND, 0),
224 BPF_STMT(BPF_LD | BPF_B | BPF_IND, 0),
231 BPF_STMT(BPF_LD | BPF_B | BPF_IND, 1),
241 BPF_STMT(BPF_LD | BPF_B | BPF_IND, 0),
257 BPF_STMT(BPF_LD | BPF_W | BPF_LEN, 0),
263 BPF_STMT(BPF_LD | BPF_W | BPF_IND, 0),
265 BPF_STMT(BPF_LD | BPF_W | BPF_IND, 4),
/external/minijail/
Dbpf.c18 set_bpf_stmt(curr_block++, BPF_LD + BPF_W + BPF_ABS, arch_nr); in bpf_validate_arch()
47 set_bpf_stmt(filter, BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in bpf_load_arg()
54 set_bpf_stmt(curr_block++, BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in bpf_load_arg()
56 set_bpf_stmt(curr_block++, BPF_LD + BPF_W + BPF_ABS, HI_ARG(argidx)); in bpf_load_arg()
86 set_bpf_stmt(curr_block++, BPF_LD + BPF_MEM, 0); /* swap in |lo| */ in bpf_comp_jeq64()
133 set_bpf_stmt(curr_block++, BPF_LD + BPF_MEM, 0); /* swap in |lo| */ in bpf_comp_jgt64()
157 set_bpf_stmt(curr_block++, BPF_LD + BPF_MEM, 0); /* swap in |lo| */ in bpf_comp_jge64()
188 set_bpf_stmt(curr_block++, BPF_LD + BPF_MEM, 0); /* swap in |lo| */ in bpf_comp_jset64()
Dsyscall_filter_unittest_macros.h21 EXPECT_EQ((_block)->instrs->code, BPF_LD+BPF_W+BPF_ABS); \
27 EXPECT_EQ((_block)->instrs->code, BPF_LD+BPF_W+BPF_ABS); \
33 EXPECT_EQ((_block)->instrs->code, BPF_LD+BPF_W+BPF_ABS); \
89 EXPECT_EQ_STMT(&(_filter)[0], BPF_LD+BPF_W+BPF_ABS, arch_nr); \
Dsyscall_filter_unittest.cc198 unsigned char code = BPF_LD + BPF_W + BPF_ABS; in TEST()
216 EXPECT_EQ_STMT(&load_arg[0], BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in TEST()
218 EXPECT_EQ_STMT(&load_arg[0], BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in TEST()
220 EXPECT_EQ_STMT(&load_arg[2], BPF_LD + BPF_W + BPF_ABS, HI_ARG(argidx)); in TEST()
239 EXPECT_EQ_STMT(&comp_jeq[1], BPF_LD + BPF_MEM, 0); in TEST()
259 EXPECT_EQ_STMT(&comp_jset[1], BPF_LD + BPF_MEM, 0); in TEST()
279 EXPECT_EQ_STMT(&comp_jin[1], BPF_LD + BPF_MEM, 0); in TEST()
296 EXPECT_EQ_STMT(&arg_comp[0], BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in TEST()
300 EXPECT_EQ_STMT(&arg_comp[0], BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in TEST()
302 EXPECT_EQ_STMT(&arg_comp[2], BPF_LD + BPF_W + BPF_ABS, HI_ARG(argidx)); in TEST()
[all …]
/external/openssh/
Dsandbox-seccomp-filter.c96 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, \
101 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, \
107 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, \
113 BPF_STMT(BPF_LD+BPF_W+BPF_ABS,
118 BPF_STMT(BPF_LD+BPF_W+BPF_ABS,
/external/libnetfilter_conntrack/src/conntrack/
Dbsf.c31 case BPF_LD|BPF_IMM:
37 case BPF_LD|BPF_B|BPF_ABS:
61 case BPF_LD|BPF_B|BPF_IND:
64 case BPF_LD|BPF_H|BPF_IND:
67 case BPF_LD|BPF_W|BPF_IND:
111 .code = BPF_LD|BPF_IMM, in nfct_bsf_load_payload_offset()
129 .code = BPF_LD|BPF_B|BPF_ABS, in nfct_bsf_find_attr()
149 .code = BPF_LD|BPF_B|BPF_ABS, in nfct_bsf_find_attr_nest()
248 .code = BPF_LD|word_size|BPF_IND, in nfct_bsf_load_attr()
262 .code = BPF_LD|word_size|BPF_IND, in nfct_bsf_load_attr_offset()
[all …]
/external/elfutils/libcpu/
Dbpf_disasm.c44 [BPF_LD] = "ld",
120 case BPF_LD | BPF_IMM | BPF_DW: in bpf_disasm()
442 case BPF_LD | BPF_ABS | BPF_B: in bpf_disasm()
445 case BPF_LD | BPF_ABS | BPF_H: in bpf_disasm()
448 case BPF_LD | BPF_ABS | BPF_W: in bpf_disasm()
452 case BPF_LD | BPF_IND | BPF_B: in bpf_disasm()
455 case BPF_LD | BPF_IND | BPF_H: in bpf_disasm()
458 case BPF_LD | BPF_IND | BPF_W: in bpf_disasm()
/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
Dseccomp_bpf_tests.c255 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in TEST_SIGNAL()
279 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in TEST_SIGNAL()
284 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_arg(0)), in TEST_SIGNAL()
309 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in TEST_SIGNAL()
314 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_arg(5)), in TEST_SIGNAL()
341 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_arg(6)), in TEST()
358 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in TEST()
382 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in TEST()
410 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in FIXTURE_SETUP()
518 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in FIXTURE_SETUP()
[all …]
Dresumption.c92 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in FIXTURE_SETUP()
104 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in FIXTURE_SETUP()
108 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in FIXTURE_SETUP()
/external/linux-kselftest/tools/testing/selftests/seccomp/
Dseccomp_bpf.c510 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
538 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
543 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, syscall_arg(0)), in TEST_SIGNAL()
578 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
583 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, syscall_arg(5)), in TEST_SIGNAL()
644 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in kill_thread_or_group()
655 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in kill_thread_or_group()
741 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, syscall_arg(6)), in TEST()
760 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, \
867 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP()
[all …]
/external/seccomp-tests/linux/
Dseccomp_bpf.c409 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
437 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
442 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, syscall_arg(0)), in TEST_SIGNAL()
477 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
482 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, syscall_arg(5)), in TEST_SIGNAL()
527 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, syscall_arg(6)), in TEST()
547 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST()
574 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST()
601 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST()
632 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP()
[all …]
/external/android-clat/
Dclatd.c91 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 24), in configure_packet_socket()
93 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 28), in configure_packet_socket()
95 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 32), in configure_packet_socket()
97 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 36), in configure_packet_socket()

12345