Searched refs:nhdr (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.4/tools/testing/selftests/powerpc/ptrace/ |
D | core-pkey.c | 188 static Elf64_Nhdr *next_note(Elf64_Nhdr *nhdr) in next_note() argument 190 return (void *) nhdr + sizeof(*nhdr) + in next_note() 191 __ALIGN_KERNEL(nhdr->n_namesz, 4) + in next_note() 192 __ALIGN_KERNEL(nhdr->n_descsz, 4); in next_note() 200 Elf64_Nhdr *nhdr; in check_core_file() local 232 for (nhdr = p + phdr->p_offset; in check_core_file() 233 (void *) nhdr < p + phdr->p_offset + phdr->p_filesz; in check_core_file() 234 nhdr = next_note(nhdr)) in check_core_file() 235 if (nhdr->n_type == NT_PPC_PKEY) in check_core_file() 238 FAIL_IF((void *) nhdr >= p + phdr->p_offset + phdr->p_filesz); in check_core_file() [all …]
|
/Linux-v5.4/tools/perf/util/ |
D | symbol-minimal.c | 41 } *nhdr; in read_build_id() local 49 nhdr = ptr; in read_build_id() 51 nhdr->n_namesz = bswap_32(nhdr->n_namesz); in read_build_id() 52 nhdr->n_descsz = bswap_32(nhdr->n_descsz); in read_build_id() 53 nhdr->n_type = bswap_32(nhdr->n_type); in read_build_id() 56 namesz = NOTE_ALIGN(nhdr->n_namesz); in read_build_id() 57 descsz = NOTE_ALIGN(nhdr->n_descsz); in read_build_id() 59 ptr += sizeof(*nhdr); in read_build_id() 62 if (nhdr->n_type == NT_GNU_BUILD_ID && in read_build_id() 63 nhdr->n_namesz == sizeof("GNU")) { in read_build_id()
|
D | symbol-elf.c | 508 GElf_Nhdr *nhdr = ptr; in elf_read_build_id() local 509 size_t namesz = NOTE_ALIGN(nhdr->n_namesz), in elf_read_build_id() 510 descsz = NOTE_ALIGN(nhdr->n_descsz); in elf_read_build_id() 513 ptr += sizeof(*nhdr); in elf_read_build_id() 516 if (nhdr->n_type == NT_GNU_BUILD_ID && in elf_read_build_id() 517 nhdr->n_namesz == sizeof("GNU")) { in elf_read_build_id() 573 GElf_Nhdr nhdr; in sysfs__read_build_id() local 576 if (read(fd, &nhdr, sizeof(nhdr)) != sizeof(nhdr)) in sysfs__read_build_id() 579 namesz = NOTE_ALIGN(nhdr.n_namesz); in sysfs__read_build_id() 580 descsz = NOTE_ALIGN(nhdr.n_descsz); in sysfs__read_build_id() [all …]
|
/Linux-v5.4/kernel/bpf/ |
D | stackmap.c | 174 Elf32_Nhdr *nhdr = (Elf32_Nhdr *)(note_start + note_offs); in stack_map_parse_build_id() local 176 if (nhdr->n_type == BPF_BUILD_ID && in stack_map_parse_build_id() 177 nhdr->n_namesz == sizeof("GNU") && in stack_map_parse_build_id() 178 nhdr->n_descsz > 0 && in stack_map_parse_build_id() 179 nhdr->n_descsz <= BPF_BUILD_ID_SIZE) { in stack_map_parse_build_id() 183 nhdr->n_descsz); in stack_map_parse_build_id() 184 memset(build_id + nhdr->n_descsz, 0, in stack_map_parse_build_id() 185 BPF_BUILD_ID_SIZE - nhdr->n_descsz); in stack_map_parse_build_id() 189 ALIGN(nhdr->n_namesz, 4) + ALIGN(nhdr->n_descsz, 4); in stack_map_parse_build_id()
|
/Linux-v5.4/scripts/ |
D | recordmcount.h | 499 unsigned nhdr, in tot_relsize() argument 507 for (; nhdr; --nhdr, ++shdrp) { in tot_relsize() 526 unsigned const nhdr = w2(ehdr->e_shnum); in do_func() local 548 totrelsz = tot_relsize(shdr0, nhdr, shstrtab, fname); in do_func() 564 for (relhdr = shdr0, k = nhdr; k; --k, ++relhdr) { in do_func()
|
/Linux-v5.4/include/pcmcia/ |
D | cistpl.h | 504 u_char nhdr; member
|
/Linux-v5.4/drivers/pcmcia/ |
D | cistpl.c | 1240 v2->nhdr = p[8]; in parse_vers_2()
|