Lines Matching refs:sec_idx
376 size_t sec_idx; member
495 int sec_idx; member
702 prog->sec_idx = -1; in bpf_program__exit()
727 const char *name, size_t sec_idx, const char *sec_name, in bpf_object__init_prog() argument
739 prog->sec_idx = sec_idx; in bpf_object__init_prog()
787 const char *sec_name, int sec_idx) in bpf_object__add_programs() argument
805 if (sym->st_shndx != sec_idx) in bpf_object__add_programs()
826 if (sec_idx != obj->efile.text_shndx && ELF64_ST_BIND(sym->st_info) == STB_LOCAL) { in bpf_object__add_programs()
849 err = bpf_object__init_prog(obj, prog, name, sec_idx, sec_name, in bpf_object__add_programs()
1207 map->sec_idx = obj->efile.st_ops_shndx; in bpf_object__init_struct_ops_maps()
1585 const char *real_name, int sec_idx, void *data, size_t data_sz) in bpf_object__init_internal_map() argument
1596 map->sec_idx = sec_idx; in bpf_object__init_internal_map()
1616 map->name, map->sec_idx, map->sec_offset, def->map_flags); in bpf_object__init_internal_map()
1644 int err = 0, sec_idx; in bpf_object__init_global_data_maps() local
1649 for (sec_idx = 1; sec_idx < obj->efile.sec_cnt; sec_idx++) { in bpf_object__init_global_data_maps()
1650 sec_desc = &obj->efile.secs[sec_idx]; in bpf_object__init_global_data_maps()
1658 sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, sec_idx)); in bpf_object__init_global_data_maps()
1660 sec_name, sec_idx, in bpf_object__init_global_data_maps()
1666 sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, sec_idx)); in bpf_object__init_global_data_maps()
1668 sec_name, sec_idx, in bpf_object__init_global_data_maps()
1673 sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, sec_idx)); in bpf_object__init_global_data_maps()
1675 sec_name, sec_idx, in bpf_object__init_global_data_maps()
2453 int var_idx, int sec_idx, in bpf_object__init_user_btf_map() argument
2510 map->sec_idx = sec_idx; in bpf_object__init_user_btf_map()
2514 map_name, map->sec_idx, map->sec_offset); in bpf_object__init_user_btf_map()
2535 map->inner_map->sec_idx = sec_idx; in bpf_object__init_user_btf_map()
3295 if (a->sec_idx != b->sec_idx) in cmp_progs()
3296 return a->sec_idx < b->sec_idx ? -1 : 1; in cmp_progs()
3889 return prog->sec_idx == obj->efile.text_shndx && obj->nr_programs > 1; in prog_is_subprog()
4049 map->sec_idx != sym->st_shndx || in bpf_program__record_reloc()
4053 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
4077 if (map->libbpf_type != type || map->sec_idx != sym->st_shndx) in bpf_program__record_reloc()
4080 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
4104 size_t sec_idx, size_t insn_idx) in find_prog_by_sec_insn() argument
4113 if (prog->sec_idx < sec_idx || in find_prog_by_sec_insn()
4114 (prog->sec_idx == sec_idx && prog->sec_insn_off <= insn_idx)) in find_prog_by_sec_insn()
4123 if (prog->sec_idx == sec_idx && prog_contains_insn(prog, insn_idx)) in find_prog_by_sec_insn()
4132 size_t sec_idx = shdr->sh_info, sym_idx; in bpf_object__collect_prog_relos() local
4143 if (sec_idx >= obj->efile.sec_cnt) in bpf_object__collect_prog_relos()
4146 scn = elf_sec_by_idx(obj, sec_idx); in bpf_object__collect_prog_relos()
4155 relo_sec_name, sec_idx, sec_name); in bpf_object__collect_prog_relos()
4201 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx); in bpf_object__collect_prog_relos()
4237 if (map->sec_idx == obj->efile.btf_maps_shndx || bpf_map__is_struct_ops(map)) in bpf_map_find_btf_info()
5649 int i, err = 0, insn_idx, sec_idx, sec_num; in bpf_object__relocate_core() local
5672 sec_idx = seg->sec_idxs[sec_num]; in bpf_object__relocate_core()
5687 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx); in bpf_object__relocate_core()
5897 int i, sec_num, sec_idx, off_adj; in adjust_prog_btf_ext_info() local
5901 sec_idx = ext_info->sec_idxs[sec_num]; in adjust_prog_btf_ext_info()
5903 if (prog->sec_idx != sec_idx) in adjust_prog_btf_ext_info()
6470 if (map->sec_idx != obj->efile.btf_maps_shndx) in bpf_object__collect_map_relos()
6512 if (targ_prog->sec_idx != sym->st_shndx || in bpf_object__collect_map_relos()