Lines Matching defs:sec_idx
223 size_t sec_idx;
337 int sec_idx;
485 static int elf_sym_by_sec_off(const struct bpf_object *obj, size_t sec_idx,
534 prog->sec_idx = -1;
560 const char *name, size_t sec_idx, const char *sec_name,
572 prog->sec_idx = sec_idx;
610 const char *sec_name, int sec_idx)
624 if (elf_sym_by_sec_off(obj, sec_idx, sec_off, STT_FUNC, &sym)) {
663 err = bpf_object__init_prog(obj, prog, name, sec_idx, sec_name,
988 map->sec_idx = obj->efile.st_ops_shndx;
1362 int sec_idx, void *data, size_t data_sz)
1373 map->sec_idx = sec_idx;
1390 pr_debug("map '%s' (global data): at sec_idx %d, offset %zu, flags %x.\n",
1391 map->name, map->sec_idx, map->sec_offset, def->map_flags);
1821 map->sec_idx = sym.st_shndx;
1823 pr_debug("map '%s' (legacy): at sec_idx %d, offset %zu.\n",
1824 map_name, map->sec_idx, map->sec_offset);
2157 map->inner_map->sec_idx = obj->efile.btf_maps_shndx;
2217 int var_idx, int sec_idx,
2273 map->sec_idx = sec_idx;
2276 pr_debug("map '%s': at sec_idx %d, offset %zu.\n",
2277 map_name, map->sec_idx, map->sec_offset);
2730 static int elf_sym_by_sec_off(const struct bpf_object *obj, size_t sec_idx,
2740 if (sym->st_shndx != sec_idx || sym->st_value != off)
2795 if (a->sec_idx != b->sec_idx)
2796 return a->sec_idx < b->sec_idx ? -1 : 1;
3287 return prog->sec_idx == obj->efile.text_shndx && obj->nr_programs > 1;
3422 map->sec_idx != sym->st_shndx ||
3426 prog->name, map_idx, map->name, map->sec_idx,
3453 prog->name, map_idx, map->name, map->sec_idx,
3477 size_t sec_idx, size_t insn_idx)
3489 if (prog->sec_idx < sec_idx ||
3490 (prog->sec_idx == sec_idx && prog->sec_insn_off <= insn_idx))
3499 if (prog->sec_idx == sec_idx && prog_contains_insn(prog, insn_idx))
3509 size_t sec_idx = shdr->sh_info;
3519 sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, sec_idx));
3524 relo_sec_name, sec_idx, sec_name);
3559 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx);
3594 if (map->sec_idx == obj->efile.btf_maps_shndx ||
5904 int i, err = 0, insn_idx, sec_idx;
5934 * prog->sec_idx to do a proper search by section index and
5948 sec_idx = prog->sec_idx;
5955 prog = find_prog_by_sec_insn(obj, sec_idx, insn_idx);
6534 if (map->sec_idx != obj->efile.btf_maps_shndx)