Lines Matching defs:bpf_object
75 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj);
271 struct bpf_object *obj;
405 struct bpf_object {
458 * All loaded bpf_object is linked in a list, which is
478 static const char *elf_sym_str(const struct bpf_object *obj, size_t off);
479 static const char *elf_sec_str(const struct bpf_object *obj, size_t off);
480 static Elf_Scn *elf_sec_by_idx(const struct bpf_object *obj, size_t idx);
481 static Elf_Scn *elf_sec_by_name(const struct bpf_object *obj, const char *name);
482 static int elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn, GElf_Shdr *hdr);
483 static const char *elf_sec_name(const struct bpf_object *obj, Elf_Scn *scn);
484 static Elf_Data *elf_sec_data(const struct bpf_object *obj, Elf_Scn *scn);
485 static int elf_sym_by_sec_off(const struct bpf_object *obj, size_t sec_idx,
559 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog,
609 bpf_object__add_programs(struct bpf_object *obj, Elf_Data *sec_data,
916 static int bpf_object__init_kern_struct_ops_maps(struct bpf_object *obj)
937 static int bpf_object__init_struct_ops_maps(struct bpf_object *obj)
1030 static struct bpf_object *bpf_object__new(const char *path,
1035 struct bpf_object *obj;
1038 obj = calloc(1, sizeof(struct bpf_object) + strlen(path) + 1);
1083 static void bpf_object__elf_finish(struct bpf_object *obj)
1110 static int bpf_object__elf_init(struct bpf_object *obj)
1183 static int bpf_object__check_endianness(struct bpf_object *obj)
1199 bpf_object__init_license(struct bpf_object *obj, void *data, size_t size)
1207 bpf_object__init_kversion(struct bpf_object *obj, void *data, size_t size)
1229 int bpf_object__section_size(const struct bpf_object *obj, const char *name,
1262 int bpf_object__variable_offset(const struct bpf_object *obj, const char *name,
1296 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj)
1340 static char *internal_map_name(struct bpf_object *obj,
1361 bpf_object__init_internal_map(struct bpf_object *obj, enum libbpf_map_type type,
1411 static int bpf_object__init_global_data_maps(struct bpf_object *obj)
1448 static struct extern_desc *find_extern_by_name(const struct bpf_object *obj,
1594 static int bpf_object__process_kconfig_line(struct bpf_object *obj,
1655 static int bpf_object__read_kconfig_file(struct bpf_object *obj, void *data)
1693 static int bpf_object__read_kconfig_mem(struct bpf_object *obj,
1720 static int bpf_object__init_kconfig_map(struct bpf_object *obj)
1747 static int bpf_object__init_user_maps(struct bpf_object *obj, bool strict)
1979 static int parse_btf_map_def(struct bpf_object *obj,
2215 static int bpf_object__init_user_btf_map(struct bpf_object *obj,
2282 static int bpf_object__init_user_btf_maps(struct bpf_object *obj, bool strict,
2334 static int bpf_object__init_maps(struct bpf_object *obj,
2355 static bool section_have_execinstr(struct bpf_object *obj, int idx)
2365 static bool btf_needs_sanitization(struct bpf_object *obj)
2374 static void bpf_object__sanitize_btf(struct bpf_object *obj, struct btf *btf)
2434 static bool libbpf_needs_btf(const struct bpf_object *obj)
2441 static bool kernel_needs_btf(const struct bpf_object *obj)
2446 static int bpf_object__init_btf(struct bpf_object *obj,
2488 static int bpf_object__finalize_btf(struct bpf_object *obj)
2519 static int bpf_object__load_vmlinux_btf(struct bpf_object *obj)
2562 static int bpf_object__sanitize_and_load_btf(struct bpf_object *obj)
2617 static const char *elf_sym_str(const struct bpf_object *obj, size_t off)
2631 static const char *elf_sec_str(const struct bpf_object *obj, size_t off)
2645 static Elf_Scn *elf_sec_by_idx(const struct bpf_object *obj, size_t idx)
2658 static Elf_Scn *elf_sec_by_name(const struct bpf_object *obj, const char *name)
2677 static int elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn, GElf_Shdr *hdr)
2691 static const char *elf_sec_name(const struct bpf_object *obj, Elf_Scn *scn)
2712 static Elf_Data *elf_sec_data(const struct bpf_object *obj, Elf_Scn *scn)
2730 static int elf_sym_by_sec_off(const struct bpf_object *obj, size_t sec_idx,
2802 static int bpf_object__elf_collect(struct bpf_object *obj)
3086 static int bpf_object__collect_externs(struct bpf_object *obj)
3260 bpf_object__find_program_by_title(const struct bpf_object *obj,
3272 static bool prog_is_subprog(const struct bpf_object *obj,
3291 bpf_object__find_program_by_name(const struct bpf_object *obj,
3305 static bool bpf_object__shndx_is_data(const struct bpf_object *obj,
3313 static bool bpf_object__shndx_is_maps(const struct bpf_object *obj,
3321 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx)
3342 struct bpf_object *obj = prog->obj;
3476 static struct bpf_program *find_prog_by_sec_insn(const struct bpf_object *obj,
3505 bpf_object__collect_prog_relos(struct bpf_object *obj, GElf_Shdr *shdr, Elf_Data *data)
3584 static int bpf_map_find_btf_info(struct bpf_object *obj, struct bpf_map *map)
3738 bpf_object__probe_loading(struct bpf_object *obj)
4141 bpf_object__populate_internal_map(struct bpf_object *obj, struct bpf_map *map)
4172 static int bpf_object__create_map(struct bpf_object *obj, struct bpf_map *map)
4289 bpf_object__create_maps(struct bpf_object *obj)
5894 bpf_object__relocate_core(struct bpf_object *obj, const char *targ_btf_path)
5931 /* bpf_object's ELF is gone by now so it's not easy to find
6004 bpf_object__relocate_data(struct bpf_object *obj, struct bpf_program *prog)
6055 static int adjust_prog_btf_ext_info(const struct bpf_object *obj,
6125 reloc_prog_func_and_line_info(const struct bpf_object *obj,
6213 bpf_object__reloc_code(struct bpf_object *obj, struct bpf_program *main_prog,
6400 bpf_object__relocate_calls(struct bpf_object *obj, struct bpf_program *prog)
6428 bpf_object__relocate(struct bpf_object *obj, const char *targ_btf_path)
6484 static int bpf_object__collect_st_ops_relos(struct bpf_object *obj,
6487 static int bpf_object__collect_map_relos(struct bpf_object *obj,
6615 static int bpf_object__collect_relos(struct bpf_object *obj)
6663 static int bpf_object__sanitize_prog(struct bpf_object* obj, struct bpf_program *prog)
6910 bpf_object__load_progs(struct bpf_object *obj, int log_level)
6941 static struct bpf_object *
6947 struct bpf_object *obj;
7019 static struct bpf_object *
7034 struct bpf_object *bpf_object__open_xattr(struct bpf_object_open_attr *attr)
7039 struct bpf_object *bpf_object__open(const char *path)
7049 struct bpf_object *
7060 struct bpf_object *
7070 struct bpf_object *
7087 int bpf_object__unload(struct bpf_object *obj)
7106 static int bpf_object__sanitize_maps(struct bpf_object *obj)
7124 static int bpf_object__read_kallsyms_file(struct bpf_object *obj)
7172 static int bpf_object__resolve_ksyms_btf_id(struct bpf_object *obj)
7233 static int bpf_object__resolve_externs(struct bpf_object *obj,
7322 struct bpf_object *obj;
7366 int bpf_object__load(struct bpf_object *obj)
7734 int bpf_object__pin_maps(struct bpf_object *obj, const char *path)
7787 int bpf_object__unpin_maps(struct bpf_object *obj, const char *path)
7822 int bpf_object__pin_programs(struct bpf_object *obj, const char *path)
7874 int bpf_object__unpin_programs(struct bpf_object *obj, const char *path)
7901 int bpf_object__pin(struct bpf_object *obj, const char *path)
7952 void bpf_object__close(struct bpf_object *obj)
7987 struct bpf_object *
7988 bpf_object__next(struct bpf_object *prev)
7990 struct bpf_object *next;
7994 struct bpf_object,
8006 const char *bpf_object__name(const struct bpf_object *obj)
8011 unsigned int bpf_object__kversion(const struct bpf_object *obj)
8016 struct btf *bpf_object__btf(const struct bpf_object *obj)
8021 int bpf_object__btf_fd(const struct bpf_object *obj)
8026 int bpf_object__set_priv(struct bpf_object *obj, void *priv,
8037 void *bpf_object__priv(const struct bpf_object *obj)
8043 __bpf_program__iter(const struct bpf_program *p, const struct bpf_object *obj,
8069 bpf_program__next(struct bpf_program *prev, const struct bpf_object *obj)
8081 bpf_program__prev(struct bpf_program *next, const struct bpf_object *obj)
8538 static struct bpf_map *find_struct_ops_map_by_offset(struct bpf_object *obj,
8557 static int bpf_object__collect_st_ops_relos(struct bpf_object *obj,
8982 __bpf_map__iter(const struct bpf_map *m, const struct bpf_object *obj, int i)
9006 bpf_map__next(const struct bpf_map *prev, const struct bpf_object *obj)
9015 bpf_map__prev(const struct bpf_map *next, const struct bpf_object *obj)
9027 bpf_object__find_map_by_name(const struct bpf_object *obj, const char *name)
9039 bpf_object__find_map_fd_by_name(const struct bpf_object *obj, const char *name)
9045 bpf_object__find_map_by_offset(struct bpf_object *obj, size_t offset)
9056 struct bpf_object **pobj, int *prog_fd)
9069 struct bpf_object **pobj, int *prog_fd)
9073 struct bpf_object *obj;
10794 struct bpf_object *obj;