Lines Matching defs:prog
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() local
866 struct bpf_program *prog; in bpf_map__init_kern_struct_ops() local
2503 static inline bool libbpf_prog_needs_vmlinux_btf(struct bpf_program *prog) in libbpf_prog_needs_vmlinux_btf()
2521 struct bpf_program *prog; in bpf_object__load_vmlinux_btf() local
3272 const struct bpf_program *prog) in prog_is_subprog()
3293 struct bpf_program *prog; in bpf_object__find_program_by_name() local
3334 static int bpf_program__record_reloc(struct bpf_program *prog, in bpf_program__record_reloc()
3469 static bool prog_contains_insn(const struct bpf_program *prog, size_t insn_idx) in prog_contains_insn()
3479 struct bpf_program *prog; in find_prog_by_sec_insn() local
3506 struct bpf_program *prog; in bpf_object__collect_prog_relos() local
3926 int ret, map, prog; in probe_prog_bind_map() local
5043 static int bpf_core_calc_field_relo(const struct bpf_program *prog, in bpf_core_calc_field_relo()
5259 static int bpf_core_calc_relo(const struct bpf_program *prog, in bpf_core_calc_relo()
5349 static void bpf_core_poison_insn(struct bpf_program *prog, int relo_idx, in bpf_core_poison_insn()
5409 static int bpf_core_patch_insn(struct bpf_program *prog, in bpf_core_patch_insn()
5663 static int bpf_core_apply_relo(struct bpf_program *prog, in bpf_core_apply_relo()
5839 struct bpf_program *prog; in bpf_object__relocate_core() local
5934 bpf_object__relocate_data(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_data()
5986 const struct bpf_program *prog, in adjust_prog_btf_ext_info()
6057 const struct bpf_program *prog) in reloc_prog_func_and_line_info()
6136 static struct reloc_desc *find_prog_insn_relo(const struct bpf_program *prog, size_t insn_idx) in find_prog_insn_relo()
6144 struct bpf_program *prog) in bpf_object__reloc_code()
6330 bpf_object__relocate_calls(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_calls()
6360 struct bpf_program *prog; in bpf_object__relocate() local
6593 static int bpf_object__sanitize_prog(struct bpf_object* obj, struct bpf_program *prog) in bpf_object__sanitize_prog()
6626 load_program(struct bpf_program *prog, struct bpf_insn *insns, int insns_cnt, in load_program()
6751 int bpf_program__load(struct bpf_program *prog, char *license, __u32 kern_ver) in bpf_program__load()
6842 struct bpf_program *prog; in bpf_object__load_progs() local
6876 struct bpf_program *prog; in __bpf_object__open() local
7355 int bpf_program__pin_instance(struct bpf_program *prog, const char *path, in bpf_program__pin_instance()
7391 int bpf_program__unpin_instance(struct bpf_program *prog, const char *path, in bpf_program__unpin_instance()
7419 int bpf_program__pin(struct bpf_program *prog, const char *path) in bpf_program__pin()
7485 int bpf_program__unpin(struct bpf_program *prog, const char *path) in bpf_program__unpin()
7740 struct bpf_program *prog; in bpf_object__pin_programs() local
7792 struct bpf_program *prog; in bpf_object__unpin_programs() local
7987 struct bpf_program *prog = prev; in bpf_program__next() local
7999 struct bpf_program *prog = next; in bpf_program__prev() local
8008 int bpf_program__set_priv(struct bpf_program *prog, void *priv, in bpf_program__set_priv()
8019 void *bpf_program__priv(const struct bpf_program *prog) in bpf_program__priv()
8024 void bpf_program__set_ifindex(struct bpf_program *prog, __u32 ifindex) in bpf_program__set_ifindex()
8029 const char *bpf_program__name(const struct bpf_program *prog) in bpf_program__name()
8034 const char *bpf_program__section_name(const struct bpf_program *prog) in bpf_program__section_name()
8039 const char *bpf_program__title(const struct bpf_program *prog, bool needs_copy) in bpf_program__title()
8055 bool bpf_program__autoload(const struct bpf_program *prog) in bpf_program__autoload()
8060 int bpf_program__set_autoload(struct bpf_program *prog, bool autoload) in bpf_program__set_autoload()
8069 int bpf_program__fd(const struct bpf_program *prog) in bpf_program__fd()
8074 size_t bpf_program__size(const struct bpf_program *prog) in bpf_program__size()
8079 int bpf_program__set_prep(struct bpf_program *prog, int nr_instances, in bpf_program__set_prep()
8107 int bpf_program__nth_fd(const struct bpf_program *prog, int n) in bpf_program__nth_fd()
8130 enum bpf_prog_type bpf_program__get_type(struct bpf_program *prog) in bpf_program__get_type()
8135 void bpf_program__set_type(struct bpf_program *prog, enum bpf_prog_type type) in bpf_program__set_type()
8140 static bool bpf_program__is_type(const struct bpf_program *prog, in bpf_program__is_type()
8175 bpf_program__get_expected_attach_type(struct bpf_program *prog) in bpf_program__get_expected_attach_type()
8180 void bpf_program__set_expected_attach_type(struct bpf_program *prog, in bpf_program__set_expected_attach_type()
8478 struct bpf_program *prog; in bpf_object__collect_st_ops_relos() local
8683 static int libbpf_find_attach_btf_id(struct bpf_program *prog) in libbpf_find_attach_btf_id()
8988 struct bpf_program *prog, *first_prog = NULL; in bpf_prog_load_xattr() local
9064 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog) in bpf_link__update_program()
9206 struct bpf_link *bpf_program__attach_perf_event(struct bpf_program *prog, in bpf_program__attach_perf_event()
9356 struct bpf_link *bpf_program__attach_kprobe(struct bpf_program *prog, in bpf_program__attach_kprobe()
9385 struct bpf_program *prog) in attach_kprobe()
9396 struct bpf_link *bpf_program__attach_uprobe(struct bpf_program *prog, in bpf_program__attach_uprobe()
9477 struct bpf_link *bpf_program__attach_tracepoint(struct bpf_program *prog, in bpf_program__attach_tracepoint()
9505 struct bpf_program *prog) in attach_tp()
9530 struct bpf_link *bpf_program__attach_raw_tracepoint(struct bpf_program *prog, in bpf_program__attach_raw_tracepoint()
9561 struct bpf_program *prog) in attach_raw_tp()
9569 static struct bpf_link *bpf_program__attach_btf_id(struct bpf_program *prog) 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()
9609 struct bpf_program *prog) in attach_trace()
9615 struct bpf_program *prog) in attach_lsm()
9621 struct bpf_program *prog) in attach_iter()
9627 bpf_program__attach_fd(struct bpf_program *prog, int target_fd, int btf_id, in bpf_program__attach_fd()
9663 bpf_program__attach_cgroup(struct bpf_program *prog, int cgroup_fd) in bpf_program__attach_cgroup()
9669 bpf_program__attach_netns(struct bpf_program *prog, int netns_fd) in bpf_program__attach_netns()
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()
9713 bpf_program__attach_iter(struct bpf_program *prog, in bpf_program__attach_iter()
9752 struct bpf_link *bpf_program__attach(struct bpf_program *prog) in bpf_program__attach()
9789 struct bpf_program *prog = st_ops->progs[i]; in bpf_map__attach_struct_ops() local
10577 int bpf_program__set_attach_target(struct bpf_program *prog, in bpf_program__set_attach_target()
10751 struct bpf_program **prog = s->progs[i].prog; in bpf_object__open_skeleton() local
10822 struct bpf_program *prog = *s->progs[i].prog; in bpf_object__attach_skeleton() local