Lines Matching refs:sec_idx

243 	size_t sec_idx;  member
359 int sec_idx; member
576 prog->sec_idx = -1; in bpf_program__exit()
612 const char *name, size_t sec_idx, const char *sec_name, in bpf_object__init_prog() argument
624 prog->sec_idx = sec_idx; in bpf_object__init_prog()
662 const char *sec_name, int sec_idx) in bpf_object__add_programs() argument
680 if (sym.st_shndx != sec_idx) in bpf_object__add_programs()
701 if (sec_idx != obj->efile.text_shndx && GELF_ST_BIND(sym.st_info) == STB_LOCAL) { in bpf_object__add_programs()
724 err = bpf_object__init_prog(obj, prog, name, sec_idx, sec_name, in bpf_object__add_programs()
1057 map->sec_idx = obj->efile.st_ops_shndx; in bpf_object__init_struct_ops_maps()
1426 int sec_idx, void *data, size_t data_sz) in bpf_object__init_internal_map() argument
1437 map->sec_idx = sec_idx; in bpf_object__init_internal_map()
1455 map->name, map->sec_idx, map->sec_offset, def->map_flags); in bpf_object__init_internal_map()
1890 map->sec_idx = sym.st_shndx; in bpf_object__init_user_maps()
1893 map_name, map->sec_idx, map->sec_offset); in bpf_object__init_user_maps()
2308 int var_idx, int sec_idx, in bpf_object__init_user_btf_map() argument
2365 map->sec_idx = sec_idx; in bpf_object__init_user_btf_map()
2369 map_name, map->sec_idx, map->sec_offset); in bpf_object__init_user_btf_map()
2390 map->inner_map->sec_idx = sec_idx; in bpf_object__init_user_btf_map()
2954 if (a->sec_idx != b->sec_idx) in cmp_progs()
2955 return a->sec_idx < b->sec_idx ? -1 : 1; in cmp_progs()
3547 return prog->sec_idx == obj->efile.text_shndx && obj->nr_programs > 1; in prog_is_subprog()
3700 map->sec_idx != sym->st_shndx || in bpf_program__record_reloc()
3704 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
3731 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
3755 size_t sec_idx, size_t insn_idx) in find_prog_by_sec_insn() argument
3764 if (prog->sec_idx < sec_idx || in find_prog_by_sec_insn()
3765 (prog->sec_idx == sec_idx && prog->sec_insn_off <= insn_idx)) in find_prog_by_sec_insn()
3774 if (prog->sec_idx == sec_idx && prog_contains_insn(prog, insn_idx)) in find_prog_by_sec_insn()
3784 size_t sec_idx = shdr->sh_info; in bpf_object__collect_prog_relos() local
3795 scn = elf_sec_by_idx(obj, sec_idx); in bpf_object__collect_prog_relos()
3804 relo_sec_name, sec_idx, sec_name); in bpf_object__collect_prog_relos()
3840 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx); in bpf_object__collect_prog_relos()
3875 if (map->sec_idx == obj->efile.btf_maps_shndx || in bpf_map_find_btf_info()
5183 int i, err = 0, insn_idx, sec_idx; in bpf_object__relocate_core() local
5226 sec_idx = prog->sec_idx; in bpf_object__relocate_core()
5233 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx); in bpf_object__relocate_core()
5903 if (map->sec_idx != obj->efile.btf_maps_shndx) in bpf_object__collect_map_relos()