Searched refs:shname (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/arch/blackfin/kernel/ |
H A D | module.c | 35 const char *shname = secstrings + s->sh_name; module_frob_arch_sections() local 40 if (!strcmp(".l1.text", shname) || module_frob_arch_sections() 41 (!strcmp(".text", shname) && module_frob_arch_sections() 52 } else if (!strcmp(".l1.data", shname) || module_frob_arch_sections() 53 (!strcmp(".data", shname) && module_frob_arch_sections() 64 } else if (!strcmp(".l1.bss", shname) || module_frob_arch_sections() 65 (!strcmp(".bss", shname) && module_frob_arch_sections() 75 } else if (!strcmp(".l1.data.B", shname)) { module_frob_arch_sections() 85 } else if (!strcmp(".l1.bss.B", shname)) { module_frob_arch_sections() 95 } else if (!strcmp(".l2.text", shname) || module_frob_arch_sections() 96 (!strcmp(".text", shname) && module_frob_arch_sections() 107 } else if (!strcmp(".l2.data", shname) || module_frob_arch_sections() 108 (!strcmp(".data", shname) && module_frob_arch_sections() 119 } else if (!strcmp(".l2.bss", shname) || module_frob_arch_sections() 120 (!strcmp(".bss", shname) && module_frob_arch_sections() 254 const char *shname = secstrings + sechdrs[i].sh_name; module_finalize() local 264 if (!strcmp(".rela.l2.text", shname) || module_finalize() 265 !strcmp(".rela.l1.text", shname) || module_finalize() 266 (!strcmp(".rela.text", shname) && module_finalize()
|
/linux-4.1.27/samples/bpf/ |
H A D | bpf_load.c | 137 static int get_sec(Elf *elf, int i, GElf_Ehdr *ehdr, char **shname, get_sec() argument 149 *shname = elf_strptr(elf, ehdr->e_shstrndx, shdr->sh_name); get_sec() 150 if (!*shname || !shdr->sh_size) get_sec() 197 char *shname, *shname_prog; load_bpf_file() local 220 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) load_bpf_file() 225 i, shname, data->d_buf, data->d_size, load_bpf_file() 228 if (strcmp(shname, "license") == 0) { load_bpf_file() 231 } else if (strcmp(shname, "version") == 0) { load_bpf_file() 239 } else if (strcmp(shname, "maps") == 0) { load_bpf_file() 251 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) load_bpf_file() 281 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) load_bpf_file() 284 if (memcmp(shname, "kprobe/", 7) == 0 || load_bpf_file() 285 memcmp(shname, "kretprobe/", 10) == 0 || load_bpf_file() 286 memcmp(shname, "socket", 6) == 0) load_bpf_file() 287 load_and_attach(shname, data->d_buf, data->d_size); load_bpf_file()
|
Completed in 129 milliseconds