Lines Matching refs:bpf_link
225 typedef struct bpf_link *(*attach_fn_t)(const struct bpf_program *prog, long cookie);
8293 static struct bpf_link *attach_kprobe(const struct bpf_program *prog, long cookie);
8294 static struct bpf_link *attach_tp(const struct bpf_program *prog, long cookie);
8295 static struct bpf_link *attach_raw_tp(const struct bpf_program *prog, long cookie);
8296 static struct bpf_link *attach_trace(const struct bpf_program *prog, long cookie);
8297 static struct bpf_link *attach_lsm(const struct bpf_program *prog, long cookie);
8298 static struct bpf_link *attach_iter(const struct bpf_program *prog, long cookie);
9233 struct bpf_link { struct
9234 int (*detach)(struct bpf_link *link); argument
9235 void (*dealloc)(struct bpf_link *link); argument
9242 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog) in bpf_link__update_program() argument
9260 void bpf_link__disconnect(struct bpf_link *link) in bpf_link__disconnect()
9265 int bpf_link__destroy(struct bpf_link *link) in bpf_link__destroy()
9284 int bpf_link__fd(const struct bpf_link *link) in bpf_link__fd()
9289 const char *bpf_link__pin_path(const struct bpf_link *link) in bpf_link__pin_path()
9294 static int bpf_link__detach_fd(struct bpf_link *link) in bpf_link__detach_fd()
9299 struct bpf_link *bpf_link__open(const char *path) in bpf_link__open()
9301 struct bpf_link *link; in bpf_link__open()
9328 int bpf_link__detach(struct bpf_link *link) in bpf_link__detach()
9333 int bpf_link__pin(struct bpf_link *link, const char *path) in bpf_link__pin()
9360 int bpf_link__unpin(struct bpf_link *link) in bpf_link__unpin()
9377 struct bpf_link link;
9388 static int bpf_link_perf_detach(struct bpf_link *link) in bpf_link_perf_detach()
9414 static void bpf_link_perf_dealloc(struct bpf_link *link) in bpf_link_perf_dealloc()
9422 struct bpf_link *bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd, in bpf_program__attach_perf_event_opts()
9497 struct bpf_link *bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd) in bpf_program__attach_perf_event()
9707 struct bpf_link *
9715 struct bpf_link *link; in bpf_program__attach_kprobe_opts()
9777 struct bpf_link *bpf_program__attach_kprobe(const struct bpf_program *prog, in bpf_program__attach_kprobe()
9788 static struct bpf_link *attach_kprobe(const struct bpf_program *prog, long cookie) in attach_kprobe()
9792 struct bpf_link *link; in attach_kprobe()
9901 LIBBPF_API struct bpf_link *
9908 struct bpf_link *link; in bpf_program__attach_uprobe_opts()
9973 struct bpf_link *bpf_program__attach_uprobe(const struct bpf_program *prog, in bpf_program__attach_uprobe()
10033 struct bpf_link *bpf_program__attach_tracepoint_opts(const struct bpf_program *prog, in bpf_program__attach_tracepoint_opts()
10040 struct bpf_link *link; in bpf_program__attach_tracepoint_opts()
10067 struct bpf_link *bpf_program__attach_tracepoint(const struct bpf_program *prog, in bpf_program__attach_tracepoint()
10074 static struct bpf_link *attach_tp(const struct bpf_program *prog, long cookie) in attach_tp()
10077 struct bpf_link *link; in attach_tp()
10101 struct bpf_link *bpf_program__attach_raw_tracepoint(const struct bpf_program *prog, in bpf_program__attach_raw_tracepoint()
10105 struct bpf_link *link; in bpf_program__attach_raw_tracepoint()
10131 static struct bpf_link *attach_raw_tp(const struct bpf_program *prog, long cookie) in attach_raw_tp()
10158 static struct bpf_link *bpf_program__attach_btf_id(const struct bpf_program *prog) in bpf_program__attach_btf_id()
10161 struct bpf_link *link; in bpf_program__attach_btf_id()
10184 return (struct bpf_link *)link; in bpf_program__attach_btf_id()
10187 struct bpf_link *bpf_program__attach_trace(const struct bpf_program *prog) in bpf_program__attach_trace()
10192 struct bpf_link *bpf_program__attach_lsm(const struct bpf_program *prog) in bpf_program__attach_lsm()
10197 static struct bpf_link *attach_trace(const struct bpf_program *prog, long cookie) in attach_trace()
10202 static struct bpf_link *attach_lsm(const struct bpf_program *prog, long cookie) in attach_lsm()
10207 static struct bpf_link *
10215 struct bpf_link *link; in bpf_program__attach_fd()
10243 struct bpf_link *
10249 struct bpf_link *
10255 struct bpf_link *bpf_program__attach_xdp(const struct bpf_program *prog, int ifindex) in bpf_program__attach_xdp()
10261 struct bpf_link *bpf_program__attach_freplace(const struct bpf_program *prog, in bpf_program__attach_freplace()
10293 struct bpf_link *
10299 struct bpf_link *link; in bpf_program__attach_iter()
10333 static struct bpf_link *attach_iter(const struct bpf_program *prog, long cookie) in attach_iter()
10338 struct bpf_link *bpf_program__attach(const struct bpf_program *prog) in bpf_program__attach()
10346 static int bpf_link__detach_struct_ops(struct bpf_link *link) in bpf_link__detach_struct_ops()
10356 struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) in bpf_map__attach_struct_ops()
10359 struct bpf_link *link; in bpf_map__attach_struct_ops()
11432 struct bpf_link **link = s->progs[i].link; in bpf_object__attach_skeleton()
11458 struct bpf_link **link = s->progs[i].link; in bpf_object__detach_skeleton()