Searched refs:bpf_code (Results 1 – 2 of 2) sorted by relevance
37 bpf_code = BPF(text=test_prog1)38 stats_map = bpf_code.get_table("stats")39 event_name = bpf_code.get_syscall_fnname("clone")40 bpf_code.attach_kprobe(event=event_name, fn_name="hello_world")54 bpf_code.detach_kprobe(event_name)67 bpf_code = BPF(text=test_prog1)68 stats_map = bpf_code.get_table("stats")69 event_name = bpf_code.get_syscall_fnname("clone")70 bpf_code.attach_kprobe(event=event_name, fn_name="hello_world")84 bpf_code.detach_kprobe(event_name)[all …]
56 def load_bpf_code(self, bpf_code): argument57 event_name = bpf_code.get_syscall_fnname("read")58 bpf_code.attach_kprobe(event=event_name, fn_name="license_program")59 bpf_code.detach_kprobe(event=event_name)