Lines Matching refs:bpf_link

201 typedef struct bpf_link *(*attach_fn_t)(const struct bpf_sec_def *sec,
8225 static struct bpf_link *attach_kprobe(const struct bpf_sec_def *sec,
8227 static struct bpf_link *attach_tp(const struct bpf_sec_def *sec,
8229 static struct bpf_link *attach_raw_tp(const struct bpf_sec_def *sec,
8231 static struct bpf_link *attach_trace(const struct bpf_sec_def *sec,
8233 static struct bpf_link *attach_lsm(const struct bpf_sec_def *sec,
8235 static struct bpf_link *attach_iter(const struct bpf_sec_def *sec,
9055 struct bpf_link { struct
9056 int (*detach)(struct bpf_link *link); argument
9057 int (*destroy)(struct bpf_link *link); argument
9064 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog) in bpf_link__update_program() argument
9079 void bpf_link__disconnect(struct bpf_link *link) in bpf_link__disconnect()
9084 int bpf_link__destroy(struct bpf_link *link) in bpf_link__destroy()
9102 int bpf_link__fd(const struct bpf_link *link) in bpf_link__fd()
9107 const char *bpf_link__pin_path(const struct bpf_link *link) in bpf_link__pin_path()
9112 static int bpf_link__detach_fd(struct bpf_link *link) in bpf_link__detach_fd()
9117 struct bpf_link *bpf_link__open(const char *path) in bpf_link__open()
9119 struct bpf_link *link; in bpf_link__open()
9146 int bpf_link__detach(struct bpf_link *link) in bpf_link__detach()
9151 int bpf_link__pin(struct bpf_link *link, const char *path) in bpf_link__pin()
9178 int bpf_link__unpin(struct bpf_link *link) in bpf_link__unpin()
9194 static int bpf_link__detach_perf_event(struct bpf_link *link) in bpf_link__detach_perf_event()
9206 struct bpf_link *bpf_program__attach_perf_event(struct bpf_program *prog, in bpf_program__attach_perf_event()
9210 struct bpf_link *link; in bpf_program__attach_perf_event()
9356 struct bpf_link *bpf_program__attach_kprobe(struct bpf_program *prog, in bpf_program__attach_kprobe()
9361 struct bpf_link *link; in bpf_program__attach_kprobe()
9384 static struct bpf_link *attach_kprobe(const struct bpf_sec_def *sec, in attach_kprobe()
9396 struct bpf_link *bpf_program__attach_uprobe(struct bpf_program *prog, in bpf_program__attach_uprobe()
9402 struct bpf_link *link; in bpf_program__attach_uprobe()
9477 struct bpf_link *bpf_program__attach_tracepoint(struct bpf_program *prog, in bpf_program__attach_tracepoint()
9482 struct bpf_link *link; in bpf_program__attach_tracepoint()
9504 static struct bpf_link *attach_tp(const struct bpf_sec_def *sec, in attach_tp()
9508 struct bpf_link *link; in attach_tp()
9530 struct bpf_link *bpf_program__attach_raw_tracepoint(struct bpf_program *prog, in bpf_program__attach_raw_tracepoint()
9534 struct bpf_link *link; in bpf_program__attach_raw_tracepoint()
9560 static struct bpf_link *attach_raw_tp(const struct bpf_sec_def *sec, in attach_raw_tp()
9569 static struct bpf_link *bpf_program__attach_btf_id(struct bpf_program *prog) in bpf_program__attach_btf_id()
9572 struct bpf_link *link; in bpf_program__attach_btf_id()
9595 return (struct bpf_link *)link; in bpf_program__attach_btf_id()
9598 struct bpf_link *bpf_program__attach_trace(struct bpf_program *prog) in bpf_program__attach_trace()
9603 struct bpf_link *bpf_program__attach_lsm(struct bpf_program *prog) in bpf_program__attach_lsm()
9608 static struct bpf_link *attach_trace(const struct bpf_sec_def *sec, in attach_trace()
9614 static struct bpf_link *attach_lsm(const struct bpf_sec_def *sec, in attach_lsm()
9620 static struct bpf_link *attach_iter(const struct bpf_sec_def *sec, in attach_iter()
9626 static struct bpf_link *
9634 struct bpf_link *link; in bpf_program__attach_fd()
9662 struct bpf_link *
9668 struct bpf_link *
9674 struct bpf_link *bpf_program__attach_xdp(struct bpf_program *prog, int ifindex) in bpf_program__attach_xdp()
9680 struct bpf_link *bpf_program__attach_freplace(struct bpf_program *prog, in bpf_program__attach_freplace()
9712 struct bpf_link *
9718 struct bpf_link *link; in bpf_program__attach_iter()
9752 struct bpf_link *bpf_program__attach(struct bpf_program *prog) in bpf_program__attach()
9763 static int bpf_link__detach_struct_ops(struct bpf_link *link) in bpf_link__detach_struct_ops()
9773 struct bpf_link *bpf_map__attach_struct_ops(struct bpf_map *map) in bpf_map__attach_struct_ops()
9776 struct bpf_link *link; in bpf_map__attach_struct_ops()
10823 struct bpf_link **link = s->progs[i].link; in bpf_object__attach_skeleton()
10849 struct bpf_link **link = s->progs[i].link; in bpf_object__detach_skeleton()