Lines Matching refs:sec_idx
393 size_t sec_idx; member
513 int sec_idx; member
723 prog->sec_idx = -1; in bpf_program__exit()
748 const char *name, size_t sec_idx, const char *sec_name, in bpf_object__init_prog() argument
760 prog->sec_idx = sec_idx; in bpf_object__init_prog()
808 const char *sec_name, int sec_idx) in bpf_object__add_programs() argument
825 if (sym->st_shndx != sec_idx) in bpf_object__add_programs()
846 if (sec_idx != obj->efile.text_shndx && ELF64_ST_BIND(sym->st_info) == STB_LOCAL) { in bpf_object__add_programs()
869 err = bpf_object__init_prog(obj, prog, name, sec_idx, sec_name, in bpf_object__add_programs()
1192 map->sec_idx = shndx; in init_struct_ops_maps()
1636 const char *real_name, int sec_idx, void *data, size_t data_sz) in bpf_object__init_internal_map() argument
1648 map->sec_idx = sec_idx; in bpf_object__init_internal_map()
1673 map->name, map->sec_idx, map->sec_offset, def->map_flags); in bpf_object__init_internal_map()
1699 int err = 0, sec_idx; in bpf_object__init_global_data_maps() local
1704 for (sec_idx = 1; sec_idx < obj->efile.sec_cnt; sec_idx++) { in bpf_object__init_global_data_maps()
1705 sec_desc = &obj->efile.secs[sec_idx]; in bpf_object__init_global_data_maps()
1713 sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, sec_idx)); in bpf_object__init_global_data_maps()
1715 sec_name, sec_idx, in bpf_object__init_global_data_maps()
1721 sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, sec_idx)); in bpf_object__init_global_data_maps()
1723 sec_name, sec_idx, in bpf_object__init_global_data_maps()
1728 sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, sec_idx)); in bpf_object__init_global_data_maps()
1730 sec_name, sec_idx, in bpf_object__init_global_data_maps()
2516 int var_idx, int sec_idx, in bpf_object__init_user_btf_map() argument
2573 map->sec_idx = sec_idx; in bpf_object__init_user_btf_map()
2577 map_name, map->sec_idx, map->sec_offset); in bpf_object__init_user_btf_map()
2598 map->inner_map->sec_idx = sec_idx; in bpf_object__init_user_btf_map()
3378 if (a->sec_idx != b->sec_idx) in cmp_progs()
3379 return a->sec_idx < b->sec_idx ? -1 : 1; in cmp_progs()
3992 return prog->sec_idx == obj->efile.text_shndx && obj->nr_programs > 1; in prog_is_subprog()
4152 map->sec_idx != sym->st_shndx || in bpf_program__record_reloc()
4156 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
4180 if (map->libbpf_type != type || map->sec_idx != sym->st_shndx) in bpf_program__record_reloc()
4183 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
4207 size_t sec_idx, size_t insn_idx) in find_prog_by_sec_insn() argument
4219 if (prog->sec_idx < sec_idx || in find_prog_by_sec_insn()
4220 (prog->sec_idx == sec_idx && prog->sec_insn_off <= insn_idx)) in find_prog_by_sec_insn()
4229 if (prog->sec_idx == sec_idx && prog_contains_insn(prog, insn_idx)) in find_prog_by_sec_insn()
4238 size_t sec_idx = shdr->sh_info, sym_idx; in bpf_object__collect_prog_relos() local
4249 if (sec_idx >= obj->efile.sec_cnt) in bpf_object__collect_prog_relos()
4252 scn = elf_sec_by_idx(obj, sec_idx); in bpf_object__collect_prog_relos()
4261 relo_sec_name, sec_idx, sec_name); in bpf_object__collect_prog_relos()
4307 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx); in bpf_object__collect_prog_relos()
4343 if (map->sec_idx == obj->efile.btf_maps_shndx || bpf_map__is_struct_ops(map)) in map_fill_btf_type_info()
5788 int i, err = 0, insn_idx, sec_idx, sec_num; in bpf_object__relocate_core() local
5811 sec_idx = seg->sec_idxs[sec_num]; in bpf_object__relocate_core()
5826 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx); in bpf_object__relocate_core()
6060 int i, sec_num, sec_idx, off_adj; in adjust_prog_btf_ext_info() local
6064 sec_idx = ext_info->sec_idxs[sec_num]; in adjust_prog_btf_ext_info()
6066 if (prog->sec_idx != sec_idx) in adjust_prog_btf_ext_info()
6638 if (map->sec_idx != obj->efile.btf_maps_shndx) in bpf_object__collect_map_relos()
6680 if (targ_prog->sec_idx != sym->st_shndx || in bpf_object__collect_map_relos()
9099 int sec_idx, in find_struct_ops_map_by_offset() argument
9109 if (map->sec_idx == sec_idx && in find_struct_ops_map_by_offset()