Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 79) sorted by relevance

1234

/art/tools/
Dstream-trace-converter.py71 def PrintHeader(self, header): argument
72 header.write('*version\n');
73 header.write('3\n');
74 header.write('data-file-overflow=false\n');
75 header.write('clock=dual\n');
76 header.write('vm=art\n');
157 def Finalize(self, header): argument
163 header.seek(0)
164 header.truncate()
171 header.write(line)
[all …]
/art/compiler/jit/
Djit_logger.cc233 PerfJitHeader header; in WriteJitDumpHeader() local
235 std::memset(&header, 0, sizeof(header)); in WriteJitDumpHeader()
236 header.magic_ = PerfJitHeader::kMagic; in WriteJitDumpHeader()
237 header.version_ = PerfJitHeader::kVersion; in WriteJitDumpHeader()
238 header.size_ = sizeof(header); in WriteJitDumpHeader()
239 header.elf_mach_target_ = GetElfMach(); in WriteJitDumpHeader()
240 header.process_id_ = static_cast<uint32_t>(getpid()); in WriteJitDumpHeader()
241 header.time_stamp_ = art::NanoTime(); // CLOCK_MONOTONIC clock is required. in WriteJitDumpHeader()
242 header.flags_ = 0; in WriteJitDumpHeader()
244 bool res = jit_dump_file_->WriteFully(reinterpret_cast<const char*>(&header), sizeof(header)); in WriteJitDumpHeader()
/art/compiler/utils/
Dtest_dex_file_builder.h89 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(&header_data.data); in Build() local
90 std::copy_n(DexFile::kDexMagic, 4u, header->magic_); in Build()
91 std::copy_n(DexFile::kDexMagicVersions[0], 4u, header->magic_ + 4u); in Build()
92 header->header_size_ = sizeof(DexFile::Header); in Build()
93 header->endian_tag_ = DexFile::kDexEndianConstant; in Build()
94 header->link_size_ = 0u; // Unused. in Build()
95 header->link_off_ = 0u; // Unused. in Build()
96 header->map_off_ = 0u; // Unused. TODO: This is wrong. Dex files created by this builder in Build()
109 header->string_ids_size_ = strings_.size(); in Build()
110 header->string_ids_off_ = strings_.empty() ? 0u : string_ids_offset; in Build()
[all …]
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DRawDexFile.java28 public HeaderItem header; field in RawDexFile
60 (header = new HeaderItem()).read(file); in read()
63 stringIds = new ArrayList<StringIdItem>(header.stringIdsSize); in read()
64 typeIds = new ArrayList<TypeIdItem>(header.typeIdsSize); in read()
65 protoIds = new ArrayList<ProtoIdItem>(header.protoIdsSize); in read()
66 fieldIds = new ArrayList<FieldIdItem>(header.fieldIdsSize); in read()
67 methodIds = new ArrayList<MethodIdItem>(header.methodIdsSize); in read()
68 classDefs = new ArrayList<ClassDefItem>(header.classDefsSize); in read()
94 header.stringIdsSize = stringIds.size(); in write()
107 header.methodIdsSize = methodIds.size(); in write()
[all …]
DOffsetTracker.java324 rawDexFile.header.fieldIdsOff.unsetNullAndPointTo(fieldOffsettable); in addFieldIdsToHeaderAndMapFile()
325 rawDexFile.header.fieldIdsSize = 1; in addFieldIdsToHeaderAndMapFile()
365 HeaderItem header = rawDexFile.header; in updateOffsetsInHeaderAndMapFile() local
367 updateHeaderOffsetIfValid(header.stringIdsOff, prevFirstOffsettable, in updateOffsetsInHeaderAndMapFile()
370 updateHeaderOffsetIfValid(header.typeIdsOff, prevFirstOffsettable, in updateOffsetsInHeaderAndMapFile()
373 updateHeaderOffsetIfValid(header.protoIdsOff, prevFirstOffsettable, in updateOffsetsInHeaderAndMapFile()
376 updateHeaderOffsetIfValid(header.fieldIdsOff, prevFirstOffsettable, in updateOffsetsInHeaderAndMapFile()
379 updateHeaderOffsetIfValid(header.methodIdsOff, prevFirstOffsettable, in updateOffsetsInHeaderAndMapFile()
382 updateHeaderOffsetIfValid(header.classDefsOff, prevFirstOffsettable, in updateOffsetsInHeaderAndMapFile()
DOffset.java66 public Offset(boolean header) { in Offset() argument
67 pointsAtHeader = header; in Offset()
/art/compiler/debug/
Delf_debug_writer.cc177 std::vector<MethodDebugInfo> MakeTrampolineInfos(const OatHeader& header) { in MakeTrampolineInfos() argument
179 { "interpreterToInterpreterBridge", header.GetInterpreterToInterpreterBridgeOffset() }, in MakeTrampolineInfos()
180 { "interpreterToCompiledCodeBridge", header.GetInterpreterToCompiledCodeBridgeOffset() }, in MakeTrampolineInfos()
181 { "jniDlsymLookup", header.GetJniDlsymLookupOffset() }, in MakeTrampolineInfos()
182 { "quickGenericJniTrampoline", header.GetQuickGenericJniTrampolineOffset() }, in MakeTrampolineInfos()
183 { "quickImtConflictTrampoline", header.GetQuickImtConflictTrampolineOffset() }, in MakeTrampolineInfos()
184 { "quickResolutionTrampoline", header.GetQuickResolutionTrampolineOffset() }, in MakeTrampolineInfos()
185 { "quickToInterpreterBridge", header.GetQuickToInterpreterBridgeOffset() }, in MakeTrampolineInfos()
192 info.isa = header.GetInstructionSet(); in MakeTrampolineInfos()
194 info.code_address = it.second - header.GetExecutableOffset(); in MakeTrampolineInfos()
Delf_debug_frame_writer.h250 dwarf::Writer<> header(&buffer); in WriteCFISection()
251 header.PushUint8(1); // Version. in WriteCFISection()
254 header.PushUint8(dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4); in WriteCFISection()
256 header.PushUint8(dwarf::DW_EH_PE_udata4); in WriteCFISection()
259 header.PushUint8(dwarf::DW_EH_PE_datarel | dwarf::DW_EH_PE_sdata4); in WriteCFISection()
261 header.PushInt32(cfi_section->GetAddress() - (header_address + 4u)); in WriteCFISection()
263 header.PushUint32(dchecked_integral_cast<uint32_t>(binary_search_table.size()/2)); in WriteCFISection()
/art/test/098-ddmc/
Dexpected.txt2 empty=Allocations[message header len: 15 entry header len: 9 stack frame len: 8 number of entries: …
14 reset=Allocations[message header len: 15 entry header len: 9 stack frame len: 8 number of entries: …
23 goodbye=Allocations[message header len: 15 entry header len: 9 stack frame len: 8 number of entries…
/art/runtime/
Ddex_file_test.cc278 const DexFile::Header& header = dex_file->GetHeader(); in ValidateDexFileHeader() local
279 EXPECT_EQ(*kExpectedDexFileMagic, *header.magic_); in ValidateDexFileHeader()
280 EXPECT_EQ(0x00d87910U, header.checksum_); in ValidateDexFileHeader()
281 EXPECT_EQ(*kExpectedSha1, *header.signature_); in ValidateDexFileHeader()
282 EXPECT_EQ(904U, header.file_size_); in ValidateDexFileHeader()
283 EXPECT_EQ(112U, header.header_size_); in ValidateDexFileHeader()
284 EXPECT_EQ(0U, header.link_size_); in ValidateDexFileHeader()
285 EXPECT_EQ(0U, header.link_off_); in ValidateDexFileHeader()
286 EXPECT_EQ(15U, header.string_ids_size_); in ValidateDexFileHeader()
287 EXPECT_EQ(112U, header.string_ids_off_); in ValidateDexFileHeader()
[all …]
Doat_quick_method_header.h46 uintptr_t header = code - OFFSETOF_MEMBER(OatQuickMethodHeader, code_); in FromCodePointer() local
48 IsAlignedParam(header, GetInstructionSetAlignment(kRuntimeISA))) in FromCodePointer()
49 << std::hex << code << " " << std::hex << header; in FromCodePointer()
50 return reinterpret_cast<OatQuickMethodHeader*>(header); in FromCodePointer()
/art/compiler/optimizing/
Dloop_optimization_test.cc64 HBasicBlock* header = new (&allocator_) HBasicBlock(graph_); in AddLoop() local
66 graph_->AddBlock(header); in AddLoop()
69 position->ReplaceSuccessor(successor, header); in AddLoop()
70 header->AddSuccessor(body); in AddLoop()
71 header->AddSuccessor(successor); in AddLoop()
72 header->AddInstruction(new (&allocator_) HIf(parameter_)); in AddLoop()
73 body->AddSuccessor(header); in AddLoop()
75 return header; in AddLoop()
Dlinear_order.cc55 for (HBasicBlock* header : graph->GetBlocks()) { in IsLinearOrderWellFormed()
56 if (header == nullptr || !header->IsLoopHeader()) { in IsLinearOrderWellFormed()
59 HLoopInformation* loop = header->GetLoopInformation(); in IsLinearOrderWellFormed()
65 if (found_blocks == 1u && block != header) { in IsLinearOrderWellFormed()
/art/dexlayout/
Ddex_visualize.cc47 explicit Dumper(dex_ir::Header* header) in Dumper() argument
50 dex_ir::GetSortedDexFileSections(header, dex_ir::SortDirection::kSortDescending)) { } in Dumper()
247 void VisualizeDexLayout(dex_ir::Header* header, in VisualizeDexLayout() argument
251 std::unique_ptr<Dumper> dumper(new Dumper(header)); in VisualizeDexLayout()
257 const uint32_t class_defs_size = header->GetCollections().ClassDefsSize(); in VisualizeDexLayout()
259 dex_ir::ClassDef* class_def = header->GetCollections().GetClassDef(class_index); in VisualizeDexLayout()
306 static uint32_t FindNextByteAfterSection(dex_ir::Header* header, in FindNextByteAfterSection() argument
315 return header->FileSize(); in FindNextByteAfterSection()
321 void ShowDexSectionStatistics(dex_ir::Header* header, size_t dex_file_index) { in ShowDexSectionStatistics() argument
325 header->FileSize()); in ShowDexSectionStatistics()
[all …]
Ddex_visualize.h36 void VisualizeDexLayout(dex_ir::Header* header,
41 void ShowDexSectionStatistics(dex_ir::Header* header, size_t dex_file_index);
Ddex_writer.h31 DexWriter(dex_ir::Header* header, MemMap* mem_map) : header_(header), mem_map_(mem_map) { } in DexWriter() argument
33 static void Output(dex_ir::Header* header, MemMap* mem_map);
Ddexlayout.h76 header = nullptr)
77 : options_(options), info_(info), out_file_(out_file), header_(header) { } in options_()
83 void SetHeader(dex_ir::Header* header) { header_ = header; } in SetHeader() argument
/art/test/509-pre-header/
Dinfo.txt2 The invariant that the pre header of a loop header is the
/art/runtime/utils/
Ddex_cache_arrays_layout-inl.h32 const DexFile::Header& header, in DexCacheArraysLayout() argument
37 RoundUp(types_offset_ + TypesSize(header.type_ids_size_), MethodsAlignment())), in DexCacheArraysLayout()
39 RoundUp(methods_offset_ + MethodsSize(header.method_ids_size_), StringsAlignment())), in DexCacheArraysLayout()
41 RoundUp(strings_offset_ + StringsSize(header.string_ids_size_), FieldsAlignment())), in DexCacheArraysLayout()
43 RoundUp(fields_offset_ + FieldsSize(header.field_ids_size_), MethodTypesAlignment())), in DexCacheArraysLayout()
45 RoundUp(method_types_offset_ + MethodTypesSize(header.proto_ids_size_), in DexCacheArraysLayout()
/art/test/566-polymorphic-inlining/
Dpolymorphic_inline.cc35 OatQuickMethodHeader* header = nullptr; in do_checks() local
40 header = OatQuickMethodHeader::FromEntryPoint(pc); in do_checks()
50 CodeInfo info = header->GetOptimizedCodeInfo(); in do_checks()
/art/test/663-odd-dex-size2/
Dinfo.txt12 1) Add 1 to the size value in the dex header.
14 3) Change the checksum in the dex header.
/art/test/663-odd-dex-size/
Dinfo.txt12 1) Add 1 to the size value in the dex header.
14 3) Change the checksum in the dex header.
/art/test/663-odd-dex-size4/
Dinfo.txt17 1) Add 1 to the size value in the dex header.
19 3) Change the checksum in the dex header.
/art/test/663-odd-dex-size3/
Dinfo.txt12 1) Add 1 to the size value in the dex header.
14 3) Change the checksum in the dex header.
/art/runtime/gc/space/
Dbump_pointer_space-walk-inl.h79 BlockHeader* header = reinterpret_cast<BlockHeader*>(pos); in Walk() local
80 size_t block_size = header->size_; in Walk()

1234