Home
last modified time | relevance | path

Searched refs:bpf_insn (Results 1 – 25 of 74) sorted by relevance

123

/external/iproute2/include/
Dbpf_util.h71 ((struct bpf_insn) { \
79 ((struct bpf_insn) { \
89 ((struct bpf_insn) { \
97 ((struct bpf_insn) { \
107 ((struct bpf_insn) { \
115 ((struct bpf_insn) { \
125 ((struct bpf_insn) { \
133 ((struct bpf_insn) { \
145 ((struct bpf_insn) { \
151 ((struct bpf_insn) { \
[all …]
/external/bcc/src/cc/includes/
Dlibbpf.h60 const struct bpf_insn *insns, int insn_len,
112 int bpf_prog_compute_tag(const struct bpf_insn *insns, int prog_len,
128 ((struct bpf_insn) { \
136 ((struct bpf_insn) { \
146 ((struct bpf_insn) { \
154 ((struct bpf_insn) { \
164 ((struct bpf_insn) { \
174 ((struct bpf_insn) { \
186 ((struct bpf_insn) { \
192 ((struct bpf_insn) { \
[all …]
/external/bcc/src/cc/
Dlibbpf.h60 const struct bpf_insn *insns, int insn_len,
112 int bpf_prog_compute_tag(const struct bpf_insn *insns, int prog_len,
128 ((struct bpf_insn) { \
136 ((struct bpf_insn) { \
146 ((struct bpf_insn) { \
154 ((struct bpf_insn) { \
164 ((struct bpf_insn) { \
174 ((struct bpf_insn) { \
186 ((struct bpf_insn) { \
192 ((struct bpf_insn) { \
[all …]
/external/ltp/include/lapi/
Dbpf.h70 struct bpf_insn { struct
445 ((struct bpf_insn) { \
453 ((struct bpf_insn) { \
461 ((struct bpf_insn) { \
472 ((struct bpf_insn) { \
478 ((struct bpf_insn) { \
490 ((struct bpf_insn) { \
498 ((struct bpf_insn) { \
506 ((struct bpf_insn) { \
514 ((struct bpf_insn) { \
[all …]
/external/libpcap/pcap/
Dbpf.h106 struct bpf_insn *bf_insns;
234 struct bpf_insn { struct
257 PCAP_API int bpf_validate(const struct bpf_insn *, int); argument
258 PCAP_API u_int bpf_filter(const struct bpf_insn *, const u_char *, u_int, u_int);
259 extern u_int bpf_filter_with_aux_data(const struct bpf_insn *, const u_char *, u_int, u_int, const …
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Draw_tp_writable_test_run.c11 const struct bpf_insn trace_program[] = { in test_raw_tp_writable_test_run()
23 .insns_cnt = sizeof(trace_program) / sizeof(struct bpf_insn), in test_raw_tp_writable_test_run()
32 const struct bpf_insn skb_program[] = { in test_raw_tp_writable_test_run()
41 .insns_cnt = sizeof(skb_program) / sizeof(struct bpf_insn), in test_raw_tp_writable_test_run()
Dfexit_stress.c18 const struct bpf_insn trace_program[] = { in test_fexit_stress()
27 .insns_cnt = sizeof(trace_program) / sizeof(struct bpf_insn), in test_fexit_stress()
31 const struct bpf_insn skb_program[] = { in test_fexit_stress()
40 .insns_cnt = sizeof(skb_program) / sizeof(struct bpf_insn), in test_fexit_stress()
Draw_tp_writable_reject_nbd_invalid.c12 const struct bpf_insn program[] = { in test_raw_tp_writable_reject_nbd_invalid()
25 .insns_cnt = sizeof(program) / sizeof(struct bpf_insn), in test_raw_tp_writable_reject_nbd_invalid()
/external/elfutils/libcpu/
Dbpf_disasm.c74 bswap_bpf_insn (struct bpf_insn *p) in bswap_bpf_insn()
103 while (start + sizeof(struct bpf_insn) <= end) in bpf_disasm()
105 struct bpf_insn i; in bpf_disasm()
109 memcpy(&i, start, sizeof(struct bpf_insn)); in bpf_disasm()
113 start += sizeof(struct bpf_insn); in bpf_disasm()
114 addr += sizeof(struct bpf_insn); in bpf_disasm()
115 jmp = addr + i.off * sizeof(struct bpf_insn); in bpf_disasm()
122 struct bpf_insn i2; in bpf_disasm()
125 if (start + sizeof(struct bpf_insn) > end) in bpf_disasm()
127 start -= sizeof(struct bpf_insn); in bpf_disasm()
[all …]
/external/scapy/scapy/arch/
Dcommon.py26 class bpf_insn(Structure): class
37 ("bf_insns", POINTER(bpf_insn))]
66 bpf_insn_a = bpf_insn * size
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_verifier.c68 struct bpf_insn insns[MAX_INSNS];
69 struct bpf_insn *fill_insns;
139 struct bpf_insn *insn = self->fill_insns; in bpf_fill_ld_abs_vlan_push_pop()
182 struct bpf_insn *insn = self->fill_insns; in bpf_fill_jump_around_ld_abs()
204 struct bpf_insn *insn = self->fill_insns; in bpf_fill_rand_ld_dw()
211 struct bpf_insn tmp[2] = { BPF_LD_IMM64(BPF_REG_1, val) }; in bpf_fill_rand_ld_dw()
232 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale1()
258 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale2()
357 static int probe_filter_length(const struct bpf_insn *fp) in probe_filter_length()
413 struct bpf_insn prog[] = { in create_prog_dummy_simple()
[all …]
Dtest_sock_addr.c642 const struct bpf_insn *insns, size_t insns_cnt) in load_insns()
693 struct bpf_insn insns[] = { in bind4_prog_load()
760 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in bind4_prog_load()
778 struct bpf_insn insns[] = { in bind6_prog_load()
826 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in bind6_prog_load()
863 struct bpf_insn insns[] = { in xmsg_ret_only_prog_load()
868 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in xmsg_ret_only_prog_load()
906 struct bpf_insn insns[] = { in sendmsg4_rw_asm_prog_load()
940 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in sendmsg4_rw_asm_prog_load()
952 struct bpf_insn insns[] = { in recvmsg4_rw_asm_prog_load()
[all …]
Dtest_tag.c25 static struct bpf_insn prog[BPF_MAXINSNS];
42 struct bpf_insn tmp[] = { in bpf_gen_map_prog()
133 insns *= sizeof(struct bpf_insn); in tag_from_alg()
Dtest_cgroup_storage.c18 struct bpf_insn prog[] = { in main()
38 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in main()
Dtest_cgroup_attach.c54 struct bpf_insn prog[] = { in prog_load()
58 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load()
245 struct bpf_insn prog[] = { in prog_load_cnt()
272 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load_cnt()
Dtest_verifier_log.c20 static const struct bpf_insn code_sample[] = {
54 attr.insn_cnt = (__u32)(sizeof(code_sample) / sizeof(struct bpf_insn)); in load()
Dtest_sock.c29 struct bpf_insn insns[MAX_INSNS];
318 static size_t probe_prog_length(const struct bpf_insn *fp) in probe_prog_length()
328 static int load_sock_prog(const struct bpf_insn *prog, in load_sock_prog()
/external/libpcap/
Dbpf_filter.c119 bpf_filter_with_aux_data(const struct bpf_insn *pc, const u_char *p, in bpf_filter_with_aux_data()
399 bpf_filter(const struct bpf_insn *pc, const u_char *p, u_int wirelen, in bpf_filter()
418 bpf_validate(const struct bpf_insn *f, int len) in bpf_validate()
421 const struct bpf_insn *p; in bpf_validate()
/external/ltp/testcases/kernel/syscalls/bpf/
Dbpf_prog01.c45 const struct bpf_insn PROG[] = {
63 static struct bpf_insn *prog;
Dbpf_prog03.c45 static struct bpf_insn *prog; in load_prog()
46 struct bpf_insn insn[] = { in load_prog()
Dbpf_prog02.c40 static struct bpf_insn *prog; in load_prog()
41 struct bpf_insn insn[] = { in load_prog()
/external/strace/tests-mx32/
Dbpf-obj_get_info_by_fd.c72 struct bpf_insn { struct
114 static struct bpf_insn socket_prog[] = {
354 struct bpf_insn *xlated_prog = tail_alloc(sizeof(*xlated_prog) * 42); in main()
/external/strace/tests-m32/
Dbpf-obj_get_info_by_fd.c72 struct bpf_insn { struct
114 static struct bpf_insn socket_prog[] = {
354 struct bpf_insn *xlated_prog = tail_alloc(sizeof(*xlated_prog) * 42); in main()
/external/strace/tests/
Dbpf-obj_get_info_by_fd.c72 struct bpf_insn { struct
114 static struct bpf_insn socket_prog[] = {
354 struct bpf_insn *xlated_prog = tail_alloc(sizeof(*xlated_prog) * 42); in main()
/external/tcpdump/
Dbpf_dump.c35 struct bpf_insn *insn; in bpf_dump()

123