Searched refs:note_header (Results 1 – 7 of 7) sorted by relevance
/external/google-breakpad/src/common/linux/ |
D | file_id.cc | 65 const Nhdr* note_header = reinterpret_cast<const Nhdr*>(section); in ElfClassBuildIDNoteIdentifier() local 66 while (reinterpret_cast<const void *>(note_header) < section_end) { in ElfClassBuildIDNoteIdentifier() 67 if (note_header->n_type == NT_GNU_BUILD_ID) in ElfClassBuildIDNoteIdentifier() 69 note_header = reinterpret_cast<const Nhdr*>( in ElfClassBuildIDNoteIdentifier() 70 reinterpret_cast<const char*>(note_header) + sizeof(Nhdr) + in ElfClassBuildIDNoteIdentifier() 71 NOTE_PADDING(note_header->n_namesz) + in ElfClassBuildIDNoteIdentifier() 72 NOTE_PADDING(note_header->n_descsz)); in ElfClassBuildIDNoteIdentifier() 74 if (reinterpret_cast<const void *>(note_header) >= section_end || in ElfClassBuildIDNoteIdentifier() 75 note_header->n_descsz == 0) { in ElfClassBuildIDNoteIdentifier() 79 const char* build_id = reinterpret_cast<const char*>(note_header) + in ElfClassBuildIDNoteIdentifier() [all …]
|
D | synth_elf.cc | 246 Elf32_Nhdr note_header; in AddNote() local 247 memset(¬e_header, 0, sizeof(note_header)); in AddNote() 248 note_header.n_namesz = name.length() + 1; in AddNote() 249 note_header.n_descsz = desc_size; in AddNote() 250 note_header.n_type = type; in AddNote() 252 Append(reinterpret_cast<const uint8_t*>(¬e_header), in AddNote() 253 sizeof(note_header)); in AddNote()
|
/external/libchrome/base/debug/ |
D | elf_reader_linux.cc | 42 const Nhdr* note_header = reinterpret_cast<const Nhdr*>(segment.data()); in ElfSegmentBuildIDNoteAsString() local 43 while (note_header < section_end) { in ElfSegmentBuildIDNoteAsString() 44 if (note_header->n_type == NT_GNU_BUILD_ID) in ElfSegmentBuildIDNoteAsString() 46 note_header = reinterpret_cast<const Nhdr*>( in ElfSegmentBuildIDNoteAsString() 47 reinterpret_cast<const char*>(note_header) + sizeof(Nhdr) + in ElfSegmentBuildIDNoteAsString() 48 bits::Align(note_header->n_namesz, 4) + in ElfSegmentBuildIDNoteAsString() 49 bits::Align(note_header->n_descsz, 4)); in ElfSegmentBuildIDNoteAsString() 52 if (note_header >= section_end || note_header->n_descsz != kSHA1Length) in ElfSegmentBuildIDNoteAsString() 55 const uint8_t* guid = reinterpret_cast<const uint8_t*>(note_header) + in ElfSegmentBuildIDNoteAsString() 56 sizeof(Nhdr) + bits::Align(note_header->n_namesz, 4); in ElfSegmentBuildIDNoteAsString() [all …]
|
/external/perf_data_converter/src/quipper/ |
D | dso.cc | 80 GElf_Nhdr note_header; in GetBuildID() local 84 (next = gelf_getnote(data, off, ¬e_header, &name_off, &desc_off)) > 0; in GetBuildID() 87 string name(buf + name_off, strnlen(buf + name_off, note_header.n_namesz)); in GetBuildID() 88 string desc(buf + desc_off, note_header.n_descsz); in GetBuildID() 89 if (note_header.n_type == NT_GNU_BUILD_ID && name == ELF_NOTE_GNU) { in GetBuildID() 145 GElf_Nhdr note_header; in ReadBuildIdNote() local 147 while (data->ReadData(sizeof(note_header), ¬e_header)) { in ReadBuildIdNote() 148 size_t name_size = Align<4>(note_header.n_namesz); in ReadBuildIdNote() 149 size_t desc_size = Align<4>(note_header.n_descsz); in ReadBuildIdNote() 155 if (note_header.n_type == NT_GNU_BUILD_ID && name == ELF_NOTE_GNU) { in ReadBuildIdNote()
|
D | dso_android.cc | 58 Elf64_Nhdr note_header; in ReadBuildIdNote() local 60 while (data->ReadData(sizeof(note_header), ¬e_header)) { in ReadBuildIdNote() 61 size_t name_size = Align<4>(note_header.n_namesz); in ReadBuildIdNote() 62 size_t desc_size = Align<4>(note_header.n_descsz); in ReadBuildIdNote() 68 if (note_header.n_type == NT_GNU_BUILD_ID && name == ELF_NOTE_GNU) { in ReadBuildIdNote()
|
D | dso_test_utils.cc | 119 GElf_Nhdr note_header; in WriteElfWithMultipleBuildids() local 120 note_header.n_namesz = Align<4>(note_name.size()); in WriteElfWithMultipleBuildids() 121 note_header.n_descsz = Align<4>(buildid.size()); in WriteElfWithMultipleBuildids() 122 note_header.n_type = NT_GNU_BUILD_ID; in WriteElfWithMultipleBuildids() 124 data_str.append(reinterpret_cast<char *>(¬e_header), in WriteElfWithMultipleBuildids() 125 sizeof(note_header)); in WriteElfWithMultipleBuildids() 127 data_str.append(string(note_header.n_namesz - note_name.size(), '\0')); in WriteElfWithMultipleBuildids() 129 data_str.append(string(note_header.n_descsz - buildid.size(), '\0')); in WriteElfWithMultipleBuildids()
|
D | dso_test.cc | 104 const GElf_Nhdr note_header = { in TEST() local 119 data.append(reinterpret_cast<const char*>(¬e_header), sizeof(note_header)); in TEST()
|