Lines Matching refs:sec_idx

223 	size_t sec_idx;  member
337 int sec_idx; member
485 static int elf_sym_by_sec_off(const struct bpf_object *obj, size_t sec_idx,
534 prog->sec_idx = -1; in bpf_program__exit()
560 const char *name, size_t sec_idx, const char *sec_name, in bpf_object__init_prog() argument
572 prog->sec_idx = sec_idx; in bpf_object__init_prog()
610 const char *sec_name, int sec_idx) in bpf_object__add_programs() argument
624 if (elf_sym_by_sec_off(obj, sec_idx, sec_off, STT_FUNC, &sym)) { in bpf_object__add_programs()
663 err = bpf_object__init_prog(obj, prog, name, sec_idx, sec_name, in bpf_object__add_programs()
988 map->sec_idx = obj->efile.st_ops_shndx; in bpf_object__init_struct_ops_maps()
1362 int sec_idx, void *data, size_t data_sz) in bpf_object__init_internal_map() argument
1373 map->sec_idx = sec_idx; in bpf_object__init_internal_map()
1391 map->name, map->sec_idx, map->sec_offset, def->map_flags); in bpf_object__init_internal_map()
1821 map->sec_idx = sym.st_shndx; in bpf_object__init_user_maps()
1824 map_name, map->sec_idx, map->sec_offset); in bpf_object__init_user_maps()
2157 map->inner_map->sec_idx = obj->efile.btf_maps_shndx; in parse_btf_map_def()
2217 int var_idx, int sec_idx, in bpf_object__init_user_btf_map() argument
2273 map->sec_idx = sec_idx; in bpf_object__init_user_btf_map()
2277 map_name, map->sec_idx, map->sec_offset); in bpf_object__init_user_btf_map()
2730 static int elf_sym_by_sec_off(const struct bpf_object *obj, size_t sec_idx, in elf_sym_by_sec_off() argument
2740 if (sym->st_shndx != sec_idx || sym->st_value != off) in elf_sym_by_sec_off()
2795 if (a->sec_idx != b->sec_idx) in cmp_progs()
2796 return a->sec_idx < b->sec_idx ? -1 : 1; in cmp_progs()
3287 return prog->sec_idx == obj->efile.text_shndx && obj->nr_programs > 1; in prog_is_subprog()
3422 map->sec_idx != sym->st_shndx || in bpf_program__record_reloc()
3426 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
3453 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
3477 size_t sec_idx, size_t insn_idx) in find_prog_by_sec_insn() argument
3486 if (prog->sec_idx < sec_idx || in find_prog_by_sec_insn()
3487 (prog->sec_idx == sec_idx && prog->sec_insn_off <= insn_idx)) in find_prog_by_sec_insn()
3496 if (prog->sec_idx == sec_idx && prog_contains_insn(prog, insn_idx)) in find_prog_by_sec_insn()
3506 size_t sec_idx = shdr->sh_info; in bpf_object__collect_prog_relos() local
3516 sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, sec_idx)); in bpf_object__collect_prog_relos()
3521 relo_sec_name, sec_idx, sec_name); in bpf_object__collect_prog_relos()
3556 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx); in bpf_object__collect_prog_relos()
3591 if (map->sec_idx == obj->efile.btf_maps_shndx || in bpf_map_find_btf_info()
5901 int i, err = 0, insn_idx, sec_idx; in bpf_object__relocate_core() local
5945 sec_idx = prog->sec_idx; in bpf_object__relocate_core()
5952 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx); in bpf_object__relocate_core()
6531 if (map->sec_idx != obj->efile.btf_maps_shndx) in bpf_object__collect_map_relos()