/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_lirc_mode2_user.c | 50 int ret, lircfd, progfd, mode; in main() local 60 BPF_PROG_TYPE_LIRC_MODE2, &obj, &progfd); in main() 73 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main() 98 ret = bpf_prog_attach(progfd, lircfd, BPF_LIRC_MODE2, 0); in main() 142 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main()
|
D | test_sock.c | 339 static int attach_sock_prog(int cgfd, int progfd, in attach_sock_prog() argument 342 return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE); in attach_sock_prog() 391 int progfd = -1; in run_test_case() local 395 progfd = load_sock_prog(test->insns, test->expected_attach_type); in run_test_case() 396 if (progfd < 0) { in run_test_case() 403 if (attach_sock_prog(cgfd, progfd, test->attach_type) == -1) { in run_test_case() 429 if (progfd != -1) in run_test_case() 431 close(progfd); in run_test_case()
|
D | test_sock_addr.c | 1284 int progfd = -1; in run_test_case() local 1289 progfd = test->loadfn(test); in run_test_case() 1290 if (test->expected_result == LOAD_REJECT && progfd < 0) in run_test_case() 1292 else if (test->expected_result == LOAD_REJECT || progfd < 0) in run_test_case() 1295 err = bpf_prog_attach(progfd, cgfd, test->attach_type, in run_test_case() 1339 if (progfd != -1) in run_test_case() 1341 close(progfd); in run_test_case()
|
/external/bcc/src/cc/ |
D | libbpf.h | 64 int bpf_attach_socket(int sockfd, int progfd); 73 int bpf_attach_kprobe(int progfd, enum bpf_probe_attach_type attach_type, 77 int bpf_attach_uprobe(int progfd, enum bpf_probe_attach_type attach_type, 82 int bpf_attach_tracepoint(int progfd, const char *tp_category, 86 int bpf_attach_raw_tracepoint(int progfd, char *tp_name); 93 int bpf_attach_xdp(const char *dev_name, int progfd, uint32_t flags); 97 int bpf_attach_perf_event_raw(int progfd, void *perf_event_attr, pid_t pid, 101 int bpf_attach_perf_event(int progfd, uint32_t ev_type, uint32_t ev_config,
|
D | libbpf.c | 771 static int bpf_attach_tracing_event(int progfd, const char *event_path, int pid, in bpf_attach_tracing_event() argument 815 if (ioctl(*pfd, PERF_EVENT_IOC_SET_BPF, progfd) < 0) { in bpf_attach_tracing_event() 827 int bpf_attach_kprobe(int progfd, enum bpf_probe_attach_type attach_type, in bpf_attach_kprobe() argument 873 if (bpf_attach_tracing_event(progfd, buf, -1 /* PID */, &pfd) == 0) in bpf_attach_kprobe() 943 int bpf_attach_uprobe(int progfd, enum bpf_probe_attach_type attach_type, in bpf_attach_uprobe() argument 993 if (bpf_attach_tracing_event(progfd, buf, pid, &pfd) == 0) in bpf_attach_uprobe() 1083 int bpf_attach_tracepoint(int progfd, const char *tp_category, in bpf_attach_tracepoint() argument 1091 if (bpf_attach_tracing_event(progfd, buf, -1 /* PID */, &pfd) == 0) in bpf_attach_tracepoint() 1106 int bpf_attach_raw_tracepoint(int progfd, char *tp_name) in bpf_attach_raw_tracepoint() argument 1113 attr.raw_tracepoint.prog_fd = progfd; in bpf_attach_raw_tracepoint() [all …]
|
/external/bcc/src/cc/includes/ |
D | libbpf.h | 64 int bpf_attach_socket(int sockfd, int progfd); 73 int bpf_attach_kprobe(int progfd, enum bpf_probe_attach_type attach_type, 77 int bpf_attach_uprobe(int progfd, enum bpf_probe_attach_type attach_type, 82 int bpf_attach_tracepoint(int progfd, const char *tp_category, 86 int bpf_attach_raw_tracepoint(int progfd, char *tp_name); 93 int bpf_attach_xdp(const char *dev_name, int progfd, uint32_t flags); 97 int bpf_attach_perf_event_raw(int progfd, void *perf_event_attr, pid_t pid, 101 int bpf_attach_perf_event(int progfd, uint32_t ev_type, uint32_t ev_config,
|
/external/bcc/src/python/bcc/ |
D | __init__.py | 840 def _attach_perf_event(self, progfd, ev_type, ev_config, argument 842 res = lib.bpf_attach_perf_event(progfd, ev_type, ev_config,
|