Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/samples/bpf/
Dbpf_load.c316 static int get_sec(Elf *elf, int i, GElf_Ehdr *ehdr, char **shname, in get_sec() argument
328 *shname = elf_strptr(elf, ehdr->e_shstrndx, shdr->sh_name); in get_sec()
329 if (!*shname || !shdr->sh_size) in get_sec()
515 char *shname, *shname_prog; in do_load_bpf_file() local
544 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in do_load_bpf_file()
549 i, shname, data->d_buf, data->d_size, in do_load_bpf_file()
552 if (strcmp(shname, "license") == 0) { in do_load_bpf_file()
555 } else if (strcmp(shname, "version") == 0) { in do_load_bpf_file()
563 } else if (strcmp(shname, "maps") == 0) { in do_load_bpf_file()
603 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in do_load_bpf_file()
[all …]