Lines Matching refs:bpf_program
202 struct bpf_program *prog);
220 struct bpf_program { struct
294 struct bpf_program **progs; argument
410 struct bpf_program *programs;
488 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload()
514 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit()
537 static char *__bpf_program__pin_name(struct bpf_program *prog) in __bpf_program__pin_name()
559 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
612 struct bpf_program *prog, *progs; in bpf_object__add_programs()
866 struct bpf_program *prog; in bpf_map__init_kern_struct_ops()
2504 static inline bool libbpf_prog_needs_vmlinux_btf(struct bpf_program *prog) in libbpf_prog_needs_vmlinux_btf()
2522 struct bpf_program *prog; in bpf_object__load_vmlinux_btf()
2792 const struct bpf_program *a = _a; in cmp_progs()
2793 const struct bpf_program *b = _b; in cmp_progs()
3259 struct bpf_program *
3263 struct bpf_program *pos; in bpf_object__find_program_by_title()
3273 const struct bpf_program *prog) in prog_is_subprog()
3290 struct bpf_program *
3294 struct bpf_program *prog; in bpf_object__find_program_by_name()
3335 static int bpf_program__record_reloc(struct bpf_program *prog, in bpf_program__record_reloc()
3470 static bool prog_contains_insn(const struct bpf_program *prog, size_t insn_idx) in prog_contains_insn()
3476 static struct bpf_program *find_prog_by_sec_insn(const struct bpf_object *obj, in find_prog_by_sec_insn()
3480 struct bpf_program *prog; in find_prog_by_sec_insn()
3507 struct bpf_program *prog; in bpf_object__collect_prog_relos()
5102 static int bpf_core_calc_field_relo(const struct bpf_program *prog, in bpf_core_calc_field_relo()
5318 static int bpf_core_calc_relo(const struct bpf_program *prog, in bpf_core_calc_relo()
5408 static void bpf_core_poison_insn(struct bpf_program *prog, int relo_idx, in bpf_core_poison_insn()
5468 static int bpf_core_patch_insn(struct bpf_program *prog, in bpf_core_patch_insn()
5722 static int bpf_core_apply_relo(struct bpf_program *prog, in bpf_core_apply_relo()
5898 struct bpf_program *prog; in bpf_object__relocate_core()
6001 bpf_object__relocate_data(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_data()
6053 const struct bpf_program *prog, in adjust_prog_btf_ext_info()
6123 struct bpf_program *main_prog, in reloc_prog_func_and_line_info()
6124 const struct bpf_program *prog) in reloc_prog_func_and_line_info()
6203 static struct reloc_desc *find_prog_insn_relo(const struct bpf_program *prog, size_t insn_idx) in find_prog_insn_relo()
6210 bpf_object__reloc_code(struct bpf_object *obj, struct bpf_program *main_prog, in bpf_object__reloc_code()
6211 struct bpf_program *prog) in bpf_object__reloc_code()
6214 struct bpf_program *subprog; in bpf_object__reloc_code()
6397 bpf_object__relocate_calls(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_calls()
6399 struct bpf_program *subprog; in bpf_object__relocate_calls()
6427 struct bpf_program *prog; in bpf_object__relocate()
6637 struct bpf_program *p = &obj->programs[i]; in bpf_object__collect_relos()
6660 static int bpf_object__sanitize_prog(struct bpf_object* obj, struct bpf_program *prog) in bpf_object__sanitize_prog()
6693 load_program(struct bpf_program *prog, struct bpf_insn *insns, int insns_cnt, in load_program()
6816 static int libbpf_find_attach_btf_id(struct bpf_program *prog);
6818 int bpf_program__load(struct bpf_program *prog, char *license, __u32 kern_ver) in bpf_program__load()
6909 struct bpf_program *prog; in bpf_object__load_progs()
6943 struct bpf_program *prog; in __bpf_object__open()
7424 int bpf_program__pin_instance(struct bpf_program *prog, const char *path, in bpf_program__pin_instance()
7460 int bpf_program__unpin_instance(struct bpf_program *prog, const char *path, in bpf_program__unpin_instance()
7488 int bpf_program__pin(struct bpf_program *prog, const char *path) in bpf_program__pin()
7554 int bpf_program__unpin(struct bpf_program *prog, const char *path) in bpf_program__unpin()
7821 struct bpf_program *prog; in bpf_object__pin_programs()
7873 struct bpf_program *prog; in bpf_object__unpin_programs()
8039 static struct bpf_program *
8040 __bpf_program__iter(const struct bpf_program *p, const struct bpf_object *obj, in __bpf_program__iter()
8065 struct bpf_program *
8066 bpf_program__next(struct bpf_program *prev, const struct bpf_object *obj) in bpf_program__next()
8068 struct bpf_program *prog = prev; in bpf_program__next()
8077 struct bpf_program *
8078 bpf_program__prev(struct bpf_program *next, const struct bpf_object *obj) in bpf_program__prev()
8080 struct bpf_program *prog = next; in bpf_program__prev()
8089 int bpf_program__set_priv(struct bpf_program *prog, void *priv, in bpf_program__set_priv()
8100 void *bpf_program__priv(const struct bpf_program *prog) in bpf_program__priv()
8105 void bpf_program__set_ifindex(struct bpf_program *prog, __u32 ifindex) in bpf_program__set_ifindex()
8110 const char *bpf_program__name(const struct bpf_program *prog) in bpf_program__name()
8115 const char *bpf_program__section_name(const struct bpf_program *prog) in bpf_program__section_name()
8120 const char *bpf_program__title(const struct bpf_program *prog, bool needs_copy) in bpf_program__title()
8136 bool bpf_program__autoload(const struct bpf_program *prog) in bpf_program__autoload()
8141 int bpf_program__set_autoload(struct bpf_program *prog, bool autoload) in bpf_program__set_autoload()
8150 int bpf_program__fd(const struct bpf_program *prog) in bpf_program__fd()
8155 size_t bpf_program__size(const struct bpf_program *prog) in bpf_program__size()
8160 int bpf_program__set_prep(struct bpf_program *prog, int nr_instances, in bpf_program__set_prep()
8188 int bpf_program__nth_fd(const struct bpf_program *prog, int n) in bpf_program__nth_fd()
8211 enum bpf_prog_type bpf_program__get_type(struct bpf_program *prog) in bpf_program__get_type()
8216 void bpf_program__set_type(struct bpf_program *prog, enum bpf_prog_type type) in bpf_program__set_type()
8221 static bool bpf_program__is_type(const struct bpf_program *prog, in bpf_program__is_type()
8228 int bpf_program__set_##NAME(struct bpf_program *prog) \
8236 bool bpf_program__is_##NAME(const struct bpf_program *prog) \
8256 bpf_program__get_expected_attach_type(struct bpf_program *prog) in bpf_program__get_expected_attach_type()
8261 void bpf_program__set_expected_attach_type(struct bpf_program *prog, in bpf_program__set_expected_attach_type()
8307 struct bpf_program *prog);
8309 struct bpf_program *prog);
8311 struct bpf_program *prog);
8313 struct bpf_program *prog);
8315 struct bpf_program *prog);
8317 struct bpf_program *prog);
8559 struct bpf_program *prog; in bpf_object__collect_st_ops_relos()
8764 static int libbpf_find_attach_btf_id(struct bpf_program *prog) in libbpf_find_attach_btf_id()
9069 struct bpf_program *prog, *first_prog = NULL; in bpf_prog_load_xattr()
9145 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog) in bpf_link__update_program()
9287 struct bpf_link *bpf_program__attach_perf_event(struct bpf_program *prog, in bpf_program__attach_perf_event()
9437 struct bpf_link *bpf_program__attach_kprobe(struct bpf_program *prog, in bpf_program__attach_kprobe()
9466 struct bpf_program *prog) in attach_kprobe()
9477 struct bpf_link *bpf_program__attach_uprobe(struct bpf_program *prog, in bpf_program__attach_uprobe()
9558 struct bpf_link *bpf_program__attach_tracepoint(struct bpf_program *prog, in bpf_program__attach_tracepoint()
9586 struct bpf_program *prog) in attach_tp()
9611 struct bpf_link *bpf_program__attach_raw_tracepoint(struct bpf_program *prog, in bpf_program__attach_raw_tracepoint()
9642 struct bpf_program *prog) in attach_raw_tp()
9650 static struct bpf_link *bpf_program__attach_btf_id(struct bpf_program *prog) 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()
9690 struct bpf_program *prog) in attach_trace()
9696 struct bpf_program *prog) in attach_lsm()
9702 struct bpf_program *prog) in attach_iter()
9708 bpf_program__attach_fd(struct bpf_program *prog, int target_fd, int btf_id, in bpf_program__attach_fd()
9744 bpf_program__attach_cgroup(struct bpf_program *prog, int cgroup_fd) in bpf_program__attach_cgroup()
9750 bpf_program__attach_netns(struct bpf_program *prog, int netns_fd) in bpf_program__attach_netns()
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()
9794 bpf_program__attach_iter(struct bpf_program *prog, in bpf_program__attach_iter()
9833 struct bpf_link *bpf_program__attach(struct bpf_program *prog) in bpf_program__attach()
9870 struct bpf_program *prog = st_ops->progs[i]; in bpf_map__attach_struct_ops()
10658 int bpf_program__set_attach_target(struct bpf_program *prog, in bpf_program__set_attach_target()
10832 struct bpf_program **prog = s->progs[i].prog; in bpf_object__open_skeleton()
10903 struct bpf_program *prog = *s->progs[i].prog; in bpf_object__attach_skeleton()