Searched refs:shname (Results 1 – 1 of 1) sorted by relevance
/Linux-v4.19/samples/bpf/ |
D | bpf_load.c | 300 static int get_sec(Elf *elf, int i, GElf_Ehdr *ehdr, char **shname, in get_sec() argument 312 *shname = elf_strptr(elf, ehdr->e_shstrndx, shdr->sh_name); in get_sec() 313 if (!*shname || !shdr->sh_size) in get_sec() 499 char *shname, *shname_prog; in do_load_bpf_file() local 528 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in do_load_bpf_file() 533 i, shname, data->d_buf, data->d_size, in do_load_bpf_file() 536 if (strcmp(shname, "license") == 0) { in do_load_bpf_file() 539 } else if (strcmp(shname, "version") == 0) { in do_load_bpf_file() 547 } else if (strcmp(shname, "maps") == 0) { in do_load_bpf_file() 587 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in do_load_bpf_file() [all …]
|