Lines Matching +defs:obj +defs:m
271 struct bpf_object *obj; member
559 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
609 bpf_object__add_programs(struct bpf_object *obj, Elf_Data *sec_data, in bpf_object__add_programs()
691 struct btf_member *m; in find_member_by_offset() local
706 struct btf_member *m; in find_member_by_name() local
916 static int bpf_object__init_kern_struct_ops_maps(struct bpf_object *obj) in bpf_object__init_kern_struct_ops_maps()
937 static int bpf_object__init_struct_ops_maps(struct bpf_object *obj) in bpf_object__init_struct_ops_maps()
1035 struct bpf_object *obj; in bpf_object__new() local
1083 static void bpf_object__elf_finish(struct bpf_object *obj) in bpf_object__elf_finish()
1110 static int bpf_object__elf_init(struct bpf_object *obj) in bpf_object__elf_init()
1182 static int bpf_object__check_endianness(struct bpf_object *obj) in bpf_object__check_endianness()
1198 bpf_object__init_license(struct bpf_object *obj, void *data, size_t size) in bpf_object__init_license()
1206 bpf_object__init_kversion(struct bpf_object *obj, void *data, size_t size) in bpf_object__init_kversion()
1228 int bpf_object__section_size(const struct bpf_object *obj, const char *name, in bpf_object__section_size()
1261 int bpf_object__variable_offset(const struct bpf_object *obj, const char *name, in bpf_object__variable_offset()
1295 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj) in bpf_object__add_map()
1339 static char *internal_map_name(struct bpf_object *obj, in internal_map_name()
1360 bpf_object__init_internal_map(struct bpf_object *obj, enum libbpf_map_type type, in bpf_object__init_internal_map()
1410 static int bpf_object__init_global_data_maps(struct bpf_object *obj) in bpf_object__init_global_data_maps()
1447 static struct extern_desc *find_extern_by_name(const struct bpf_object *obj, in find_extern_by_name()
1593 static int bpf_object__process_kconfig_line(struct bpf_object *obj, in bpf_object__process_kconfig_line()
1654 static int bpf_object__read_kconfig_file(struct bpf_object *obj, void *data) in bpf_object__read_kconfig_file()
1692 static int bpf_object__read_kconfig_mem(struct bpf_object *obj, in bpf_object__read_kconfig_mem()
1719 static int bpf_object__init_kconfig_map(struct bpf_object *obj) in bpf_object__init_kconfig_map()
1746 static int bpf_object__init_user_maps(struct bpf_object *obj, bool strict) in bpf_object__init_user_maps()
1931 const struct btf_member *m, __u32 *res) in get_map_field_int()
1978 static int parse_btf_map_def(struct bpf_object *obj, in parse_btf_map_def()
1985 const struct btf_member *m; in parse_btf_map_def() local
2214 static int bpf_object__init_user_btf_map(struct bpf_object *obj, in bpf_object__init_user_btf_map()
2281 static int bpf_object__init_user_btf_maps(struct bpf_object *obj, bool strict, in bpf_object__init_user_btf_maps()
2333 static int bpf_object__init_maps(struct bpf_object *obj, in bpf_object__init_maps()
2354 static bool section_have_execinstr(struct bpf_object *obj, int idx) in section_have_execinstr()
2364 static bool btf_needs_sanitization(struct bpf_object *obj) in btf_needs_sanitization()
2373 static void bpf_object__sanitize_btf(struct bpf_object *obj, struct btf *btf) in bpf_object__sanitize_btf()
2397 struct btf_member *m = btf_members(t); in bpf_object__sanitize_btf() local
2433 static bool libbpf_needs_btf(const struct bpf_object *obj) in libbpf_needs_btf()
2440 static bool kernel_needs_btf(const struct bpf_object *obj) in kernel_needs_btf()
2445 static int bpf_object__init_btf(struct bpf_object *obj, in bpf_object__init_btf()
2487 static int bpf_object__finalize_btf(struct bpf_object *obj) in bpf_object__finalize_btf()
2518 static int bpf_object__load_vmlinux_btf(struct bpf_object *obj) in bpf_object__load_vmlinux_btf()
2561 static int bpf_object__sanitize_and_load_btf(struct bpf_object *obj) in bpf_object__sanitize_and_load_btf()
2616 static const char *elf_sym_str(const struct bpf_object *obj, size_t off) in elf_sym_str()
2630 static const char *elf_sec_str(const struct bpf_object *obj, size_t off) in elf_sec_str()
2644 static Elf_Scn *elf_sec_by_idx(const struct bpf_object *obj, size_t idx) in elf_sec_by_idx()
2657 static Elf_Scn *elf_sec_by_name(const struct bpf_object *obj, const char *name) in elf_sec_by_name()
2676 static int elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn, GElf_Shdr *hdr) in elf_sec_hdr()
2690 static const char *elf_sec_name(const struct bpf_object *obj, Elf_Scn *scn) in elf_sec_name()
2711 static Elf_Data *elf_sec_data(const struct bpf_object *obj, Elf_Scn *scn) in elf_sec_data()
2729 static int elf_sym_by_sec_off(const struct bpf_object *obj, size_t sec_idx, in elf_sym_by_sec_off()
2801 static int bpf_object__elf_collect(struct bpf_object *obj) in bpf_object__elf_collect()
3085 static int bpf_object__collect_externs(struct bpf_object *obj) in bpf_object__collect_externs()
3259 bpf_object__find_program_by_title(const struct bpf_object *obj, in bpf_object__find_program_by_title()
3271 static bool prog_is_subprog(const struct bpf_object *obj, in prog_is_subprog()
3290 bpf_object__find_program_by_name(const struct bpf_object *obj, in bpf_object__find_program_by_name()
3304 static bool bpf_object__shndx_is_data(const struct bpf_object *obj, in bpf_object__shndx_is_data()
3312 static bool bpf_object__shndx_is_maps(const struct bpf_object *obj, in bpf_object__shndx_is_maps()
3320 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) in bpf_object__section_to_libbpf_map_type()
3341 struct bpf_object *obj = prog->obj; in bpf_program__record_reloc() local
3475 static struct bpf_program *find_prog_by_sec_insn(const struct bpf_object *obj, in find_prog_by_sec_insn()
3478 int l = 0, r = obj->nr_programs - 1, m; in find_prog_by_sec_insn() local
3501 bpf_object__collect_prog_relos(struct bpf_object *obj, GElf_Shdr *shdr, Elf_Data *data) in bpf_object__collect_prog_relos()
3580 static int bpf_map_find_btf_info(struct bpf_object *obj, struct bpf_map *map) in bpf_map_find_btf_info()
3691 bpf_object__probe_loading(struct bpf_object *obj) in bpf_object__probe_loading()
4090 bpf_object__populate_internal_map(struct bpf_object *obj, struct bpf_map *map) in bpf_object__populate_internal_map()
4121 static int bpf_object__create_map(struct bpf_object *obj, struct bpf_map *map) in bpf_object__create_map()
4240 bpf_object__create_maps(struct bpf_object *obj) in bpf_object__create_maps()
4530 const struct btf_member *m; in bpf_core_parse_spec() local
4770 const struct btf_member *local_member, *m; in bpf_core_match_member() local
5052 const struct btf_member *m; in bpf_core_calc_field_relo() local
5832 bpf_object__relocate_core(struct bpf_object *obj, const char *targ_btf_path) in bpf_object__relocate_core()
5934 bpf_object__relocate_data(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_data()
5985 static int adjust_prog_btf_ext_info(const struct bpf_object *obj, in adjust_prog_btf_ext_info()
6055 reloc_prog_func_and_line_info(const struct bpf_object *obj, in reloc_prog_func_and_line_info()
6143 bpf_object__reloc_code(struct bpf_object *obj, struct bpf_program *main_prog, in bpf_object__reloc_code()
6330 bpf_object__relocate_calls(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_calls()
6358 bpf_object__relocate(struct bpf_object *obj, const char *targ_btf_path) in bpf_object__relocate()
6417 static int bpf_object__collect_map_relos(struct bpf_object *obj, in bpf_object__collect_map_relos()
6545 static int bpf_object__collect_relos(struct bpf_object *obj) in bpf_object__collect_relos()
6593 static int bpf_object__sanitize_prog(struct bpf_object* obj, struct bpf_program *prog) in bpf_object__sanitize_prog()
6840 bpf_object__load_progs(struct bpf_object *obj, int log_level) in bpf_object__load_progs()
6877 struct bpf_object *obj; in __bpf_object__open() local
7015 int bpf_object__unload(struct bpf_object *obj) in bpf_object__unload()
7034 static int bpf_object__sanitize_maps(struct bpf_object *obj) in bpf_object__sanitize_maps()
7036 struct bpf_map *m; in bpf_object__sanitize_maps() local
7052 static int bpf_object__read_kallsyms_file(struct bpf_object *obj) in bpf_object__read_kallsyms_file()
7100 static int bpf_object__resolve_ksyms_btf_id(struct bpf_object *obj) in bpf_object__resolve_ksyms_btf_id()
7161 static int bpf_object__resolve_externs(struct bpf_object *obj, in bpf_object__resolve_externs()
7250 struct bpf_object *obj; in bpf_object__load_xattr() local
7294 int bpf_object__load(struct bpf_object *obj) in bpf_object__load()
7652 int bpf_object__pin_maps(struct bpf_object *obj, const char *path) in bpf_object__pin_maps()
7704 int bpf_object__unpin_maps(struct bpf_object *obj, const char *path) in bpf_object__unpin_maps()
7738 int bpf_object__pin_programs(struct bpf_object *obj, const char *path) in bpf_object__pin_programs()
7790 int bpf_object__unpin_programs(struct bpf_object *obj, const char *path) in bpf_object__unpin_programs()
7817 int bpf_object__pin(struct bpf_object *obj, const char *path) in bpf_object__pin()
7868 void bpf_object__close(struct bpf_object *obj) in bpf_object__close()
7922 const char *bpf_object__name(const struct bpf_object *obj) in bpf_object__name()
7927 unsigned int bpf_object__kversion(const struct bpf_object *obj) in bpf_object__kversion()
7932 struct btf *bpf_object__btf(const struct bpf_object *obj) in bpf_object__btf()
7937 int bpf_object__btf_fd(const struct bpf_object *obj) in bpf_object__btf_fd()
7942 int bpf_object__set_priv(struct bpf_object *obj, void *priv, in bpf_object__set_priv()
7953 void *bpf_object__priv(const struct bpf_object *obj) in bpf_object__priv()
7959 __bpf_program__iter(const struct bpf_program *p, const struct bpf_object *obj, in __bpf_program__iter()
7985 bpf_program__next(struct bpf_program *prev, const struct bpf_object *obj) in bpf_program__next()
7997 bpf_program__prev(struct bpf_program *next, const struct bpf_object *obj) in bpf_program__prev()
8454 static struct bpf_map *find_struct_ops_map_by_offset(struct bpf_object *obj, in find_struct_ops_map_by_offset()
8473 static int bpf_object__collect_st_ops_relos(struct bpf_object *obj, in bpf_object__collect_st_ops_relos()
8898 __bpf_map__iter(const struct bpf_map *m, const struct bpf_object *obj, int i) in __bpf_map__iter()
8922 bpf_map__next(const struct bpf_map *prev, const struct bpf_object *obj) in bpf_map__next()
8931 bpf_map__prev(const struct bpf_map *next, const struct bpf_object *obj) in bpf_map__prev()
8943 bpf_object__find_map_by_name(const struct bpf_object *obj, const char *name) in bpf_object__find_map_by_name()
8955 bpf_object__find_map_fd_by_name(const struct bpf_object *obj, const char *name) in bpf_object__find_map_fd_by_name()
8961 bpf_object__find_map_by_offset(struct bpf_object *obj, size_t offset) in bpf_object__find_map_by_offset()
8989 struct bpf_object *obj; in bpf_prog_load_xattr() local
10710 struct bpf_object *obj; in bpf_object__open_skeleton() local