Searched refs:shname (Results 1 – 2 of 2) sorted by relevance
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | bpf_load.c | 316 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/soc/rockchip/minidump/ |
| H A D | rk_minidump.c | 329 char *shname; in rk_minidump_clear_headers() local 347 shname = elf_lookup_string(hdr, shdr->sh_name); in rk_minidump_clear_headers() 348 if (shname && !strcmp(shname, entry->name)) in rk_minidump_clear_headers() 366 strln = strlen(shname) + 1; in rk_minidump_clear_headers() 367 memmove(shname, shname + strln, in rk_minidump_clear_headers()
|