Home
last modified time | relevance | path

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

/Linux-v4.19/samples/bpf/
Dbpf_load.c383 static int load_elf_maps_section(struct bpf_map_data *maps, int maps_shndx, in load_elf_maps_section() argument
394 if (maps_shndx < 0) in load_elf_maps_section()
400 scn = elf_getscn(elf, maps_shndx); in load_elf_maps_section()
405 maps_shndx); in load_elf_maps_section()
415 if (sym[nr_maps].st_shndx != maps_shndx) in load_elf_maps_section()
494 int fd, i, ret, maps_shndx = -1, strtabidx = -1; in do_load_bpf_file() local
550 maps_shndx = i; in do_load_bpf_file()
568 nr_maps = load_elf_maps_section(map_data, maps_shndx, in do_load_bpf_file()
579 processed_sec[maps_shndx] = true; in do_load_bpf_file()
/Linux-v4.19/tools/lib/bpf/
Dlibbpf.c212 int maps_shndx; member
425 obj->efile.maps_shndx = -1; in bpf_object__new()
584 if (obj->efile.maps_shndx < 0) in bpf_object__init_maps()
589 scn = elf_getscn(obj->efile.elf, obj->efile.maps_shndx); in bpf_object__init_maps()
594 obj->efile.maps_shndx); in bpf_object__init_maps()
610 if (sym.st_shndx != obj->efile.maps_shndx) in bpf_object__init_maps()
656 if (sym.st_shndx != obj->efile.maps_shndx) in bpf_object__init_maps()
787 obj->efile.maps_shndx = idx; in bpf_object__elf_collect()
856 if (obj->efile.maps_shndx >= 0) { in bpf_object__elf_collect()
898 int maps_shndx = obj->efile.maps_shndx; in bpf_program__collect_reloc() local
[all …]