/external/elfutils/tests/ |
D | xlate_notes.c | 101 GElf_Nhdr nhdr; in main() local 104 while ((next = gelf_getnote (data, off, &nhdr, &n_off, &d_off)) > 0) in main() 130 nhdr.n_type, nh.n_type, in main() 131 nhdr.n_namesz, nh.n_namesz, in main() 132 nhdr.n_descsz, nh.n_descsz); in main() 134 if (nhdr.n_type != nh.n_type in main() 135 || nhdr.n_namesz != nh.n_namesz in main() 136 || nhdr.n_descsz != nh.n_descsz) in main()
|
/external/linux-kselftest/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 …]
|
/external/mesa3d/src/util/ |
D | build_id.c | 42 ElfW(Nhdr) nhdr; 83 if (note->nhdr.n_type == NT_GNU_BUILD_ID && in build_id_find_nhdr_callback() 84 note->nhdr.n_descsz != 0 && in build_id_find_nhdr_callback() 85 note->nhdr.n_namesz == 4 && in build_id_find_nhdr_callback() 92 ALIGN_POT(note->nhdr.n_namesz, 4) + in build_id_find_nhdr_callback() 93 ALIGN_POT(note->nhdr.n_descsz, 4); in build_id_find_nhdr_callback() 127 return note->nhdr.n_descsz; in build_id_length()
|
/external/elfutils/backends/ |
D | linux-core-note.c | 213 EBLHOOK(core_note) (const GElf_Nhdr *nhdr, const char *name, in EBLHOOK() 218 switch (nhdr->n_namesz) in EBLHOOK() 221 if (memcmp (name, "CORE", nhdr->n_namesz) == 0) in EBLHOOK() 226 if (memcmp (name, "CORE", nhdr->n_namesz) == 0) in EBLHOOK() 232 if (memcmp (name, "LINUX", nhdr->n_namesz) == 0) in EBLHOOK() 237 if (nhdr->n_type != 0 in EBLHOOK() 250 switch (nhdr->n_type) in EBLHOOK() 253 if (nhdr->n_descsz != sizeof (struct EBLHOOK(prstatus))) in EBLHOOK() 263 if (nhdr->n_descsz != sizeof (struct EBLHOOK(prpsinfo))) in EBLHOOK() 274 if (nhdr->n_descsz != size) \ in EBLHOOK() [all …]
|
D | x86_corenote.c | 31 return ioperm_info (nhdr->n_descsz, \
|
D | i386_corenote.c | 109 return tls_info (nhdr->n_descsz, regs_offset, nregloc, reglocs, \
|
/external/elfutils/libdwfl/ |
D | linux-core-attach.c | 104 GElf_Nhdr nhdr; in core_next_thread() local 128 &nhdr, &name_offset, in core_next_thread() 132 const char *name = (nhdr.n_namesz == 0 in core_next_thread() 140 if (! ebl_core_note (core_arg->ebl, &nhdr, name, desc, in core_next_thread() 146 if (nhdr.n_type != NT_PRSTATUS) in core_next_thread() 174 GElf_Nhdr nhdr; in core_set_initial_registers() local 181 size_t getnote_err = gelf_getnote (note_data, offset, &nhdr, &name_offset, in core_set_initial_registers() 186 const char *name = (nhdr.n_namesz == 0 in core_set_initial_registers() 194 int core_note_err = ebl_core_note (core_arg->ebl, &nhdr, name, desc, in core_set_initial_registers() 199 assert (nhdr.n_type == NT_PRSTATUS); in core_set_initial_registers() [all …]
|
D | linux-kernel-modules.c | 547 GElf_Nhdr nhdr; in check_notes() member 562 GElf_Nhdr *nhdr = (void *) p; in check_notes() local 563 len += sizeof *nhdr; in check_notes() 570 if (nhdr->n_type == NT_GNU_PROPERTY_TYPE_0 in check_notes() 571 && nhdr->n_namesz == sizeof "GNU" in check_notes() 572 && name + nhdr->n_namesz < &buf.data[n] in check_notes() 575 len += nhdr->n_namesz; in check_notes() 579 len += nhdr->n_descsz; in check_notes() 585 len += nhdr->n_namesz; in check_notes() 589 len += nhdr->n_descsz; in check_notes() [all …]
|
D | core-file.c | 505 GElf_Nhdr nhdr; in dwfl_core_file_report() local 508 while ((pos = gelf_getnote (notes, pos, &nhdr, in dwfl_core_file_report() 510 if (nhdr.n_namesz == sizeof "CORE" in dwfl_core_file_report() 513 if (nhdr.n_type == NT_AUXV) in dwfl_core_file_report() 516 auxv_size = nhdr.n_descsz; in dwfl_core_file_report() 518 if (nhdr.n_type == NT_FILE) in dwfl_core_file_report() 521 note_file_size = nhdr.n_descsz; in dwfl_core_file_report()
|
/external/perfetto/src/profiling/symbolizer/ |
D | local_symbolizer.cc | 108 typename E::Nhdr* nhdr = in GetBuildId() local 111 if (!InRange(mem, size, nhdr, sizeof(typename E::Nhdr))) { in GetBuildId() 115 if (nhdr->n_type == NT_GNU_BUILD_ID && nhdr->n_namesz == 4) { in GetBuildId() 116 char* name = reinterpret_cast<char*>(nhdr) + sizeof(*nhdr); in GetBuildId() 122 const char* value = reinterpret_cast<char*>(nhdr) + sizeof(*nhdr) + in GetBuildId() 123 base::AlignUp<4>(nhdr->n_namesz); in GetBuildId() 125 if (!InRange(mem, size, value, nhdr->n_descsz)) { in GetBuildId() 129 return std::string(value, nhdr->n_descsz); in GetBuildId() 132 offset += sizeof(*nhdr) + base::AlignUp<4>(nhdr->n_namesz) + in GetBuildId() 133 base::AlignUp<4>(nhdr->n_descsz); in GetBuildId()
|
/external/elfutils/libebl/ |
D | eblcorenote.c | 44 ebl_core_note (Ebl *ebl, const GElf_Nhdr *nhdr, const char *name, in ebl_core_note() argument 50 int result = ebl->core_note (nhdr, name, in ebl_core_note() 66 if (nhdr->n_type == NT_PLATFORM in ebl_core_note() 67 && memchr (desc, '\0', nhdr->n_descsz) != NULL) in ebl_core_note()
|
D | libebl.h | 316 extern int ebl_core_note (Ebl *ebl, const GElf_Nhdr *nhdr,
|
D | eblopenbackend.c | 189 static int default_core_note (const GElf_Nhdr *nhdr, const char *name, 543 default_core_note (const GElf_Nhdr *nhdr __attribute__ ((unused)), in default_core_note() argument
|
/external/tcpdump/ |
D | print-ppi.c | 63 struct pcap_pkthdr nhdr; in ppi_print() local 94 nhdr = *h; in ppi_print() 95 nhdr.caplen = caplen; in ppi_print() 96 nhdr.len = length; in ppi_print() 97 hdrlen = printer(ndo, &nhdr, p); in ppi_print()
|
D | print-pktap.c | 107 struct pcap_pkthdr nhdr; in pktap_if_print() local 148 nhdr = *h; in pktap_if_print() 149 nhdr.caplen = caplen; in pktap_if_print() 150 nhdr.len = length; in pktap_if_print() 151 hdrlen += printer(ndo, &nhdr, p); in pktap_if_print()
|
D | print-esp.c | 639 int *nhdr in esp_print() 816 if (nhdr) in esp_print() 817 *nhdr = *(ep - 1); in esp_print()
|
/external/elfutils/libdwelf/ |
D | dwelf_elf_gnu_build_id.c | 44 GElf_Nhdr nhdr; in check_notes() local 47 while ((pos = gelf_getnote (data, pos, &nhdr, &name_pos, &desc_pos)) > 0) in check_notes() 48 if (nhdr.n_type == NT_GNU_BUILD_ID in check_notes() 49 && nhdr.n_namesz == sizeof "GNU" in check_notes() 55 *build_id_len = nhdr.n_descsz; in check_notes()
|
/external/google-breakpad/src/tools/linux/md2core/ |
D | minidump-2-core.cc | 756 Nhdr nhdr; in WriteThread() local 757 memset(&nhdr, 0, sizeof(nhdr)); in WriteThread() 758 nhdr.n_namesz = 5; in WriteThread() 759 nhdr.n_descsz = sizeof(struct prstatus); in WriteThread() 760 nhdr.n_type = NT_PRSTATUS; in WriteThread() 761 if (!writea(1, &nhdr, sizeof(nhdr)) || in WriteThread() 768 nhdr.n_descsz = sizeof(user_fpregs_struct); in WriteThread() 769 nhdr.n_type = NT_FPREGSET; in WriteThread() 770 if (!writea(1, &nhdr, sizeof(nhdr)) || in WriteThread() 778 nhdr.n_descsz = sizeof(user_fpxregs_struct); in WriteThread() [all …]
|
/external/libnl/lib/route/ |
D | neigh.c | 567 struct ndmsg nhdr = { in build_neigh_msg() local 575 nhdr.ndm_family = nl_addr_get_family(tmpl->n_dst); in build_neigh_msg() 578 nhdr.ndm_family = AF_BRIDGE; in build_neigh_msg() 581 nhdr.ndm_flags = tmpl->n_flags; in build_neigh_msg() 584 nhdr.ndm_state = tmpl->n_state; in build_neigh_msg() 590 if (nlmsg_append(msg, &nhdr, sizeof(nhdr), NLMSG_ALIGNTO) < 0) in build_neigh_msg()
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_peap.c | 825 struct eap_hdr *nhdr; in eap_peap_decrypt() local 832 nhdr = wpabuf_put(nmsg, sizeof(*nhdr)); in eap_peap_decrypt() 834 nhdr->code = req->code; in eap_peap_decrypt() 835 nhdr->identifier = req->identifier; in eap_peap_decrypt() 836 nhdr->length = host_to_be16(sizeof(struct eap_hdr) + in eap_peap_decrypt()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_peap.c | 1095 struct eap_hdr *nhdr; in eap_peap_process_phase2() local 1105 nhdr = wpabuf_put(nbuf, sizeof(*nhdr)); in eap_peap_process_phase2() 1106 nhdr->code = resp->code; in eap_peap_process_phase2() 1107 nhdr->identifier = resp->identifier; in eap_peap_process_phase2() 1108 nhdr->length = host_to_be16(sizeof(struct eap_hdr) + in eap_peap_process_phase2()
|
/external/elfutils/src/ |
D | elflint.c | 4284 GElf_Nhdr nhdr; in check_note_data() local 4289 &nhdr, &name_offset, &desc_offset)) > 0) in check_note_data() 4295 switch (nhdr.n_type) in check_note_data() 4319 phndx, (uint32_t) nhdr.n_type, start + offset); in check_note_data() 4325 (uint32_t) nhdr.n_type, offset); in check_note_data() 4328 switch (nhdr.n_type) in check_note_data() 4335 if (nhdr.n_namesz == sizeof ELF_NOTE_GNU in check_note_data() 4342 if (nhdr.n_descsz == 0 && nhdr.n_type == NT_VERSION) in check_note_data() 4352 if (nhdr.n_namesz >= sizeof ELF_NOTE_GNU_BUILD_ATTRIBUTE_PREFIX in check_note_data() 4362 if (nhdr.n_namesz == sizeof "Linux" in check_note_data() [all …]
|
D | readelf.c | 12286 handle_core_note (Ebl *ebl, const GElf_Nhdr *nhdr, in handle_core_note() argument 12295 if (! ebl_core_note (ebl, nhdr, name, desc, in handle_core_note() 12304 nregloc == 0 ? nhdr->n_descsz : 0, in handle_core_note() 12325 GElf_Nhdr nhdr; in handle_notes_data() local 12330 &nhdr, &name_offset, &desc_offset)) > 0) in handle_notes_data() 12332 const char *name = nhdr.n_namesz == 0 ? "" : data->d_buf + name_offset; in handle_notes_data() 12344 ? strlen (print_name) : nhdr.n_namesz); in handle_notes_data() 12349 (int) print_namesz, print_name, nhdr.n_descsz, in handle_notes_data() 12351 ? ebl_core_note_type_name (ebl, nhdr.n_type, in handle_notes_data() 12353 : ebl_object_note_type_name (ebl, name, nhdr.n_type, in handle_notes_data() [all …]
|
D | ChangeLog | 181 ELF_NOTE_GNU_BUILD_ATTRIBUTE_PREFIX. Pass nhdr.n_namesz to
|