/linux-master/lib/ |
H A D | buildid.c | 24 Elf32_Nhdr *nhdr = (Elf32_Nhdr *)(note_start + note_offs); local 26 if (nhdr->n_type == BUILD_ID && 27 nhdr->n_namesz == sizeof("GNU") && 28 !strcmp((char *)(nhdr + 1), "GNU") && 29 nhdr->n_descsz > 0 && 30 nhdr->n_descsz <= BUILD_ID_SIZE_MAX) { 34 nhdr->n_descsz); 35 memset(build_id + nhdr->n_descsz, 0, 36 BUILD_ID_SIZE_MAX - nhdr->n_descsz); 38 *size = nhdr [all...] |
/linux-master/tools/testing/selftests/powerpc/ptrace/ |
H A D | core-pkey.c | 188 static Elf64_Nhdr *next_note(Elf64_Nhdr *nhdr) argument 190 return (void *) nhdr + sizeof(*nhdr) + 191 __ALIGN_KERNEL(nhdr->n_namesz, 4) + 192 __ALIGN_KERNEL(nhdr->n_descsz, 4); 200 Elf64_Nhdr *nhdr; local 232 for (nhdr = p + phdr->p_offset; 233 (void *) nhdr < p + phdr->p_offset + phdr->p_filesz; 234 nhdr = next_note(nhdr)) [all...] |
/linux-master/tools/perf/util/ |
H A D | symbol-minimal.c | 42 } *nhdr; local 50 nhdr = ptr; 52 nhdr->n_namesz = bswap_32(nhdr->n_namesz); 53 nhdr->n_descsz = bswap_32(nhdr->n_descsz); 54 nhdr->n_type = bswap_32(nhdr->n_type); 57 namesz = NOTE_ALIGN(nhdr->n_namesz); 58 descsz = NOTE_ALIGN(nhdr [all...] |
H A D | symbol-elf.c | 911 GElf_Nhdr *nhdr = ptr; local 912 size_t namesz = NOTE_ALIGN(nhdr->n_namesz), 913 descsz = NOTE_ALIGN(nhdr->n_descsz); 916 ptr += sizeof(*nhdr); 919 if (nhdr->n_type == NT_GNU_BUILD_ID && 920 nhdr->n_namesz == sizeof("GNU")) { 1043 GElf_Nhdr nhdr; local 1046 if (read(fd, &nhdr, sizeof(nhdr)) != sizeof(nhdr)) 2866 GElf_Nhdr nhdr; local [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | trace_helpers.c | 312 Elf32_Nhdr *nhdr = (Elf32_Nhdr *)(note_start + note_offs); local 314 if (nhdr->n_type == 3 && nhdr->n_namesz == sizeof("GNU") && 315 !strcmp((char *)(nhdr + 1), "GNU") && nhdr->n_descsz > 0 && 316 nhdr->n_descsz <= BPF_BUILD_ID_SIZE) { 318 ALIGN(sizeof("GNU"), 4) + sizeof(Elf32_Nhdr), nhdr->n_descsz); 319 memset(build_id + nhdr->n_descsz, 0, BPF_BUILD_ID_SIZE - nhdr->n_descsz); 320 return (int) nhdr [all...] |
/linux-master/scripts/ |
H A D | recordmcount.h | 237 unsigned const nhdr, Elf32_Word **symtab, 246 for (relhdr = shdr0, k = nhdr; k; --k, ++relhdr) { 585 unsigned nhdr, 593 for (; nhdr; --nhdr, ++shdrp) { 611 unsigned const nhdr = get_shnum(ehdr, shdr0); local 636 totrelsz = tot_relsize(shdr0, nhdr, shstrtab, fname); 652 find_symtab(ehdr, shdr0, nhdr, &symtab, &symtab_shndx); 654 for (relhdr = shdr0, k = nhdr; k; --k, ++relhdr) { 236 find_symtab(Elf_Ehdr *const ehdr, Elf_Shdr const *shdr0, unsigned const nhdr, Elf32_Word **symtab, Elf32_Word **symtab_shndx) argument 584 tot_relsize(Elf_Shdr const *const shdr0, unsigned nhdr, const char *const shstrtab, const char *const fname) argument
|
/linux-master/tools/lib/bpf/ |
H A D | usdt.c | 572 static int parse_usdt_note(Elf *elf, const char *path, GElf_Nhdr *nhdr, 589 GElf_Nhdr nhdr; local 621 while ((off = gelf_getnote(data, off, &nhdr, &name_off, &desc_off)) > 0) { 627 err = parse_usdt_note(elf, path, &nhdr, data->d_buf, name_off, desc_off, ¬e); 1133 static int parse_usdt_note(Elf *elf, const char *path, GElf_Nhdr *nhdr, argument 1142 if (strncmp(data + name_off, USDT_NOTE_NAME, nhdr->n_namesz) != 0) 1144 if (nhdr->n_type != USDT_NOTE_TYPE) 1148 len = nhdr->n_descsz;
|
/linux-master/fs/ |
H A D | binfmt_elf.c | 766 struct elf_note nhdr; member in union:__anon1659 790 BUILD_BUG_ON(sizeof(note) < sizeof(note.nhdr) + NOTE_NAME_SZ); 791 if (n < 0 || n < sizeof(note.nhdr) + NOTE_NAME_SZ) 794 if (note.nhdr.n_type != NT_GNU_PROPERTY_TYPE_0 || 795 note.nhdr.n_namesz != NOTE_NAME_SZ || 796 strncmp(note.data + sizeof(note.nhdr), 797 GNU_PROPERTY_TYPE_0_NAME, n - sizeof(note.nhdr))) 800 off = round_up(sizeof(note.nhdr) + NOTE_NAME_SZ, 805 if (note.nhdr.n_descsz > n - off) 807 datasz = off + note.nhdr [all...] |
/linux-master/include/net/ |
H A D | ipv6.h | 479 const struct ipv6hdr *nhdr; local 492 nhdr = ipv6_hdr(skb); 494 if (nhdr->nexthdr != NEXTHDR_HOP) 497 jhdr = (const struct hop_jumbo_hdr *) (nhdr + 1);
|
/linux-master/include/pcmcia/ |
H A D | cistpl.h | 504 u_char nhdr; member in struct:cistpl_vers_2_t
|
/linux-master/drivers/pcmcia/ |
H A D | cistpl.c | 1241 v2->nhdr = p[8];
|