Lines Matching refs:shname
316 static int get_sec(Elf *elf, int i, GElf_Ehdr *ehdr, char **shname,
328 *shname = elf_strptr(elf, ehdr->e_shstrndx, shdr->sh_name);
329 if (!*shname || !shdr->sh_size)
515 char *shname, *shname_prog;
544 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data))
549 i, shname, data->d_buf, data->d_size,
552 if (strcmp(shname, "license") == 0) {
555 } else if (strcmp(shname, "version") == 0) {
563 } else if (strcmp(shname, "maps") == 0) {
603 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data))
633 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data))
636 if (memcmp(shname, "kprobe/", 7) == 0 ||
637 memcmp(shname, "kretprobe/", 10) == 0 ||
638 memcmp(shname, "tracepoint/", 11) == 0 ||
639 memcmp(shname, "raw_tracepoint/", 15) == 0 ||
640 memcmp(shname, "xdp", 3) == 0 ||
641 memcmp(shname, "perf_event", 10) == 0 ||
642 memcmp(shname, "socket", 6) == 0 ||
643 memcmp(shname, "cgroup/", 7) == 0 ||
644 memcmp(shname, "sockops", 7) == 0 ||
645 memcmp(shname, "sk_skb", 6) == 0 ||
646 memcmp(shname, "sk_msg", 6) == 0) {
647 ret = load_and_attach(shname, data->d_buf,