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()
1361 int sec_idx, void *data, size_t data_sz) in bpf_object__init_internal_map() argument
1372 map->sec_idx = sec_idx; in bpf_object__init_internal_map()
1390 map->name, map->sec_idx, map->sec_offset, def->map_flags); in bpf_object__init_internal_map()
1820 map->sec_idx = sym.st_shndx; in bpf_object__init_user_maps()
1823 map_name, map->sec_idx, map->sec_offset); in bpf_object__init_user_maps()
2156 map->inner_map->sec_idx = obj->efile.btf_maps_shndx; in parse_btf_map_def()
2216 int var_idx, int sec_idx, in bpf_object__init_user_btf_map() argument
2272 map->sec_idx = sec_idx; in bpf_object__init_user_btf_map()
2276 map_name, map->sec_idx, map->sec_offset); in bpf_object__init_user_btf_map()
2729 static int elf_sym_by_sec_off(const struct bpf_object *obj, size_t sec_idx, in elf_sym_by_sec_off() argument
2739 if (sym->st_shndx != sec_idx || sym->st_value != off) in elf_sym_by_sec_off()
2794 if (a->sec_idx != b->sec_idx) in cmp_progs()
2795 return a->sec_idx < b->sec_idx ? -1 : 1; in cmp_progs()
3286 return prog->sec_idx == obj->efile.text_shndx && obj->nr_programs > 1; in prog_is_subprog()
3421 map->sec_idx != sym->st_shndx || in bpf_program__record_reloc()
3425 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
3452 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
3476 size_t sec_idx, size_t insn_idx) in find_prog_by_sec_insn() argument
3485 if (prog->sec_idx < sec_idx || in find_prog_by_sec_insn()
3486 (prog->sec_idx == sec_idx && prog->sec_insn_off <= insn_idx)) in find_prog_by_sec_insn()
3495 if (prog->sec_idx == sec_idx && prog_contains_insn(prog, insn_idx)) in find_prog_by_sec_insn()
3505 size_t sec_idx = shdr->sh_info; in bpf_object__collect_prog_relos() local
3515 sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, sec_idx)); in bpf_object__collect_prog_relos()
3520 relo_sec_name, sec_idx, sec_name); in bpf_object__collect_prog_relos()
3555 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx); in bpf_object__collect_prog_relos()
3590 if (map->sec_idx == obj->efile.btf_maps_shndx || in bpf_map_find_btf_info()
5842 int i, err = 0, insn_idx, sec_idx; in bpf_object__relocate_core() local
5885 sec_idx = prog->sec_idx; in bpf_object__relocate_core()
5892 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx); in bpf_object__relocate_core()
6464 if (map->sec_idx != obj->efile.btf_maps_shndx) in bpf_object__collect_map_relos()