Lines Matching defs:bpf_link
201 typedef struct bpf_link *(*attach_fn_t)(const struct bpf_sec_def *sec,
8309 static struct bpf_link *attach_kprobe(const struct bpf_sec_def *sec,
8311 static struct bpf_link *attach_tp(const struct bpf_sec_def *sec,
8313 static struct bpf_link *attach_raw_tp(const struct bpf_sec_def *sec,
8315 static struct bpf_link *attach_trace(const struct bpf_sec_def *sec,
8317 static struct bpf_link *attach_lsm(const struct bpf_sec_def *sec,
8319 static struct bpf_link *attach_iter(const struct bpf_sec_def *sec,
9139 struct bpf_link {
9140 int (*detach)(struct bpf_link *link);
9141 int (*destroy)(struct bpf_link *link);
9148 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog)
9163 void bpf_link__disconnect(struct bpf_link *link)
9168 int bpf_link__destroy(struct bpf_link *link)
9186 int bpf_link__fd(const struct bpf_link *link)
9191 const char *bpf_link__pin_path(const struct bpf_link *link)
9196 static int bpf_link__detach_fd(struct bpf_link *link)
9201 struct bpf_link *bpf_link__open(const char *path)
9203 struct bpf_link *link;
9230 int bpf_link__detach(struct bpf_link *link)
9235 int bpf_link__pin(struct bpf_link *link, const char *path)
9262 int bpf_link__unpin(struct bpf_link *link)
9278 static int bpf_link__detach_perf_event(struct bpf_link *link)
9290 struct bpf_link *bpf_program__attach_perf_event(struct bpf_program *prog,
9294 struct bpf_link *link;
9440 struct bpf_link *bpf_program__attach_kprobe(struct bpf_program *prog,
9445 struct bpf_link *link;
9468 static struct bpf_link *attach_kprobe(const struct bpf_sec_def *sec,
9480 struct bpf_link *bpf_program__attach_uprobe(struct bpf_program *prog,
9486 struct bpf_link *link;
9561 struct bpf_link *bpf_program__attach_tracepoint(struct bpf_program *prog,
9566 struct bpf_link *link;
9588 static struct bpf_link *attach_tp(const struct bpf_sec_def *sec,
9592 struct bpf_link *link;
9614 struct bpf_link *bpf_program__attach_raw_tracepoint(struct bpf_program *prog,
9618 struct bpf_link *link;
9644 static struct bpf_link *attach_raw_tp(const struct bpf_sec_def *sec,
9653 static struct bpf_link *bpf_program__attach_btf_id(struct bpf_program *prog)
9656 struct bpf_link *link;
9679 return (struct bpf_link *)link;
9682 struct bpf_link *bpf_program__attach_trace(struct bpf_program *prog)
9687 struct bpf_link *bpf_program__attach_lsm(struct bpf_program *prog)
9692 static struct bpf_link *attach_trace(const struct bpf_sec_def *sec,
9698 static struct bpf_link *attach_lsm(const struct bpf_sec_def *sec,
9704 static struct bpf_link *attach_iter(const struct bpf_sec_def *sec,
9710 static struct bpf_link *
9718 struct bpf_link *link;
9746 struct bpf_link *
9752 struct bpf_link *
9758 struct bpf_link *bpf_program__attach_xdp(struct bpf_program *prog, int ifindex)
9764 struct bpf_link *bpf_program__attach_freplace(struct bpf_program *prog,
9796 struct bpf_link *
9802 struct bpf_link *link;
9836 struct bpf_link *bpf_program__attach(struct bpf_program *prog)
9847 static int bpf_link__detach_struct_ops(struct bpf_link *link)
9857 struct bpf_link *bpf_map__attach_struct_ops(struct bpf_map *map)
9860 struct bpf_link *link;
10907 struct bpf_link **link = s->progs[i].link;
10933 struct bpf_link **link = s->progs[i].link;