Lines Matching refs:bpf
61 ebpf::BPF bpf; variable
63 res = bpf.init(BPF_PROGRAM);
66 auto t = bpf.get_map_in_map_table<int>("maps_hash");
67 auto ex1_table = bpf.get_array_table<int>("ex1");
68 auto ex2_table = bpf.get_array_table<int>("ex2");
69 auto ex3_table = bpf.get_array_table<unsigned long long>("ex3");
99 std::string getuid_fnname = bpf.get_syscall_fnname("getuid");
100 res = bpf.attach_kprobe(getuid_fnname, "syscall__getuid");
103 auto cntl_table = bpf.get_array_table<int>("cntl");
110 res = bpf.detach_kprobe(getuid_fnname);
163 ebpf::BPF bpf; variable
165 res = bpf.init(BPF_PROGRAM);
168 auto t = bpf.get_map_in_map_table<struct custom_key>("maps_hash");
169 auto ex1_table = bpf.get_hash_table<int, int>("ex1");
170 auto ex2_table = bpf.get_hash_table<int, int>("ex2");
171 auto cntl_table = bpf.get_array_table<int>("cntl");
176 std::string getuid_fnname = bpf.get_syscall_fnname("getuid");
177 res = bpf.attach_kprobe(getuid_fnname, "syscall__getuid");
221 res = bpf.detach_kprobe(getuid_fnname);
269 ebpf::BPF bpf; variable
271 res = bpf.init(BPF_PROGRAM);
274 auto t = bpf.get_map_in_map_table<int>("maps_array");
275 auto ex1_table = bpf.get_hash_table<int, int>("ex1");
276 auto ex2_table = bpf.get_hash_table<int, int>("ex2");
278 bpf.get_hash_table<unsigned long long, unsigned long long>("ex3");
305 std::string getuid_fnname = bpf.get_syscall_fnname("getuid");
306 res = bpf.attach_kprobe(getuid_fnname, "syscall__getuid");
309 auto cntl_table = bpf.get_array_table<int>("cntl");
322 res = bpf.detach_kprobe(getuid_fnname);