Lines Matching +defs:obj +defs:n
473 struct bpf_object *obj; member
544 struct bpf_object *obj; member
805 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
866 bpf_object__add_programs(struct bpf_object *obj, Elf_Data *sec_data, in bpf_object__add_programs()
952 static void bpf_object_bswap_progs(struct bpf_object *obj) in bpf_object_bswap_progs()
1004 find_struct_ops_kern_types(struct bpf_object *obj, const char *tname_raw, in find_struct_ops_kern_types()
1074 static bool is_valid_st_ops_program(struct bpf_object *obj, in is_valid_st_ops_program()
1092 static int bpf_object_adjust_struct_ops_autoload(struct bpf_object *obj) in bpf_object_adjust_struct_ops_autoload()
1138 struct bpf_object *obj = map->obj; in bpf_map__init_kern_struct_ops() local
1332 static int bpf_object__init_kern_struct_ops_maps(struct bpf_object *obj) in bpf_object__init_kern_struct_ops_maps()
1355 static int init_struct_ops_maps(struct bpf_object *obj, const char *sec_name, in init_struct_ops_maps()
1459 static int bpf_object_init_struct_ops(struct bpf_object *obj) in bpf_object_init_struct_ops()
1487 struct bpf_object *obj; in bpf_object__new() local
1525 static void bpf_object__elf_finish(struct bpf_object *obj) in bpf_object__elf_finish()
1543 static int bpf_object__elf_init(struct bpf_object *obj) in bpf_object__elf_init()
1633 static bool is_native_endianness(struct bpf_object *obj) in is_native_endianness()
1645 bpf_object__init_license(struct bpf_object *obj, void *data, size_t size) in bpf_object__init_license()
1660 bpf_object__init_kversion(struct bpf_object *obj, void *data, size_t size) in bpf_object__init_kversion()
1682 static int find_elf_sec_sz(const struct bpf_object *obj, const char *name, __u32 *size) in find_elf_sec_sz()
1700 static Elf64_Sym *find_elf_var_sym(const struct bpf_object *obj, const char *name) in find_elf_var_sym()
1763 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj) in bpf_object__add_map()
1840 static char *internal_map_name(struct bpf_object *obj, const char *real_name) in internal_map_name()
1906 static bool map_is_mmapable(struct bpf_object *obj, struct bpf_map *map) in map_is_mmapable()
1910 int i, n; in map_is_mmapable() local
1933 bpf_object__init_internal_map(struct bpf_object *obj, enum libbpf_map_type type, in bpf_object__init_internal_map()
1992 static int bpf_object__init_global_data_maps(struct bpf_object *obj) in bpf_object__init_global_data_maps()
2042 static struct extern_desc *find_extern_by_name(const struct bpf_object *obj, in find_extern_by_name()
2054 static struct extern_desc *find_extern_by_name_with_len(const struct bpf_object *obj, in find_extern_by_name_with_len()
2218 static int bpf_object__process_kconfig_line(struct bpf_object *obj, in bpf_object__process_kconfig_line()
2282 static int bpf_object__read_kconfig_file(struct bpf_object *obj, void *data) in bpf_object__read_kconfig_file()
2320 static int bpf_object__read_kconfig_mem(struct bpf_object *obj, in bpf_object__read_kconfig_mem()
2347 static int bpf_object__init_kconfig_map(struct bpf_object *obj) in bpf_object__init_kconfig_map()
2865 static int bpf_object__init_user_btf_map(struct bpf_object *obj, in bpf_object__init_user_btf_map()
2967 static int init_arena_map_data(struct bpf_object *obj, struct bpf_map *map, in init_arena_map_data()
2993 static int bpf_object__init_user_btf_maps(struct bpf_object *obj, bool strict, in bpf_object__init_user_btf_maps()
3072 static int bpf_object__init_maps(struct bpf_object *obj, in bpf_object__init_maps()
3090 static bool section_have_execinstr(struct bpf_object *obj, int idx) in section_have_execinstr()
3106 static bool btf_needs_sanitization(struct bpf_object *obj) in btf_needs_sanitization()
3121 static int bpf_object__sanitize_btf(struct bpf_object *obj, struct btf *btf) in bpf_object__sanitize_btf()
3230 static bool libbpf_needs_btf(const struct bpf_object *obj) in libbpf_needs_btf()
3237 static bool kernel_needs_btf(const struct bpf_object *obj) in kernel_needs_btf()
3242 static int bpf_object__init_btf(struct bpf_object *obj, in bpf_object__init_btf()
3330 static int btf_fixup_datasec(struct bpf_object *obj, struct btf *btf, in btf_fixup_datasec()
3423 static int bpf_object_fixup_btf(struct bpf_object *obj) in bpf_object_fixup_btf()
3425 int i, n, err = 0; in bpf_object_fixup_btf() local
3469 static bool obj_needs_vmlinux_btf(const struct bpf_object *obj) in obj_needs_vmlinux_btf()
3505 static int bpf_object__load_vmlinux_btf(struct bpf_object *obj, bool force) in bpf_object__load_vmlinux_btf()
3526 static int bpf_object__sanitize_and_load_btf(struct bpf_object *obj) in bpf_object__sanitize_and_load_btf()
3556 int j, n; in bpf_object__sanitize_and_load_btf() local
3634 static const char *elf_sym_str(const struct bpf_object *obj, size_t off) in elf_sym_str()
3648 static const char *elf_sec_str(const struct bpf_object *obj, size_t off) in elf_sec_str()
3662 static Elf_Scn *elf_sec_by_idx(const struct bpf_object *obj, size_t idx) in elf_sec_by_idx()
3675 static Elf_Scn *elf_sec_by_name(const struct bpf_object *obj, const char *name) in elf_sec_by_name()
3694 static Elf64_Shdr *elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn) in elf_sec_hdr()
3711 static const char *elf_sec_name(const struct bpf_object *obj, Elf_Scn *scn) in elf_sec_name()
3733 static Elf_Data *elf_sec_data(const struct bpf_object *obj, Elf_Scn *scn) in elf_sec_data()
3751 static Elf64_Sym *elf_sym_by_idx(const struct bpf_object *obj, size_t idx) in elf_sym_by_idx()
3819 static int bpf_object__elf_collect(struct bpf_object *obj) in bpf_object__elf_collect()
4040 int i, n; in find_extern_btf_id() local
4072 int i, j, n; in find_extern_sec_btf_id() local
4164 int i, n; in find_int_btf_id() local
4216 static int bpf_object__collect_externs(struct bpf_object *obj) in bpf_object__collect_externs()
4221 int i, n, off, dummy_var_btf_id; in bpf_object__collect_externs() local
4435 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog) in prog_is_subprog()
4441 bpf_object__find_program_by_name(const struct bpf_object *obj, in bpf_object__find_program_by_name()
4455 static bool bpf_object__shndx_is_data(const struct bpf_object *obj, in bpf_object__shndx_is_data()
4468 static bool bpf_object__shndx_is_maps(const struct bpf_object *obj, in bpf_object__shndx_is_maps()
4475 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) in bpf_object__section_to_libbpf_map_type()
4499 struct bpf_object *obj = prog->obj; in bpf_program__record_reloc() local
4513 int i, n = obj->nr_extern; in bpf_program__record_reloc() local
4660 static struct bpf_program *find_prog_by_sec_insn(const struct bpf_object *obj, in find_prog_by_sec_insn()
4689 bpf_object__collect_prog_relos(struct bpf_object *obj, Elf64_Shdr *shdr, Elf_Data *data) in bpf_object__collect_prog_relos()
4788 static int map_fill_btf_type_info(struct bpf_object *obj, struct bpf_map *map) in map_fill_btf_type_info()
4972 static int bpf_object_prepare_token(struct bpf_object *obj) in bpf_object_prepare_token()
5025 bpf_object__probe_loading(struct bpf_object *obj) in bpf_object__probe_loading()
5060 bool kernel_supports(const struct bpf_object *obj, enum kern_feature_id feat_id) in kernel_supports()
5136 bpf_object__populate_internal_map(struct bpf_object *obj, struct bpf_map *map) in bpf_object__populate_internal_map()
5205 static int bpf_object__create_map(struct bpf_object *obj, struct bpf_map *map, bool is_inner) in bpf_object__create_map()
5333 static int init_map_in_map_slots(struct bpf_object *obj, struct bpf_map *map) in init_map_in_map_slots()
5369 static int init_prog_array_slots(struct bpf_object *obj, struct bpf_map *map) in init_prog_array_slots()
5402 static int bpf_object_init_prog_arrays(struct bpf_object *obj) in bpf_object_init_prog_arrays()
5439 bpf_object__create_maps(struct bpf_object *obj) in bpf_object__create_maps()
5569 size_t n = strlen(name); in bpf_core_essential_name_len() local
5599 int n, i; in bpf_core_add_cands() local
5640 static int load_module_btfs(struct bpf_object *obj) in load_module_btfs()
5737 bpf_core_find_cands(struct bpf_object *obj, const struct btf *local_btf, __u32 local_type_id) in bpf_core_find_cands()
5916 bpf_object__relocate_core(struct bpf_object *obj, const char *targ_btf_path) in bpf_object__relocate_core()
6094 bpf_object__relocate_data(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_data()
6189 static int adjust_prog_btf_ext_info(const struct bpf_object *obj, in adjust_prog_btf_ext_info()
6258 reloc_prog_func_and_line_info(const struct bpf_object *obj, in reloc_prog_func_and_line_info()
6377 bpf_object__append_subprog_code(struct bpf_object *obj, struct bpf_program *main_prog, in bpf_object__append_subprog_code()
6409 bpf_object__reloc_code(struct bpf_object *obj, struct bpf_program *main_prog, in bpf_object__reloc_code()
6599 bpf_object__relocate_calls(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_calls()
6623 bpf_object__free_relocs(struct bpf_object *obj) in bpf_object__free_relocs()
6651 static void bpf_object__sort_relos(struct bpf_object *obj) in bpf_object__sort_relos()
6665 static int bpf_prog_assign_exc_cb(struct bpf_object *obj, struct bpf_program *prog) in bpf_prog_assign_exc_cb()
6669 int i, j, n; in bpf_prog_assign_exc_cb() local
6927 static int bpf_program_fixup_func_info(struct bpf_object *obj, struct bpf_program *prog) in bpf_program_fixup_func_info()
6936 int i, n, arg_idx, arg_cnt, err, rec_idx; in bpf_program_fixup_func_info() local
7066 static int bpf_object__relocate(struct bpf_object *obj, const char *targ_btf_path) in bpf_object__relocate()
7177 static int bpf_object__collect_map_relos(struct bpf_object *obj, in bpf_object__collect_map_relos()
7314 static int bpf_object__collect_relos(struct bpf_object *obj) in bpf_object__collect_relos()
7363 static int bpf_object__sanitize_prog(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__sanitize_prog()
7469 static int bpf_object_load_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object_load_prog()
7750 struct bpf_object *obj = prog->obj; in fixup_log_missing_map_load() local
7783 struct bpf_object *obj = prog->obj; in fixup_log_missing_kfunc_call() local
7856 struct bpf_object *obj = prog->obj; in bpf_program_record_relos() local
7898 bpf_object__load_progs(struct bpf_object *obj, int log_level) in bpf_object__load_progs()
7929 static int bpf_object_prepare_progs(struct bpf_object *obj) in bpf_object_prepare_progs()
7946 static int bpf_object_init_progs(struct bpf_object *obj, const struct bpf_object_open_opts *opts) in bpf_object_init_progs()
7984 struct bpf_object *obj; in bpf_object_open() local
8113 static int bpf_object_unload(struct bpf_object *obj) in bpf_object_unload()
8132 static int bpf_object__sanitize_maps(struct bpf_object *obj) in bpf_object__sanitize_maps()
8186 struct bpf_object *obj = ctx; in kallsyms_cb() local
8216 static int bpf_object__read_kallsyms_file(struct bpf_object *obj) in bpf_object__read_kallsyms_file()
8221 static int find_ksym_btf_id(struct bpf_object *obj, const char *ksym_name, in find_ksym_btf_id()
8255 static int bpf_object__resolve_ksym_var_btf_id(struct bpf_object *obj, in bpf_object__resolve_ksym_var_btf_id()
8308 static int bpf_object__resolve_ksym_func_btf_id(struct bpf_object *obj, in bpf_object__resolve_ksym_func_btf_id()
8380 static int bpf_object__resolve_ksyms_btf_id(struct bpf_object *obj) in bpf_object__resolve_ksyms_btf_id()
8408 static int bpf_object__resolve_externs(struct bpf_object *obj, in bpf_object__resolve_externs()
8540 static int bpf_object_prepare_struct_ops(struct bpf_object *obj) in bpf_object_prepare_struct_ops()
8560 static void bpf_object_unpin(struct bpf_object *obj) in bpf_object_unpin()
8570 static void bpf_object_post_load_cleanup(struct bpf_object *obj) in bpf_object_post_load_cleanup()
8591 static int bpf_object_prepare(struct bpf_object *obj, const char *target_btf_path) in bpf_object_prepare()
8623 static int bpf_object_load(struct bpf_object *obj, int extra_log_level, const char *target_btf_path) in bpf_object_load()
8675 int bpf_object__prepare(struct bpf_object *obj) in bpf_object__prepare()
8680 int bpf_object__load(struct bpf_object *obj) in bpf_object__load()
8919 int bpf_object__pin_maps(struct bpf_object *obj, const char *path) in bpf_object__pin_maps()
8967 int bpf_object__unpin_maps(struct bpf_object *obj, const char *path) in bpf_object__unpin_maps()
8997 int bpf_object__pin_programs(struct bpf_object *obj, const char *path) in bpf_object__pin_programs()
9034 int bpf_object__unpin_programs(struct bpf_object *obj, const char *path) in bpf_object__unpin_programs()
9057 int bpf_object__pin(struct bpf_object *obj, const char *path) in bpf_object__pin()
9074 int bpf_object__unpin(struct bpf_object *obj, const char *path) in bpf_object__unpin()
9118 void bpf_object__close(struct bpf_object *obj) in bpf_object__close()
9173 const char *bpf_object__name(const struct bpf_object *obj) in bpf_object__name()
9178 unsigned int bpf_object__kversion(const struct bpf_object *obj) in bpf_object__kversion()
9183 int bpf_object__token_fd(const struct bpf_object *obj) in bpf_object__token_fd()
9188 struct btf *bpf_object__btf(const struct bpf_object *obj) in bpf_object__btf()
9193 int bpf_object__btf_fd(const struct bpf_object *obj) in bpf_object__btf_fd()
9198 int bpf_object__set_kversion(struct bpf_object *obj, __u32 kern_version) in bpf_object__set_kversion()
9208 int bpf_object__gen_loader(struct bpf_object *obj, struct gen_loader_opts *opts) in bpf_object__gen_loader()
9226 __bpf_program__iter(const struct bpf_program *p, const struct bpf_object *obj, in __bpf_program__iter()
9252 bpf_object__next_program(const struct bpf_object *obj, struct bpf_program *prev) in bpf_object__next_program()
9264 bpf_object__prev_program(const struct bpf_object *obj, struct bpf_program *next) in bpf_object__prev_program()
9706 int i, n; in find_sec_def() local
9821 static struct bpf_map *find_struct_ops_map_by_offset(struct bpf_object *obj, in find_struct_ops_map_by_offset()
9844 static int bpf_object__collect_st_ops_relos(struct bpf_object *obj, in bpf_object__collect_st_ops_relos()
10063 static int find_kernel_btf_id(struct bpf_object *obj, const char *attach_name, in find_kernel_btf_id()
10486 __bpf_map__iter(const struct bpf_map *m, const struct bpf_object *obj, int i) in __bpf_map__iter()
10510 bpf_object__next_map(const struct bpf_object *obj, const struct bpf_map *prev) in bpf_object__next_map()
10519 bpf_object__prev_map(const struct bpf_object *obj, const struct bpf_map *next) in bpf_object__prev_map()
10531 bpf_object__find_map_by_name(const struct bpf_object *obj, const char *name) in bpf_object__find_map_by_name()
10558 bpf_object__find_map_fd_by_name(const struct bpf_object *obj, const char *name) in bpf_object__find_map_fd_by_name()
11062 int fd, n, err = 0; in append_to_file() local
11721 int n; in attach_kprobe() local
11778 int n; in attach_kprobe_multi() local
11810 int n; in attach_kprobe_session() local
11834 int n, ret = -EINVAL; in attach_uprobe_multi() local
12365 int n, c, ret = -EINVAL; in attach_uprobe() local
12432 struct bpf_object *obj = prog->obj; in bpf_program__attach_usdt() local
12483 int n, err; in attach_usdt() local
13416 int err, i, j, n; in __perf_buffer__new() local
13773 int err = 0, n, len, start, end = -1; in parse_cpu_mask_str() local
13852 int err, n, i, tmp_cpus; in libbpf_num_possible_cpus() local
13874 static int populate_skeleton_maps(const struct bpf_object *obj, in populate_skeleton_maps()
13899 static int populate_skeleton_progs(const struct bpf_object *obj, in populate_skeleton_progs()
13922 struct bpf_object *obj; in bpf_object__open_skeleton() local