Home
last modified time | relevance | path

Searched refs:bpf_program (Results 1 – 25 of 57) sorted by relevance

123

/external/adeb/bcc/misc/
Dlockstat.py207 bpf_program = BPF(text=bpf_source) variable
208 bpf_program.attach_kprobe(event="SyS_futex", fn_name="sys_futex_enter")
209 bpf_program.attach_kretprobe(event="SyS_futex", fn_name="sys_futex_exit")
212 global bpf_program
215 s = bpf_program.sym(addr, pid, show_offset=True)
233 s = bpf_program.sym(addr, pid, show_offset=True)
236 global bpf_program
237 stats = bpf_program["lock_stats"]
239 stack_traces = bpf_program['stack_traces']
263 comms = bpf_program["tgid_comm"]
[all …]
/external/bcc/tools/old/
Dmemleak.py228 bpf_program = BPF(text=bpf_source) variable
232 bpf_program.attach_uprobe(name="c", sym="malloc",
234 bpf_program.attach_uretprobe(name="c", sym="malloc",
236 bpf_program.attach_uprobe(name="c", sym="free",
240 bpf_program.attach_kprobe(event="__kmalloc", fn_name="alloc_enter")
241 bpf_program.attach_kretprobe(event="__kmalloc", fn_name="alloc_exit")
242 bpf_program.attach_kprobe(event="kfree", fn_name="free_enter")
248 allocs = bpf_program.get_table("allocs")
252 stack = decode_stack(bpf_program, pid, info)
269 print(bpf_program.trace_fields())
/external/iptables/extensions/
Dlibxt_bpf.c80 const char *bpf_program) in bpf_parse_string() argument
89 if (sscanf(bpf_program, "%hu%c", &len, &sp) != 2 || in bpf_parse_string()
102 token = bpf_program; in bpf_parse_string()
147 bpf_parse_string(bi->bpf_program, &bi->bpf_program_num_elem, in bpf_parse()
148 ARRAY_SIZE(bi->bpf_program), cb->arg); in bpf_parse()
162 bpf_parse_string(bi->bpf_program, &bi->bpf_program_num_elem, in bpf_parse_v1()
163 ARRAY_SIZE(bi->bpf_program), cb->arg); in bpf_parse_v1()
193 bpf_save_code(info->bpf_program, info->bpf_program_num_elem); in bpf_save()
201 bpf_save_code(info->bpf_program, info->bpf_program_num_elem); in bpf_save_v1()
233 bpf_print_code(info->bpf_program, info->bpf_program_num_elem, '\0'); in bpf_print()
[all …]
/external/libpcap/pcap/
Dpcap.h446 PCAP_API int pcap_setfilter(pcap_t *, struct bpf_program *);
456 PCAP_API int pcap_compile(pcap_t *, struct bpf_program *, const char *, int,
458 PCAP_API int pcap_compile_nopcap(int, int, struct bpf_program *,
460 PCAP_API void pcap_freecode(struct bpf_program *);
461 PCAP_API int pcap_offline_filter(const struct bpf_program *,
527 PCAP_API void bpf_dump(const struct bpf_program *, int);
Dbpf.h104 struct bpf_program { struct
/external/tcpdump/
Dinterface.h75 struct bpf_program;
77 extern void bpf_dump(const struct bpf_program *, int);
Dbpf_dump.c33 bpf_dump(const struct bpf_program *p, int option) in bpf_dump()
/external/iptables/include/linux/netfilter/
Dxt_bpf.h15 struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR]; member
32 struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR]; member
/external/kernel-headers/original/uapi/linux/netfilter/
Dxt_bpf.h16 struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR]; member
34 struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR]; member
/external/scapy/scapy/modules/
Dwinpcapy.py60 class bpf_program(Structure): class
62 bpf_program._fields_ = [('bf_len', u_int),
369 pcap_compile.argtypes = [POINTER(pcap_t), POINTER(bpf_program), STRING, c_int, bpf_u_int32]
375 pcap_compile_nopcap.argtypes = [c_int, c_int, POINTER(bpf_program), STRING, c_int, bpf_u_int32]
381 pcap_setfilter.argtypes = [POINTER(pcap_t), POINTER(bpf_program)]
387 pcap_freecode.argtypes = [POINTER(bpf_program)]
622 pcap_offline_filter.argtypes = [POINTER(bpf_program),POINTER(pcap_pkthdr),POINTER(u_char)]
/external/ppp/pppd/include/net/
Dif_ppp.h133 #define PPPIOCSPASS _IOW('t', 71, struct bpf_program) /* set pass filter */
134 #define PPPIOCSACTIVE _IOW('t', 70, struct bpf_program) /* set active filt */
/external/libpcap/
Dpcap-int.h123 typedef int (*setfilter_op_t)(pcap_t *, struct bpf_program *);
243 struct bpf_program fcode;
495 int install_bpf_program(pcap_t *, struct bpf_program *);
Dpcap-septel.c44 static int septel_setfilter(pcap_t *p, struct bpf_program *fp);
292 static int septel_setfilter(pcap_t *p, struct bpf_program *fp) { in septel_setfilter()
Dbpf_dump.c32 bpf_dump(const struct bpf_program *p, int option) in bpf_dump()
Dpcap-rpcap.c151 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog…
152 static int pcap_createfilter_norpcappkt(pcap_t *fp, struct bpf_program *prog);
153 static int pcap_updatefilter_remote(pcap_t *fp, struct bpf_program *prog);
155 static int pcap_setfilter_rpcap(pcap_t *fp, struct bpf_program *prog);
1348 struct bpf_program fcode; in pcap_startcapture_remote()
1428 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog) in pcap_pack_bpffilter()
1433 struct bpf_program fake_prog; /* To be used just in case the user forgot to set a filter */ in pcap_pack_bpffilter()
1499 static int pcap_updatefilter_remote(pcap_t *fp, struct bpf_program *prog) in pcap_updatefilter_remote()
1570 static int pcap_setfilter_rpcap(pcap_t *fp, struct bpf_program *prog) in pcap_setfilter_rpcap()
1599 static int pcap_createfilter_norpcappkt(pcap_t *fp, struct bpf_program *prog) in pcap_createfilter_norpcappkt()
Dpcap-pf.c90 static int pcap_setfilter_pf(pcap_t *, struct bpf_program *);
590 pcap_setfilter_pf(pcap_t *p, struct bpf_program *fp) in pcap_setfilter_pf()
/external/scapy/scapy/arch/
Dcommon.py34 class bpf_program(Structure): class
81 return bpf_program(size, bip)
Dpcapdnet.py141 self.bpf_program = bpf_program()
159 if pcap_compile(self.pcap, byref(self.bpf_program), filter_exp, 0, -1) == -1:
163 if pcap_setfilter(self.pcap, byref(self.bpf_program)) == -1:
/external/ppp/pppd/
Dpppd.h345 extern struct bpf_program pass_filter; /* Filter for pkts to pass */
346 extern struct bpf_program active_filter; /* Filter for link-active pkts */
687 int set_filters __P((struct bpf_program *pass, struct bpf_program *active));
/external/libpcap/testprogs/
Dvalgrindtest.c242 struct bpf_program bad_fcode; in main()
248 struct bpf_program fcode; in main()
/external/iptables/utils/
Dnfbpf_compile.c17 struct bpf_program program; in main()
Dnfsynproxy.c97 struct bpf_program fp; in probe_host()
/external/ppp/pppd/include/
Dpcap-int.h95 struct bpf_program fcode;
/external/linux-kselftest/tools/testing/selftests/bpf/
Dflow_dissector_load.c24 struct bpf_program *prog, *main_prog; in load_and_attach_program()
Dtest_libbpf_open.c60 struct bpf_program *prog; in test_walk_progs()

123