Lines Matching refs:bpf_program
73 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog);
222 struct bpf_program *prog);
240 struct bpf_program { struct
316 struct bpf_program **progs; argument
440 struct bpf_program *programs;
530 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload()
556 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit()
579 static char *__bpf_program__pin_name(struct bpf_program *prog) in __bpf_program__pin_name()
611 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
665 struct bpf_program *prog, *progs; in bpf_object__add_programs()
935 struct bpf_program *prog; in bpf_map__init_kern_struct_ops()
2629 static bool prog_needs_vmlinux_btf(struct bpf_program *prog) in prog_needs_vmlinux_btf()
2646 struct bpf_program *prog; in obj_needs_vmlinux_btf()
2722 struct bpf_program *prog = &obj->programs[i]; in bpf_object__sanitize_and_load_btf()
2951 const struct bpf_program *a = _a; in cmp_progs()
2952 const struct bpf_program *b = _b; in cmp_progs()
3519 struct bpf_program *
3523 struct bpf_program *pos; in bpf_object__find_program_by_title()
3533 const struct bpf_program *prog) in prog_is_subprog()
3550 struct bpf_program *
3554 struct bpf_program *prog; in bpf_object__find_program_by_name()
3595 static int bpf_program__record_reloc(struct bpf_program *prog, in bpf_program__record_reloc()
3748 static bool prog_contains_insn(const struct bpf_program *prog, size_t insn_idx) in prog_contains_insn()
3754 static struct bpf_program *find_prog_by_sec_insn(const struct bpf_object *obj, in find_prog_by_sec_insn()
3758 struct bpf_program *prog; in find_prog_by_sec_insn()
3785 struct bpf_program *prog; in bpf_object__collect_prog_relos()
5112 static int bpf_core_apply_relo(struct bpf_program *prog, in bpf_core_apply_relo()
5181 struct bpf_program *prog; in bpf_object__relocate_core()
5275 bpf_object__relocate_data(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_data()
5353 const struct bpf_program *prog, in adjust_prog_btf_ext_info()
5423 struct bpf_program *main_prog, in reloc_prog_func_and_line_info()
5424 const struct bpf_program *prog) in reloc_prog_func_and_line_info()
5503 static struct reloc_desc *find_prog_insn_relo(const struct bpf_program *prog, size_t insn_idx) in find_prog_insn_relo()
5509 static int append_subprog_relos(struct bpf_program *main_prog, struct bpf_program *subprog) in append_subprog_relos()
5534 bpf_object__reloc_code(struct bpf_object *obj, struct bpf_program *main_prog, in bpf_object__reloc_code()
5535 struct bpf_program *prog) in bpf_object__reloc_code()
5538 struct bpf_program *subprog; in bpf_object__reloc_code()
5741 bpf_object__relocate_calls(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_calls()
5743 struct bpf_program *subprog; in bpf_object__relocate_calls()
5768 struct bpf_program *prog; in bpf_object__free_relocs()
5782 struct bpf_program *prog; in bpf_object__relocate()
6009 struct bpf_program *p = &obj->programs[i]; in bpf_object__collect_relos()
6032 static int bpf_object__sanitize_prog(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__sanitize_prog()
6068 load_program(struct bpf_program *prog, struct bpf_insn *insns, int insns_cnt, in load_program()
6208 static int bpf_program__record_externs(struct bpf_program *prog) in bpf_program__record_externs()
6240 static int libbpf_find_attach_btf_id(struct bpf_program *prog, int *btf_obj_fd, int *btf_type_id);
6242 int bpf_program__load(struct bpf_program *prog, char *license, __u32 kern_ver) in bpf_program__load()
6339 struct bpf_program *prog; in bpf_object__load_progs()
6375 struct bpf_program *prog; in __bpf_object__open()
6995 int bpf_program__pin_instance(struct bpf_program *prog, const char *path, in bpf_program__pin_instance()
7031 int bpf_program__unpin_instance(struct bpf_program *prog, const char *path, in bpf_program__unpin_instance()
7060 int bpf_program__pin(struct bpf_program *prog, const char *path) in bpf_program__pin()
7126 int bpf_program__unpin(struct bpf_program *prog, const char *path) in bpf_program__unpin()
7398 struct bpf_program *prog; in bpf_object__pin_programs()
7450 struct bpf_program *prog; in bpf_object__unpin_programs()
7644 static struct bpf_program *
7645 __bpf_program__iter(const struct bpf_program *p, const struct bpf_object *obj, in __bpf_program__iter()
7670 struct bpf_program *
7671 bpf_program__next(struct bpf_program *prev, const struct bpf_object *obj) in bpf_program__next()
7673 struct bpf_program *prog = prev; in bpf_program__next()
7682 struct bpf_program *
7683 bpf_program__prev(struct bpf_program *next, const struct bpf_object *obj) in bpf_program__prev()
7685 struct bpf_program *prog = next; in bpf_program__prev()
7694 int bpf_program__set_priv(struct bpf_program *prog, void *priv, in bpf_program__set_priv()
7705 void *bpf_program__priv(const struct bpf_program *prog) in bpf_program__priv()
7710 void bpf_program__set_ifindex(struct bpf_program *prog, __u32 ifindex) in bpf_program__set_ifindex()
7715 const char *bpf_program__name(const struct bpf_program *prog) in bpf_program__name()
7720 const char *bpf_program__section_name(const struct bpf_program *prog) in bpf_program__section_name()
7725 const char *bpf_program__title(const struct bpf_program *prog, bool needs_copy) in bpf_program__title()
7741 bool bpf_program__autoload(const struct bpf_program *prog) in bpf_program__autoload()
7746 int bpf_program__set_autoload(struct bpf_program *prog, bool autoload) in bpf_program__set_autoload()
7755 int bpf_program__fd(const struct bpf_program *prog) in bpf_program__fd()
7760 size_t bpf_program__size(const struct bpf_program *prog) in bpf_program__size()
7765 int bpf_program__set_prep(struct bpf_program *prog, int nr_instances, in bpf_program__set_prep()
7793 int bpf_program__nth_fd(const struct bpf_program *prog, int n) in bpf_program__nth_fd()
7816 enum bpf_prog_type bpf_program__get_type(const struct bpf_program *prog) in bpf_program__get_type()
7821 void bpf_program__set_type(struct bpf_program *prog, enum bpf_prog_type type) in bpf_program__set_type()
7826 static bool bpf_program__is_type(const struct bpf_program *prog, in bpf_program__is_type()
7833 int bpf_program__set_##NAME(struct bpf_program *prog) \
7841 bool bpf_program__is_##NAME(const struct bpf_program *prog) \
7861 bpf_program__get_expected_attach_type(const struct bpf_program *prog) in bpf_program__get_expected_attach_type()
7866 void bpf_program__set_expected_attach_type(struct bpf_program *prog, in bpf_program__set_expected_attach_type()
7912 struct bpf_program *prog);
7914 struct bpf_program *prog);
7916 struct bpf_program *prog);
7918 struct bpf_program *prog);
7920 struct bpf_program *prog);
7922 struct bpf_program *prog);
8169 struct bpf_program *prog; in bpf_object__collect_st_ops_relos()
8428 static int libbpf_find_attach_btf_id(struct bpf_program *prog, int *btf_obj_fd, int *btf_type_id) in libbpf_find_attach_btf_id()
8780 struct bpf_program *prog, *first_prog = NULL; in bpf_prog_load_xattr()
8857 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog) in bpf_link__update_program()
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()
9211 bpf_program__attach_kprobe_opts(struct bpf_program *prog, in bpf_program__attach_kprobe_opts()
9249 struct bpf_link *bpf_program__attach_kprobe(struct bpf_program *prog, in bpf_program__attach_kprobe()
9261 struct bpf_program *prog) in attach_kprobe()
9293 bpf_program__attach_uprobe_opts(struct bpf_program *prog, pid_t pid, 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()
9427 struct bpf_link *bpf_program__attach_tracepoint(struct bpf_program *prog, in bpf_program__attach_tracepoint()
9435 struct bpf_program *prog) in attach_tp()
9459 struct bpf_link *bpf_program__attach_raw_tracepoint(struct bpf_program *prog, in bpf_program__attach_raw_tracepoint()
9490 struct bpf_program *prog) in attach_raw_tp()
9498 static struct bpf_link *bpf_program__attach_btf_id(struct bpf_program *prog) 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()
9538 struct bpf_program *prog) in attach_trace()
9544 struct bpf_program *prog) in attach_lsm()
9550 bpf_program__attach_fd(struct bpf_program *prog, int target_fd, int btf_id, in bpf_program__attach_fd()
9586 bpf_program__attach_cgroup(struct bpf_program *prog, int cgroup_fd) in bpf_program__attach_cgroup()
9592 bpf_program__attach_netns(struct bpf_program *prog, int netns_fd) in bpf_program__attach_netns()
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()
9636 bpf_program__attach_iter(struct bpf_program *prog, in bpf_program__attach_iter()
9676 struct bpf_program *prog) in attach_iter()
9681 struct bpf_link *bpf_program__attach(struct bpf_program *prog) in bpf_program__attach()
9718 struct bpf_program *prog = st_ops->progs[i]; in bpf_map__attach_struct_ops()
10509 int bpf_program__set_attach_target(struct bpf_program *prog, in bpf_program__set_attach_target()
10695 struct bpf_program **prog = s->progs[i].prog; in bpf_object__open_skeleton()
10766 struct bpf_program *prog = *s->progs[i].prog; in bpf_object__attach_skeleton()