Lines Matching refs:bpf_link

201 typedef struct bpf_link *(*attach_fn_t)(const struct bpf_sec_def *sec,
8306 static struct bpf_link *attach_kprobe(const struct bpf_sec_def *sec,
8308 static struct bpf_link *attach_tp(const struct bpf_sec_def *sec,
8310 static struct bpf_link *attach_raw_tp(const struct bpf_sec_def *sec,
8312 static struct bpf_link *attach_trace(const struct bpf_sec_def *sec,
8314 static struct bpf_link *attach_lsm(const struct bpf_sec_def *sec,
8316 static struct bpf_link *attach_iter(const struct bpf_sec_def *sec,
9136 struct bpf_link { struct
9137 int (*detach)(struct bpf_link *link); argument
9138 int (*destroy)(struct bpf_link *link); argument
9145 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog) in bpf_link__update_program() argument
9160 void bpf_link__disconnect(struct bpf_link *link) in bpf_link__disconnect()
9165 int bpf_link__destroy(struct bpf_link *link) in bpf_link__destroy()
9183 int bpf_link__fd(const struct bpf_link *link) in bpf_link__fd()
9188 const char *bpf_link__pin_path(const struct bpf_link *link) in bpf_link__pin_path()
9193 static int bpf_link__detach_fd(struct bpf_link *link) in bpf_link__detach_fd()
9198 struct bpf_link *bpf_link__open(const char *path) in bpf_link__open()
9200 struct bpf_link *link; in bpf_link__open()
9227 int bpf_link__detach(struct bpf_link *link) in bpf_link__detach()
9232 int bpf_link__pin(struct bpf_link *link, const char *path) in bpf_link__pin()
9259 int bpf_link__unpin(struct bpf_link *link) in bpf_link__unpin()
9275 static int bpf_link__detach_perf_event(struct bpf_link *link) in bpf_link__detach_perf_event()
9287 struct bpf_link *bpf_program__attach_perf_event(struct bpf_program *prog, in bpf_program__attach_perf_event()
9291 struct bpf_link *link; in bpf_program__attach_perf_event()
9437 struct bpf_link *bpf_program__attach_kprobe(struct bpf_program *prog, in bpf_program__attach_kprobe()
9442 struct bpf_link *link; in bpf_program__attach_kprobe()
9465 static struct bpf_link *attach_kprobe(const struct bpf_sec_def *sec, in attach_kprobe()
9477 struct bpf_link *bpf_program__attach_uprobe(struct bpf_program *prog, in bpf_program__attach_uprobe()
9483 struct bpf_link *link; in bpf_program__attach_uprobe()
9558 struct bpf_link *bpf_program__attach_tracepoint(struct bpf_program *prog, in bpf_program__attach_tracepoint()
9563 struct bpf_link *link; in bpf_program__attach_tracepoint()
9585 static struct bpf_link *attach_tp(const struct bpf_sec_def *sec, in attach_tp()
9589 struct bpf_link *link; in attach_tp()
9611 struct bpf_link *bpf_program__attach_raw_tracepoint(struct bpf_program *prog, in bpf_program__attach_raw_tracepoint()
9615 struct bpf_link *link; in bpf_program__attach_raw_tracepoint()
9641 static struct bpf_link *attach_raw_tp(const struct bpf_sec_def *sec, in attach_raw_tp()
9650 static struct bpf_link *bpf_program__attach_btf_id(struct bpf_program *prog) in bpf_program__attach_btf_id()
9653 struct bpf_link *link; in bpf_program__attach_btf_id()
9676 return (struct bpf_link *)link; in bpf_program__attach_btf_id()
9679 struct bpf_link *bpf_program__attach_trace(struct bpf_program *prog) in bpf_program__attach_trace()
9684 struct bpf_link *bpf_program__attach_lsm(struct bpf_program *prog) in bpf_program__attach_lsm()
9689 static struct bpf_link *attach_trace(const struct bpf_sec_def *sec, in attach_trace()
9695 static struct bpf_link *attach_lsm(const struct bpf_sec_def *sec, in attach_lsm()
9701 static struct bpf_link *attach_iter(const struct bpf_sec_def *sec, in attach_iter()
9707 static struct bpf_link *
9715 struct bpf_link *link; in bpf_program__attach_fd()
9743 struct bpf_link *
9749 struct bpf_link *
9755 struct bpf_link *bpf_program__attach_xdp(struct bpf_program *prog, int ifindex) in bpf_program__attach_xdp()
9761 struct bpf_link *bpf_program__attach_freplace(struct bpf_program *prog, in bpf_program__attach_freplace()
9793 struct bpf_link *
9799 struct bpf_link *link; in bpf_program__attach_iter()
9833 struct bpf_link *bpf_program__attach(struct bpf_program *prog) in bpf_program__attach()
9844 static int bpf_link__detach_struct_ops(struct bpf_link *link) in bpf_link__detach_struct_ops()
9854 struct bpf_link *bpf_map__attach_struct_ops(struct bpf_map *map) in bpf_map__attach_struct_ops()
9857 struct bpf_link *link; in bpf_map__attach_struct_ops()
10904 struct bpf_link **link = s->progs[i].link; in bpf_object__attach_skeleton()
10930 struct bpf_link **link = s->progs[i].link; in bpf_object__detach_skeleton()