Searched refs:bpf_code (Results 1 – 2 of 2) sorted by relevance
39 bpf_code = BPF(text=test_prog1)40 stats_map = bpf_code.get_table("stats")41 event_name = bpf_code.get_syscall_fnname("clone")42 bpf_code.attach_kprobe(event=event_name, fn_name="hello_world")56 bpf_code.detach_kprobe(event_name)71 bpf_code = BPF(text=test_prog1)72 stats_map = bpf_code.get_table("stats")73 event_name = bpf_code.get_syscall_fnname("clone")74 bpf_code.attach_kprobe(event=event_name, fn_name="hello_world")88 bpf_code.detach_kprobe(event_name)[all …]
58 def load_bpf_code(self, bpf_code): argument59 event_name = bpf_code.get_syscall_fnname("read")60 bpf_code.attach_kprobe(event=event_name, fn_name="license_program")61 bpf_code.detach_kprobe(event=event_name)