Lines Matching refs:bpf_link
9207 static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9208 static int attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9209 static int attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9211 static int attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9213 static int attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9214 static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9215 static int attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9216 static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9217 static int attach_uprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9218 static int attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9219 static int attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link);
10384 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog)
10402 void bpf_link__disconnect(struct bpf_link *link)
10407 int bpf_link__destroy(struct bpf_link *link)
10426 int bpf_link__fd(const struct bpf_link *link)
10431 const char *bpf_link__pin_path(const struct bpf_link *link)
10436 static int bpf_link__detach_fd(struct bpf_link *link)
10441 struct bpf_link *bpf_link__open(const char *path)
10443 struct bpf_link *link;
10470 int bpf_link__detach(struct bpf_link *link)
10475 int bpf_link__pin(struct bpf_link *link, const char *path)
10502 int bpf_link__unpin(struct bpf_link *link)
10519 struct bpf_link link;
10530 static int bpf_link_perf_detach(struct bpf_link *link)
10556 static void bpf_link_perf_dealloc(struct bpf_link *link)
10564 struct bpf_link *bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd,
10641 struct bpf_link *bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd)
10964 struct bpf_link *
10973 struct bpf_link *link;
11060 struct bpf_link *bpf_program__attach_kprobe(const struct bpf_program *prog,
11071 struct bpf_link *bpf_program__attach_ksyscall(const struct bpf_program *prog,
11285 struct bpf_link *
11294 struct bpf_link *link = NULL;
11364 static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11401 static int attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11422 static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11453 static int attach_uprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11718 struct bpf_link *
11729 struct bpf_link *link = NULL;
11832 LIBBPF_API struct bpf_link *
11842 struct bpf_link *link;
11978 static int attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12033 struct bpf_link *bpf_program__attach_uprobe(const struct bpf_program *prog,
12044 struct bpf_link *bpf_program__attach_usdt(const struct bpf_program *prog,
12051 struct bpf_link *link;
12099 static int attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12180 struct bpf_link *bpf_program__attach_tracepoint_opts(const struct bpf_program *prog,
12187 struct bpf_link *link;
12214 struct bpf_link *bpf_program__attach_tracepoint(const struct bpf_program *prog,
12221 static int attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12253 struct bpf_link *bpf_program__attach_raw_tracepoint(const struct bpf_program *prog,
12257 struct bpf_link *link;
12283 static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12325 static struct bpf_link *bpf_program__attach_btf_id(const struct bpf_program *prog,
12330 struct bpf_link *link;
12361 struct bpf_link *bpf_program__attach_trace(const struct bpf_program *prog)
12366 struct bpf_link *bpf_program__attach_trace_opts(const struct bpf_program *prog,
12372 struct bpf_link *bpf_program__attach_lsm(const struct bpf_program *prog)
12377 static int attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12383 static int attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12389 static struct bpf_link *
12396 struct bpf_link *link;
12424 struct bpf_link *
12430 struct bpf_link *
12436 struct bpf_link *bpf_program__attach_xdp(const struct bpf_program *prog, int ifindex)
12442 struct bpf_link *
12477 struct bpf_link *
12511 struct bpf_link *bpf_program__attach_freplace(const struct bpf_program *prog,
12548 struct bpf_link *
12554 struct bpf_link *link;
12588 static int attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12594 struct bpf_link *bpf_program__attach_netfilter(const struct bpf_program *prog,
12598 struct bpf_link *link;
12636 struct bpf_link *bpf_program__attach(const struct bpf_program *prog)
12638 struct bpf_link *link = NULL;
12660 struct bpf_link link;
12664 static int bpf_link__detach_struct_ops(struct bpf_link *link)
12678 struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map)
12727 int bpf_link__update_map(struct bpf_link *link, const struct bpf_map *map)
13682 struct bpf_link **link = s->progs[i].link;
13722 struct bpf_link **link = s->progs[i].link;