Home
last modified time | relevance | path

Searched refs:maps_shndx (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/samples/bpf/
Dbpf_load.c399 static int load_elf_maps_section(struct bpf_map_data *maps, int maps_shndx, in load_elf_maps_section() argument
410 if (maps_shndx < 0) in load_elf_maps_section()
416 scn = elf_getscn(elf, maps_shndx); in load_elf_maps_section()
421 maps_shndx); in load_elf_maps_section()
431 if (sym[nr_maps].st_shndx != maps_shndx) in load_elf_maps_section()
510 int fd, i, ret, maps_shndx = -1, strtabidx = -1; in do_load_bpf_file() local
566 maps_shndx = i; in do_load_bpf_file()
584 nr_maps = load_elf_maps_section(map_data, maps_shndx, in do_load_bpf_file()
595 processed_sec[maps_shndx] = true; in do_load_bpf_file()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf.c447 int maps_shndx; member
1066 obj->efile.maps_shndx = -1; in bpf_object__new()
1754 if (obj->efile.maps_shndx < 0) in bpf_object__init_user_maps()
1761 scn = elf_sec_by_idx(obj, obj->efile.maps_shndx); in bpf_object__init_user_maps()
1782 if (sym.st_shndx != obj->efile.maps_shndx) in bpf_object__init_user_maps()
1806 if (sym.st_shndx != obj->efile.maps_shndx) in bpf_object__init_user_maps()
2869 obj->efile.maps_shndx = idx; in bpf_object__elf_collect()
3316 return shndx == obj->efile.maps_shndx || in bpf_object__shndx_is_maps()