Lines Matching +defs:obj +defs:m

291 	struct bpf_object *obj;  member
611 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
661 bpf_object__add_programs(struct bpf_object *obj, Elf_Data *sec_data, in bpf_object__add_programs()
760 struct btf_member *m; in find_member_by_offset() local
775 struct btf_member *m; in find_member_by_name() local
985 static int bpf_object__init_kern_struct_ops_maps(struct bpf_object *obj) in bpf_object__init_kern_struct_ops_maps()
1006 static int bpf_object__init_struct_ops_maps(struct bpf_object *obj) in bpf_object__init_struct_ops_maps()
1104 struct bpf_object *obj; in bpf_object__new() local
1152 static void bpf_object__elf_finish(struct bpf_object *obj) in bpf_object__elf_finish()
1174 static int bpf_object__elf_init(struct bpf_object *obj) in bpf_object__elf_init()
1247 static int bpf_object__check_endianness(struct bpf_object *obj) in bpf_object__check_endianness()
1263 bpf_object__init_license(struct bpf_object *obj, void *data, size_t size) in bpf_object__init_license()
1271 bpf_object__init_kversion(struct bpf_object *obj, void *data, size_t size) in bpf_object__init_kversion()
1293 int bpf_object__section_size(const struct bpf_object *obj, const char *name, in bpf_object__section_size()
1326 int bpf_object__variable_offset(const struct bpf_object *obj, const char *name, in bpf_object__variable_offset()
1360 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj) in bpf_object__add_map()
1404 static char *internal_map_name(struct bpf_object *obj, in internal_map_name()
1425 bpf_object__init_internal_map(struct bpf_object *obj, enum libbpf_map_type type, in bpf_object__init_internal_map()
1475 static int bpf_object__init_global_data_maps(struct bpf_object *obj) in bpf_object__init_global_data_maps()
1512 static struct extern_desc *find_extern_by_name(const struct bpf_object *obj, in find_extern_by_name()
1658 static int bpf_object__process_kconfig_line(struct bpf_object *obj, in bpf_object__process_kconfig_line()
1719 static int bpf_object__read_kconfig_file(struct bpf_object *obj, void *data) in bpf_object__read_kconfig_file()
1757 static int bpf_object__read_kconfig_mem(struct bpf_object *obj, in bpf_object__read_kconfig_mem()
1784 static int bpf_object__init_kconfig_map(struct bpf_object *obj) in bpf_object__init_kconfig_map()
1811 static int bpf_object__init_user_maps(struct bpf_object *obj, bool strict) in bpf_object__init_user_maps()
2007 const struct btf_member *m, __u32 *res) in get_map_field_int()
2058 const struct btf_member *m; in parse_btf_map_def() local
2306 static int bpf_object__init_user_btf_map(struct bpf_object *obj, in bpf_object__init_user_btf_map()
2402 static int bpf_object__init_user_btf_maps(struct bpf_object *obj, bool strict, in bpf_object__init_user_btf_maps()
2454 static int bpf_object__init_maps(struct bpf_object *obj, in bpf_object__init_maps()
2473 static bool section_have_execinstr(struct bpf_object *obj, int idx) in section_have_execinstr()
2483 static bool btf_needs_sanitization(struct bpf_object *obj) in btf_needs_sanitization()
2493 static void bpf_object__sanitize_btf(struct bpf_object *obj, struct btf *btf) in bpf_object__sanitize_btf()
2518 struct btf_member *m = btf_members(t); in bpf_object__sanitize_btf() local
2561 static bool libbpf_needs_btf(const struct bpf_object *obj) in libbpf_needs_btf()
2568 static bool kernel_needs_btf(const struct bpf_object *obj) in kernel_needs_btf()
2573 static int bpf_object__init_btf(struct bpf_object *obj, in bpf_object__init_btf()
2613 static int bpf_object__finalize_btf(struct bpf_object *obj) in bpf_object__finalize_btf()
2644 static bool obj_needs_vmlinux_btf(const struct bpf_object *obj) in obj_needs_vmlinux_btf()
2674 static int bpf_object__load_vmlinux_btf(struct bpf_object *obj, bool force) in bpf_object__load_vmlinux_btf()
2695 static int bpf_object__sanitize_and_load_btf(struct bpf_object *obj) in bpf_object__sanitize_and_load_btf()
2796 static const char *elf_sym_str(const struct bpf_object *obj, size_t off) in elf_sym_str()
2810 static const char *elf_sec_str(const struct bpf_object *obj, size_t off) in elf_sec_str()
2824 static Elf_Scn *elf_sec_by_idx(const struct bpf_object *obj, size_t idx) in elf_sec_by_idx()
2837 static Elf_Scn *elf_sec_by_name(const struct bpf_object *obj, const char *name) in elf_sec_by_name()
2856 static int elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn, GElf_Shdr *hdr) in elf_sec_hdr()
2870 static const char *elf_sec_name(const struct bpf_object *obj, Elf_Scn *scn) in elf_sec_name()
2891 static Elf_Data *elf_sec_data(const struct bpf_object *obj, Elf_Scn *scn) in elf_sec_data()
2961 static int bpf_object__elf_collect(struct bpf_object *obj) in bpf_object__elf_collect()
3305 static int bpf_object__collect_externs(struct bpf_object *obj) in bpf_object__collect_externs()
3520 bpf_object__find_program_by_title(const struct bpf_object *obj, in bpf_object__find_program_by_title()
3532 static bool prog_is_subprog(const struct bpf_object *obj, in prog_is_subprog()
3551 bpf_object__find_program_by_name(const struct bpf_object *obj, in bpf_object__find_program_by_name()
3565 static bool bpf_object__shndx_is_data(const struct bpf_object *obj, in bpf_object__shndx_is_data()
3573 static bool bpf_object__shndx_is_maps(const struct bpf_object *obj, in bpf_object__shndx_is_maps()
3581 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) in bpf_object__section_to_libbpf_map_type()
3602 struct bpf_object *obj = prog->obj; in bpf_program__record_reloc() local
3754 static struct bpf_program *find_prog_by_sec_insn(const struct bpf_object *obj, in find_prog_by_sec_insn()
3757 int l = 0, r = obj->nr_programs - 1, m; in find_prog_by_sec_insn() local
3780 bpf_object__collect_prog_relos(struct bpf_object *obj, GElf_Shdr *shdr, Elf_Data *data) in bpf_object__collect_prog_relos()
3865 static int bpf_map_find_btf_info(struct bpf_object *obj, struct bpf_map *map) in bpf_map_find_btf_info()
4022 bpf_object__probe_loading(struct bpf_object *obj) in bpf_object__probe_loading()
4428 static bool kernel_supports(const struct bpf_object *obj, enum kern_feature_id feat_id) in kernel_supports()
4519 bpf_object__populate_internal_map(struct bpf_object *obj, struct bpf_map *map) in bpf_object__populate_internal_map()
4557 static int bpf_object__create_map(struct bpf_object *obj, struct bpf_map *map, bool is_inner) in bpf_object__create_map()
4653 static int init_map_slots(struct bpf_object *obj, struct bpf_map *map) in init_map_slots()
4690 bpf_object__create_maps(struct bpf_object *obj) in bpf_object__create_maps()
4853 static int load_module_btfs(struct bpf_object *obj) in load_module_btfs()
4946 bpf_core_find_cands(struct bpf_object *obj, const struct btf *local_btf, __u32 local_type_id) in bpf_core_find_cands()
5174 bpf_object__relocate_core(struct bpf_object *obj, const char *targ_btf_path) in bpf_object__relocate_core()
5275 bpf_object__relocate_data(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_data()
5352 static int adjust_prog_btf_ext_info(const struct bpf_object *obj, in adjust_prog_btf_ext_info()
5422 reloc_prog_func_and_line_info(const struct bpf_object *obj, in reloc_prog_func_and_line_info()
5534 bpf_object__reloc_code(struct bpf_object *obj, struct bpf_program *main_prog, in bpf_object__reloc_code()
5741 bpf_object__relocate_calls(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_calls()
5766 bpf_object__free_relocs(struct bpf_object *obj) in bpf_object__free_relocs()
5780 bpf_object__relocate(struct bpf_object *obj, const char *targ_btf_path) in bpf_object__relocate()
5856 static int bpf_object__collect_map_relos(struct bpf_object *obj, in bpf_object__collect_map_relos()
5984 static int bpf_object__collect_relos(struct bpf_object *obj) 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()
6210 struct bpf_object *obj = prog->obj; in bpf_program__record_externs() local
6337 bpf_object__load_progs(struct bpf_object *obj, int log_level) in bpf_object__load_progs()
6376 struct bpf_object *obj; in __bpf_object__open() local
6532 int bpf_object__unload(struct bpf_object *obj) in bpf_object__unload()
6551 static int bpf_object__sanitize_maps(struct bpf_object *obj) in bpf_object__sanitize_maps()
6553 struct bpf_map *m; in bpf_object__sanitize_maps() local
6569 static int bpf_object__read_kallsyms_file(struct bpf_object *obj) in bpf_object__read_kallsyms_file()
6622 static int find_ksym_btf_id(struct bpf_object *obj, const char *ksym_name, in find_ksym_btf_id()
6655 static int bpf_object__resolve_ksym_var_btf_id(struct bpf_object *obj, in bpf_object__resolve_ksym_var_btf_id()
6707 static int bpf_object__resolve_ksym_func_btf_id(struct bpf_object *obj, in bpf_object__resolve_ksym_func_btf_id()
6751 static int bpf_object__resolve_ksyms_btf_id(struct bpf_object *obj) in bpf_object__resolve_ksyms_btf_id()
6779 static int bpf_object__resolve_externs(struct bpf_object *obj, in bpf_object__resolve_externs()
6868 struct bpf_object *obj; in bpf_object__load_xattr() local
6934 int bpf_object__load(struct bpf_object *obj) in bpf_object__load()
7308 int bpf_object__pin_maps(struct bpf_object *obj, const char *path) in bpf_object__pin_maps()
7361 int bpf_object__unpin_maps(struct bpf_object *obj, const char *path) in bpf_object__unpin_maps()
7396 int bpf_object__pin_programs(struct bpf_object *obj, const char *path) in bpf_object__pin_programs()
7448 int bpf_object__unpin_programs(struct bpf_object *obj, const char *path) in bpf_object__unpin_programs()
7475 int bpf_object__pin(struct bpf_object *obj, const char *path) in bpf_object__pin()
7526 void bpf_object__close(struct bpf_object *obj) in bpf_object__close()
7582 const char *bpf_object__name(const struct bpf_object *obj) in bpf_object__name()
7587 unsigned int bpf_object__kversion(const struct bpf_object *obj) in bpf_object__kversion()
7592 struct btf *bpf_object__btf(const struct bpf_object *obj) in bpf_object__btf()
7597 int bpf_object__btf_fd(const struct bpf_object *obj) in bpf_object__btf_fd()
7602 int bpf_object__set_kversion(struct bpf_object *obj, __u32 kern_version) in bpf_object__set_kversion()
7612 int bpf_object__set_priv(struct bpf_object *obj, void *priv, in bpf_object__set_priv()
7623 void *bpf_object__priv(const struct bpf_object *obj) in bpf_object__priv()
7628 int bpf_object__gen_loader(struct bpf_object *obj, struct gen_loader_opts *opts) in bpf_object__gen_loader()
7645 __bpf_program__iter(const struct bpf_program *p, const struct bpf_object *obj, in __bpf_program__iter()
7671 bpf_program__next(struct bpf_program *prev, const struct bpf_object *obj) in bpf_program__next()
7683 bpf_program__prev(struct bpf_program *next, const struct bpf_object *obj) in bpf_program__prev()
8145 static struct bpf_map *find_struct_ops_map_by_offset(struct bpf_object *obj, in find_struct_ops_map_by_offset()
8164 static int bpf_object__collect_st_ops_relos(struct bpf_object *obj, in bpf_object__collect_st_ops_relos()
8391 static int find_kernel_btf_id(struct bpf_object *obj, const char *attach_name, in find_kernel_btf_id()
8679 __bpf_map__iter(const struct bpf_map *m, const struct bpf_object *obj, int i) in __bpf_map__iter()
8703 bpf_map__next(const struct bpf_map *prev, const struct bpf_object *obj) in bpf_map__next()
8712 bpf_map__prev(const struct bpf_map *next, const struct bpf_object *obj) in bpf_map__prev()
8724 bpf_object__find_map_by_name(const struct bpf_object *obj, const char *name) in bpf_object__find_map_by_name()
8736 bpf_object__find_map_fd_by_name(const struct bpf_object *obj, const char *name) in bpf_object__find_map_fd_by_name()
8742 bpf_object__find_map_by_offset(struct bpf_object *obj, size_t offset) in bpf_object__find_map_by_offset()
8781 struct bpf_object *obj; in bpf_prog_load_xattr() local
10653 struct bpf_object *obj; in bpf_object__open_skeleton() local