Lines Matching refs:bpf_link
221 typedef struct bpf_link *(*attach_fn_t)(const struct bpf_sec_def *sec,
7911 static struct bpf_link *attach_kprobe(const struct bpf_sec_def *sec,
7913 static struct bpf_link *attach_tp(const struct bpf_sec_def *sec,
7915 static struct bpf_link *attach_raw_tp(const struct bpf_sec_def *sec,
7917 static struct bpf_link *attach_trace(const struct bpf_sec_def *sec,
7919 static struct bpf_link *attach_lsm(const struct bpf_sec_def *sec,
7921 static struct bpf_link *attach_iter(const struct bpf_sec_def *sec,
8848 struct bpf_link { struct
8849 int (*detach)(struct bpf_link *link); argument
8850 void (*dealloc)(struct bpf_link *link); argument
8857 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog) in bpf_link__update_program() argument
8875 void bpf_link__disconnect(struct bpf_link *link) in bpf_link__disconnect()
8880 int bpf_link__destroy(struct bpf_link *link) in bpf_link__destroy()
8899 int bpf_link__fd(const struct bpf_link *link) in bpf_link__fd()
8904 const char *bpf_link__pin_path(const struct bpf_link *link) in bpf_link__pin_path()
8909 static int bpf_link__detach_fd(struct bpf_link *link) in bpf_link__detach_fd()
8914 struct bpf_link *bpf_link__open(const char *path) in bpf_link__open()
8916 struct bpf_link *link; in bpf_link__open()
8943 int bpf_link__detach(struct bpf_link *link) in bpf_link__detach()
8948 int bpf_link__pin(struct bpf_link *link, const char *path) in bpf_link__pin()
8975 int bpf_link__unpin(struct bpf_link *link) in bpf_link__unpin()
8992 struct bpf_link link;
8996 static int bpf_link_perf_detach(struct bpf_link *link) in bpf_link_perf_detach()
9011 static void bpf_link_perf_dealloc(struct bpf_link *link) in bpf_link_perf_dealloc()
9018 struct bpf_link *bpf_program__attach_perf_event_opts(struct bpf_program *prog, int pfd, in bpf_program__attach_perf_event_opts()
9093 struct bpf_link *bpf_program__attach_perf_event(struct bpf_program *prog, int pfd) in bpf_program__attach_perf_event()
9210 struct bpf_link *
9217 struct bpf_link *link; in bpf_program__attach_kprobe_opts()
9249 struct bpf_link *bpf_program__attach_kprobe(struct bpf_program *prog, in bpf_program__attach_kprobe()
9260 static struct bpf_link *attach_kprobe(const struct bpf_sec_def *sec, in attach_kprobe()
9265 struct bpf_link *link; in attach_kprobe()
9292 LIBBPF_API struct bpf_link *
9299 struct bpf_link *link; in bpf_program__attach_uprobe_opts()
9333 struct bpf_link *bpf_program__attach_uprobe(struct bpf_program *prog, in bpf_program__attach_uprobe()
9393 struct bpf_link *bpf_program__attach_tracepoint_opts(struct bpf_program *prog, in bpf_program__attach_tracepoint_opts()
9400 struct bpf_link *link; in bpf_program__attach_tracepoint_opts()
9427 struct bpf_link *bpf_program__attach_tracepoint(struct bpf_program *prog, in bpf_program__attach_tracepoint()
9434 static struct bpf_link *attach_tp(const struct bpf_sec_def *sec, in attach_tp()
9438 struct bpf_link *link; in attach_tp()
9459 struct bpf_link *bpf_program__attach_raw_tracepoint(struct bpf_program *prog, in bpf_program__attach_raw_tracepoint()
9463 struct bpf_link *link; in bpf_program__attach_raw_tracepoint()
9489 static struct bpf_link *attach_raw_tp(const struct bpf_sec_def *sec, in attach_raw_tp()
9498 static struct bpf_link *bpf_program__attach_btf_id(struct bpf_program *prog) in bpf_program__attach_btf_id()
9501 struct bpf_link *link; in bpf_program__attach_btf_id()
9524 return (struct bpf_link *)link; in bpf_program__attach_btf_id()
9527 struct bpf_link *bpf_program__attach_trace(struct bpf_program *prog) in bpf_program__attach_trace()
9532 struct bpf_link *bpf_program__attach_lsm(struct bpf_program *prog) in bpf_program__attach_lsm()
9537 static struct bpf_link *attach_trace(const struct bpf_sec_def *sec, in attach_trace()
9543 static struct bpf_link *attach_lsm(const struct bpf_sec_def *sec, in attach_lsm()
9549 static struct bpf_link *
9557 struct bpf_link *link; in bpf_program__attach_fd()
9585 struct bpf_link *
9591 struct bpf_link *
9597 struct bpf_link *bpf_program__attach_xdp(struct bpf_program *prog, int ifindex) in bpf_program__attach_xdp()
9603 struct bpf_link *bpf_program__attach_freplace(struct bpf_program *prog, in bpf_program__attach_freplace()
9635 struct bpf_link *
9641 struct bpf_link *link; in bpf_program__attach_iter()
9675 static struct bpf_link *attach_iter(const struct bpf_sec_def *sec, in attach_iter()
9681 struct bpf_link *bpf_program__attach(struct bpf_program *prog) in bpf_program__attach()
9692 static int bpf_link__detach_struct_ops(struct bpf_link *link) in bpf_link__detach_struct_ops()
9702 struct bpf_link *bpf_map__attach_struct_ops(struct bpf_map *map) in bpf_map__attach_struct_ops()
9705 struct bpf_link *link; in bpf_map__attach_struct_ops()
10767 struct bpf_link **link = s->progs[i].link; in bpf_object__attach_skeleton()
10794 struct bpf_link **link = s->progs[i].link; in bpf_object__detach_skeleton()