Lines Matching refs:sec_idx
432 size_t sec_idx; member
553 int sec_idx; member
781 prog->sec_idx = -1; in bpf_program__exit()
806 const char *name, size_t sec_idx, const char *sec_name, in bpf_object__init_prog() argument
818 prog->sec_idx = sec_idx; in bpf_object__init_prog()
867 const char *sec_name, int sec_idx) in bpf_object__add_programs() argument
884 if (sym->st_shndx != sec_idx) in bpf_object__add_programs()
905 if (sec_idx != obj->efile.text_shndx && ELF64_ST_BIND(sym->st_info) == STB_LOCAL) { in bpf_object__add_programs()
928 err = bpf_object__init_prog(obj, prog, name, sec_idx, sec_name, in bpf_object__add_programs()
1407 map->sec_idx = shndx; in init_struct_ops_maps()
1462 int sec_idx, err; in bpf_object_init_struct_ops() local
1464 for (sec_idx = 0; sec_idx < obj->efile.sec_cnt; ++sec_idx) { in bpf_object_init_struct_ops()
1465 struct elf_sec_desc *desc = &obj->efile.secs[sec_idx]; in bpf_object_init_struct_ops()
1470 sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, sec_idx)); in bpf_object_init_struct_ops()
1474 err = init_struct_ops_maps(obj, sec_name, sec_idx, desc->data); in bpf_object_init_struct_ops()
1934 const char *real_name, int sec_idx, void *data, size_t data_sz) in bpf_object__init_internal_map() argument
1946 map->sec_idx = sec_idx; in bpf_object__init_internal_map()
1971 map->name, map->sec_idx, map->sec_offset, def->map_flags); in bpf_object__init_internal_map()
1996 int err = 0, sec_idx; in bpf_object__init_global_data_maps() local
2001 for (sec_idx = 1; sec_idx < obj->efile.sec_cnt; sec_idx++) { in bpf_object__init_global_data_maps()
2002 sec_desc = &obj->efile.secs[sec_idx]; in bpf_object__init_global_data_maps()
2010 sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, sec_idx)); in bpf_object__init_global_data_maps()
2012 sec_name, sec_idx, in bpf_object__init_global_data_maps()
2018 sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, sec_idx)); in bpf_object__init_global_data_maps()
2020 sec_name, sec_idx, in bpf_object__init_global_data_maps()
2025 sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, sec_idx)); in bpf_object__init_global_data_maps()
2027 sec_name, sec_idx, in bpf_object__init_global_data_maps()
2867 int var_idx, int sec_idx, in bpf_object__init_user_btf_map() argument
2924 map->sec_idx = sec_idx; in bpf_object__init_user_btf_map()
2928 map_name, map->sec_idx, map->sec_offset); in bpf_object__init_user_btf_map()
2951 map->inner_map->sec_idx = sec_idx; in bpf_object__init_user_btf_map()
2968 const char *sec_name, int sec_idx, in init_arena_map_data() argument
3812 if (a->sec_idx != b->sec_idx) in cmp_progs()
3813 return a->sec_idx < b->sec_idx ? -1 : 1; in cmp_progs()
4437 return prog->sec_idx == obj->efile.text_shndx; in prog_is_subprog()
4606 map->sec_idx != sym->st_shndx || in bpf_program__record_reloc()
4610 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
4634 if (map->libbpf_type != type || map->sec_idx != sym->st_shndx) in bpf_program__record_reloc()
4637 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
4661 size_t sec_idx, size_t insn_idx) in find_prog_by_sec_insn() argument
4673 if (prog->sec_idx < sec_idx || in find_prog_by_sec_insn()
4674 (prog->sec_idx == sec_idx && prog->sec_insn_off <= insn_idx)) in find_prog_by_sec_insn()
4683 if (prog->sec_idx == sec_idx && prog_contains_insn(prog, insn_idx)) in find_prog_by_sec_insn()
4692 size_t sec_idx = shdr->sh_info, sym_idx; in bpf_object__collect_prog_relos() local
4703 if (sec_idx >= obj->efile.sec_cnt) in bpf_object__collect_prog_relos()
4706 scn = elf_sec_by_idx(obj, sec_idx); in bpf_object__collect_prog_relos()
4717 relo_sec_name, sec_idx, sec_name); in bpf_object__collect_prog_relos()
4763 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx); in bpf_object__collect_prog_relos()
4799 if (map->sec_idx == obj->efile.btf_maps_shndx || bpf_map__is_struct_ops(map)) in map_fill_btf_type_info()
5927 int i, err = 0, insn_idx, sec_idx, sec_num; in bpf_object__relocate_core() local
5950 sec_idx = seg->sec_idxs[sec_num]; in bpf_object__relocate_core()
5965 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx); in bpf_object__relocate_core()
6199 int i, sec_num, sec_idx, off_adj; in adjust_prog_btf_ext_info() local
6203 sec_idx = ext_info->sec_idxs[sec_num]; in adjust_prog_btf_ext_info()
6205 if (prog->sec_idx != sec_idx) in adjust_prog_btf_ext_info()
7222 if (map->sec_idx != obj->efile.btf_maps_shndx) in bpf_object__collect_map_relos()
7264 if (targ_prog->sec_idx != sym->st_shndx || in bpf_object__collect_map_relos()
9822 int sec_idx, in find_struct_ops_map_by_offset() argument
9832 if (map->sec_idx == sec_idx && in find_struct_ops_map_by_offset()