Home
last modified time | relevance | path

Searched refs:bpf_insn (Results 1 – 25 of 59) 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/
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 …]
Dlibbpf.c380 int bpf_prog_compute_tag(const struct bpf_insn *insns, int prog_len, in bpf_prog_compute_tag()
405 struct bpf_insn prog[prog_len / 8]; in bpf_prog_compute_tag()
475 const struct bpf_insn *insns, int prog_len, in bpf_prog_load()
492 attr.insn_cnt = prog_len / sizeof(struct bpf_insn); in bpf_prog_load()
/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/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 …
Dpcap.h523 PCAP_API u_int bpf_filter(const struct bpf_insn *, const u_char *, u_int, u_int);
525 PCAP_API int bpf_validate(const struct bpf_insn *f, int len);
526 PCAP_API char *bpf_image(const struct bpf_insn *, int);
/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_sock_addr.c520 const struct bpf_insn *insns, size_t insns_cnt) in load_insns()
571 struct bpf_insn insns[] = { in bind4_prog_load()
618 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in bind4_prog_load()
636 struct bpf_insn insns[] = { in bind6_prog_load()
684 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in bind6_prog_load()
719 struct bpf_insn insns[] = { in sendmsg_deny_prog_load()
724 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in sendmsg_deny_prog_load()
742 struct bpf_insn insns[] = { in sendmsg4_rw_asm_prog_load()
776 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in sendmsg4_rw_asm_prog_load()
800 struct bpf_insn insns[] = { in sendmsg6_rw_dst_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_sock.c27 struct bpf_insn insns[MAX_INSNS];
314 static size_t probe_prog_length(const struct bpf_insn *fp) in probe_prog_length()
324 static int load_sock_prog(const struct bpf_insn *prog, in load_sock_prog()
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_align.c33 struct bpf_insn insns[MAX_INSNS];
598 static int probe_filter_length(const struct bpf_insn *fp) in probe_filter_length()
612 struct bpf_insn *prog = test->insns; in do_test_single()
/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()
Dbpf_dump.c34 const struct bpf_insn *insn; in bpf_dump()
Dpcap-enet.c58 register struct bpf_insn *fcode = fp->bf_insns; in readloop()
Doptimize.c320 struct bpf_insn *fstart;
321 struct bpf_insn *ftail;
2128 struct bpf_insn *dst; in convert_code_r()
2314 struct bpf_insn *
2319 struct bpf_insn *fp; in icode_to_fcode()
2330 fp = (struct bpf_insn *)malloc(sizeof(*fp) * n); in icode_to_fcode()
2375 p->fcode.bf_insns = (struct bpf_insn *)malloc(prog_size); in install_bpf_program()
/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()
/external/iptables/utils/
Dnfbpf_compile.c18 struct bpf_insn *ins; in main()
/external/elfutils/lib/
Dbpf.h77 struct bpf_insn struct
/external/syzkaller/sys/linux/
Dbpf.txt98 raw array[bpf_insn]
103 body array[bpf_insn]
107 bpf_insn [

123