Home
last modified time | relevance | path

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

/Linux-v5.4/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()
/Linux-v5.4/tools/lib/bpf/
Dlibbpf.c272 int maps_shndx; member
523 obj->efile.maps_shndx = -1; in bpf_object__new()
899 if (obj->efile.maps_shndx < 0) in bpf_object__init_user_maps()
905 scn = elf_getscn(obj->efile.elf, obj->efile.maps_shndx); in bpf_object__init_user_maps()
910 obj->efile.maps_shndx); in bpf_object__init_user_maps()
927 if (sym.st_shndx != obj->efile.maps_shndx) in bpf_object__init_user_maps()
952 if (sym.st_shndx != obj->efile.maps_shndx) in bpf_object__init_user_maps()
1287 obj->efile.maps_shndx, MAPS_ELF_SEC); in bpf_object__init_user_btf_maps()
1577 obj->efile.maps_shndx = idx; in bpf_object__elf_collect()
1700 return shndx == obj->efile.maps_shndx || in bpf_object__shndx_is_maps()