Home
last modified time | relevance | path

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

/Linux-v4.19/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c188 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-v4.19/tools/perf/util/
Dsymbol-minimal.c38 } *nhdr; in read_build_id() local
46 nhdr = ptr; in read_build_id()
48 nhdr->n_namesz = bswap_32(nhdr->n_namesz); in read_build_id()
49 nhdr->n_descsz = bswap_32(nhdr->n_descsz); in read_build_id()
50 nhdr->n_type = bswap_32(nhdr->n_type); in read_build_id()
53 namesz = NOTE_ALIGN(nhdr->n_namesz); in read_build_id()
54 descsz = NOTE_ALIGN(nhdr->n_descsz); in read_build_id()
56 ptr += sizeof(*nhdr); in read_build_id()
59 if (nhdr->n_type == NT_GNU_BUILD_ID && in read_build_id()
60 nhdr->n_namesz == sizeof("GNU")) { in read_build_id()
Dsymbol-elf.c462 GElf_Nhdr *nhdr = ptr; in elf_read_build_id() local
463 size_t namesz = NOTE_ALIGN(nhdr->n_namesz), in elf_read_build_id()
464 descsz = NOTE_ALIGN(nhdr->n_descsz); in elf_read_build_id()
467 ptr += sizeof(*nhdr); in elf_read_build_id()
470 if (nhdr->n_type == NT_GNU_BUILD_ID && in elf_read_build_id()
471 nhdr->n_namesz == sizeof("GNU")) { in elf_read_build_id()
527 GElf_Nhdr nhdr; in sysfs__read_build_id() local
530 if (read(fd, &nhdr, sizeof(nhdr)) != sizeof(nhdr)) in sysfs__read_build_id()
533 namesz = NOTE_ALIGN(nhdr.n_namesz); in sysfs__read_build_id()
534 descsz = NOTE_ALIGN(nhdr.n_descsz); in sysfs__read_build_id()
[all …]
/Linux-v4.19/scripts/
Drecordmcount.h484 unsigned nhdr, in tot_relsize() argument
492 for (; nhdr; --nhdr, ++shdrp) { in tot_relsize()
507 unsigned const nhdr = w2(ehdr->e_shnum); in do_func() local
516 unsigned const totrelsz = tot_relsize(shdr0, nhdr, shstrtab, fname); in do_func()
527 for (relhdr = shdr0, k = nhdr; k; --k, ++relhdr) { in do_func()
/Linux-v4.19/kernel/bpf/
Dstackmap.c179 Elf32_Nhdr *nhdr = (Elf32_Nhdr *)(note_start + note_offs); in stack_map_parse_build_id() local
181 if (nhdr->n_type == BPF_BUILD_ID && in stack_map_parse_build_id()
182 nhdr->n_namesz == sizeof("GNU") && in stack_map_parse_build_id()
183 nhdr->n_descsz == BPF_BUILD_ID_SIZE) { in stack_map_parse_build_id()
191 ALIGN(nhdr->n_namesz, 4) + ALIGN(nhdr->n_descsz, 4); in stack_map_parse_build_id()
/Linux-v4.19/include/pcmcia/
Dcistpl.h507 u_char nhdr; member
/Linux-v4.19/drivers/pcmcia/
Dcistpl.c1242 v2->nhdr = p[8]; in parse_vers_2()