Home
last modified time | relevance | path

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

/third_party/mesa3d/src/util/
Dbuild_id.c42 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()
96 if (note->nhdr.n_type == 0x534f484f && note > 20) { in build_id_find_nhdr_callback()
132 return note->nhdr.n_descsz; in build_id_length()
/third_party/elfutils/tests/
Dxlate_notes.c101 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()
/third_party/elfutils/backends/
Dlinux-core-note.c213 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 …]
Dx86_corenote.c31 return ioperm_info (nhdr->n_descsz, \
Di386_corenote.c109 return tls_info (nhdr->n_descsz, regs_offset, nregloc, reglocs, \
/third_party/elfutils/libdwfl/
Dlinux-core-attach.c104 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()
187 const char *name = (nhdr.n_namesz == 0 in core_set_initial_registers()
195 int core_note_err = ebl_core_note (core_arg->ebl, &nhdr, name, desc, in core_set_initial_registers()
199 if (core_note_err == 0 || nhdr.n_type != NT_PRSTATUS) in core_set_initial_registers()
[all …]
Dlinux-kernel-modules.c584 GElf_Nhdr nhdr; in check_notes() member
599 GElf_Nhdr *nhdr = (void *) p; in check_notes() local
600 len += sizeof *nhdr; in check_notes()
607 if (nhdr->n_type == NT_GNU_PROPERTY_TYPE_0 in check_notes()
608 && nhdr->n_namesz == sizeof "GNU" in check_notes()
609 && name + nhdr->n_namesz < &buf.data[n] in check_notes()
612 len += nhdr->n_namesz; in check_notes()
616 len += nhdr->n_descsz; in check_notes()
622 len += nhdr->n_namesz; in check_notes()
626 len += nhdr->n_descsz; in check_notes()
[all …]
Dcore-file.c525 GElf_Nhdr nhdr; in dwfl_core_file_report() local
528 while ((pos = gelf_getnote (notes, pos, &nhdr, in dwfl_core_file_report()
530 if (nhdr.n_namesz == sizeof "CORE" in dwfl_core_file_report()
533 if (nhdr.n_type == NT_AUXV) in dwfl_core_file_report()
536 auxv_size = nhdr.n_descsz; in dwfl_core_file_report()
538 if (nhdr.n_type == NT_FILE) in dwfl_core_file_report()
541 note_file_size = nhdr.n_descsz; in dwfl_core_file_report()
/third_party/elfutils/libebl/
Deblcorenote.c44 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()
Deblopenbackend.c187 static int default_core_note (const GElf_Nhdr *nhdr, const char *name,
539 default_core_note (const GElf_Nhdr *nhdr __attribute__ ((unused)), in default_core_note() argument
Dlibebl.h310 extern int ebl_core_note (Ebl *ebl, const GElf_Nhdr *nhdr,
/third_party/elfutils/libdwelf/
Ddwelf_elf_gnu_build_id.c44 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()
/third_party/libunwind/src/dwarf/
DGfind_unwind_table.c166 if (note->nhdr.n_type == NT_GNU_BUILD_ID && in dwarf_find_unwind_table()
167 note->nhdr.n_descsz != 0 && in dwarf_find_unwind_table()
168 note->nhdr.n_namesz == 4 && in dwarf_find_unwind_table()
175 ALIGN(note->nhdr.n_namesz, 4) + in dwarf_find_unwind_table()
176 ALIGN(note->nhdr.n_descsz, 4); in dwarf_find_unwind_table()
178 if (note->nhdr.n_type == 0x534f484f && note_len > 20) { in dwarf_find_unwind_table()
/third_party/libbpf/src/
Dusdt.c566 static int parse_usdt_note(Elf *elf, const char *path, GElf_Nhdr *nhdr,
583 GElf_Nhdr nhdr; in collect_usdt_targets() local
615 while ((off = gelf_getnote(data, off, &nhdr, &name_off, &desc_off)) > 0) { in collect_usdt_targets()
621 err = parse_usdt_note(elf, path, &nhdr, data->d_buf, name_off, desc_off, &note); in collect_usdt_targets()
1089 static int parse_usdt_note(Elf *elf, const char *path, GElf_Nhdr *nhdr, in parse_usdt_note() argument
1098 if (strncmp(data + name_off, USDT_NOTE_NAME, nhdr->n_namesz) != 0) in parse_usdt_note()
1100 if (nhdr->n_type != USDT_NOTE_TYPE) in parse_usdt_note()
1104 len = nhdr->n_descsz; in parse_usdt_note()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Deap_peap.c809 struct eap_hdr *nhdr; in eap_peap_decrypt() local
816 nhdr = wpabuf_put(nmsg, sizeof(*nhdr)); in eap_peap_decrypt()
818 nhdr->code = req->code; in eap_peap_decrypt()
819 nhdr->identifier = req->identifier; in eap_peap_decrypt()
820 nhdr->length = host_to_be16(sizeof(struct eap_hdr) + in eap_peap_decrypt()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Deap_peap.c863 struct eap_hdr *nhdr; in eap_peap_decrypt() local
870 nhdr = wpabuf_put(nmsg, sizeof(*nhdr)); in eap_peap_decrypt()
872 nhdr->code = req->code; in eap_peap_decrypt()
873 nhdr->identifier = req->identifier; in eap_peap_decrypt()
874 nhdr->length = host_to_be16(sizeof(struct eap_hdr) + in eap_peap_decrypt()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
Deap_server_peap.c1094 struct eap_hdr *nhdr; in eap_peap_process_phase2() local
1104 nhdr = wpabuf_put(nbuf, sizeof(*nhdr)); in eap_peap_process_phase2()
1105 nhdr->code = resp->code; in eap_peap_process_phase2()
1106 nhdr->identifier = resp->identifier; in eap_peap_process_phase2()
1107 nhdr->length = host_to_be16(sizeof(struct eap_hdr) + in eap_peap_process_phase2()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
Deap_server_peap.c1125 struct eap_hdr *nhdr; in eap_peap_process_phase2() local
1135 nhdr = wpabuf_put(nbuf, sizeof(*nhdr)); in eap_peap_process_phase2()
1136 nhdr->code = resp->code; in eap_peap_process_phase2()
1137 nhdr->identifier = resp->identifier; in eap_peap_process_phase2()
1138 nhdr->length = host_to_be16(sizeof(struct eap_hdr) + in eap_peap_process_phase2()
/third_party/elfutils/src/
Delflint.c4310 GElf_Nhdr nhdr; in check_note_data() local
4315 &nhdr, &name_offset, &desc_offset)) > 0) in check_note_data()
4321 switch (nhdr.n_type) in check_note_data()
4345 phndx, (uint32_t) nhdr.n_type, start + offset); in check_note_data()
4351 (uint32_t) nhdr.n_type, offset); in check_note_data()
4354 switch (nhdr.n_type) in check_note_data()
4361 if (nhdr.n_namesz == sizeof ELF_NOTE_GNU in check_note_data()
4368 if (nhdr.n_descsz == 0 && nhdr.n_type == NT_VERSION) in check_note_data()
4378 if (nhdr.n_namesz >= sizeof ELF_NOTE_GNU_BUILD_ATTRIBUTE_PREFIX in check_note_data()
4387 if (nhdr.n_namesz == sizeof ELF_NOTE_FDO in check_note_data()
[all …]
Dreadelf.c12644 handle_core_note (Ebl *ebl, const GElf_Nhdr *nhdr, in handle_core_note() argument
12653 if (! ebl_core_note (ebl, nhdr, name, desc, in handle_core_note()
12662 nregloc == 0 ? nhdr->n_descsz : 0, in handle_core_note()
12683 GElf_Nhdr nhdr; in handle_notes_data() local
12688 &nhdr, &name_offset, &desc_offset)) > 0) in handle_notes_data()
12690 const char *name = nhdr.n_namesz == 0 ? "" : data->d_buf + name_offset; in handle_notes_data()
12701 ? strlen (print_name) : nhdr.n_namesz); in handle_notes_data()
12706 (int) print_namesz, print_name, nhdr.n_descsz, in handle_notes_data()
12708 ? ebl_core_note_type_name (ebl, nhdr.n_type, in handle_notes_data()
12710 : ebl_object_note_type_name (ebl, name, nhdr.n_type, in handle_notes_data()
[all …]
DChangeLog722 ELF_NOTE_GNU_BUILD_ATTRIBUTE_PREFIX. Pass nhdr.n_namesz to
/third_party/libunwind/include/
Dlibunwind_i.h331 ElfW(Nhdr) nhdr;
/third_party/libunwind/src/
Dos-ohos.c309 *length = map->ei.build_id_note->nhdr.n_descsz; in unw_get_build_id()