Lines Matching refs:scn
677 Elf_Scn *scn = NULL; in bpf_object_search_section_size() local
680 while ((scn = elf_nextscn(elf, scn)) != NULL) { in bpf_object_search_section_size()
686 if (gelf_getshdr(scn, &sh) != &sh) { in bpf_object_search_section_size()
702 data = elf_getdata(scn, 0); in bpf_object_search_section_size()
897 Elf_Scn *scn; in bpf_object__init_user_maps() local
905 scn = elf_getscn(obj->efile.elf, obj->efile.maps_shndx); in bpf_object__init_user_maps()
906 if (scn) in bpf_object__init_user_maps()
907 data = elf_getdata(scn, NULL); in bpf_object__init_user_maps()
908 if (!scn || !data) { in bpf_object__init_user_maps()
1277 Elf_Scn *scn; in bpf_object__init_user_btf_maps() local
1282 scn = elf_getscn(obj->efile.elf, obj->efile.btf_maps_shndx); in bpf_object__init_user_btf_maps()
1283 if (scn) in bpf_object__init_user_btf_maps()
1284 data = elf_getdata(scn, NULL); in bpf_object__init_user_btf_maps()
1285 if (!scn || !data) { in bpf_object__init_user_btf_maps()
1346 Elf_Scn *scn; in section_have_execinstr() local
1349 scn = elf_getscn(obj->efile.elf, idx); in section_have_execinstr()
1350 if (!scn) in section_have_execinstr()
1353 if (gelf_getshdr(scn, &sh) != &sh) in section_have_execinstr()
1525 Elf_Scn *scn = NULL; in bpf_object__elf_collect() local
1534 while ((scn = elf_nextscn(elf, scn)) != NULL) { in bpf_object__elf_collect()
1540 if (gelf_getshdr(scn, &sh) != &sh) { in bpf_object__elf_collect()
1553 data = elf_getdata(scn, 0); in bpf_object__elf_collect()