| /developtools/smartperf_host/trace_streamer/src/parser/htrace_pbreader_parser/ |
| D | htrace_symbols_detail_parser.cpp | 33 …ProtoReader::TracePluginResult_Reader reader((const uint8_t*)(tracePacket.data_), tracePacket.size… in Parse() local 34 if (!reader.has_symbols_detail()) { in Parse() 37 for (auto i = reader.symbols_detail(); i; ++i) { in Parse() 38 ProtoReader::SymbolsDetailMsg_Reader reader(i->ToBytes()); in Parse() local 39 streamFilters_->symbolsFilter_->RegisterFunc(reader.symbol_addr(), in Parse() 40 … traceDataCache_->GetDataIndex(reader.symbol_name().ToStdString())); in Parse()
|
| D | htrace_native_hook_parser.cpp | 97 auto& reader = nativeHookMetaData->reader_; in ParseNativeHookAuxiliaryEvent() local 98 if (reader->has_stack_map()) { in ParseNativeHookAuxiliaryEvent() 99 ParseStackMap(reader->stack_map()); in ParseNativeHookAuxiliaryEvent() 100 } else if (reader->has_frame_map()) { in ParseNativeHookAuxiliaryEvent() 102 } else if (reader->has_file_path()) { in ParseNativeHookAuxiliaryEvent() 103 ParseFileEvent(reader->file_path()); in ParseNativeHookAuxiliaryEvent() 104 } else if (reader->has_symbol_name()) { in ParseNativeHookAuxiliaryEvent() 105 ParseSymbolEvent(reader->symbol_name()); in ParseNativeHookAuxiliaryEvent() 106 } else if (reader->has_thread_name_map()) { in ParseNativeHookAuxiliaryEvent() 107 ParseThreadEvent(reader->thread_name_map()); in ParseNativeHookAuxiliaryEvent() [all …]
|
| D | htrace_clock_detail_parser.cpp | 43 …ProtoReader::TracePluginResult_Reader reader((const uint8_t*)(tracePacket.data_), tracePacket.size… in Parse() local 44 if (!reader.has_clocks_detail()) { in Parse() 50 for (auto i = reader.clocks_detail(); i; i++) { in Parse()
|
| /developtools/profiler/host/smartperf/trace_streamer/src/parser/htrace_pbreader_parser/ |
| D | htrace_symbols_detail_parser.cpp | 33 …ProtoReader::TracePluginResult_Reader reader((const uint8_t*)(tracePacket.data_), tracePacket.size… in Parse() local 34 if (!reader.has_symbols_detail()) { in Parse() 37 for (auto i = reader.symbols_detail(); i; ++i) { in Parse() 38 ProtoReader::SymbolsDetailMsg_Reader reader(i->ToBytes()); in Parse() local 39 streamFilters_->symbolsFilter_->RegisterFunc(reader.symbol_addr(), in Parse() 40 … traceDataCache_->GetDataIndex(reader.symbol_name().ToStdString())); in Parse()
|
| D | htrace_native_hook_parser.cpp | 97 auto& reader = nativeHookMetaData->reader_; in ParseNativeHookAuxiliaryEvent() local 98 if (reader->has_stack_map()) { in ParseNativeHookAuxiliaryEvent() 99 ParseStackMap(reader->stack_map()); in ParseNativeHookAuxiliaryEvent() 100 } else if (reader->has_frame_map()) { in ParseNativeHookAuxiliaryEvent() 102 } else if (reader->has_file_path()) { in ParseNativeHookAuxiliaryEvent() 103 ParseFileEvent(reader->file_path()); in ParseNativeHookAuxiliaryEvent() 104 } else if (reader->has_symbol_name()) { in ParseNativeHookAuxiliaryEvent() 105 ParseSymbolEvent(reader->symbol_name()); in ParseNativeHookAuxiliaryEvent() 106 } else if (reader->has_thread_name_map()) { in ParseNativeHookAuxiliaryEvent() 107 ParseThreadEvent(reader->thread_name_map()); in ParseNativeHookAuxiliaryEvent() [all …]
|
| D | htrace_clock_detail_parser.cpp | 41 …ProtoReader::TracePluginResult_Reader reader((const uint8_t*)(tracePacket.data_), tracePacket.size… in Parse() local 42 if (!reader.has_clocks_detail()) { in Parse() 48 for (auto i = reader.clocks_detail(); i; i++) { in Parse()
|
| /developtools/hiperf/test/fuzztest/perffile_fuzzer/ |
| D | PerfFile_fuzzer.cpp | 45 std::unique_ptr<PerfFileReaderFuzzer> reader = in Instance() local 48 if (!reader->ReadFileHeader()) { in Instance() 52 if (!reader->ReadAttrSection()) { in Instance() 56 return reader; in Instance() 67 auto reader = PerfFileReaderFuzzer::Instance(testData, data, size); in FuzzPerfFileReader() local 68 if (reader == nullptr) { in FuzzPerfFileReader() 73 reader->ReadFeatureSection(); in FuzzPerfFileReader() 78 reader->ReadDataSection(recordCallback); in FuzzPerfFileReader()
|
| /developtools/profiler/device/services/profiler_service/test/unittest/ |
| D | trace_file_reader_test.cpp | 81 auto reader = std::make_shared<TraceFileReader>(); variable 82 ASSERT_NE(reader, nullptr); 83 ASSERT_TRUE(reader->Open(path)); 87 long bytes = reader->Read(data); 116 auto reader = std::make_shared<TraceFileReader>(); variable 117 ASSERT_NE(reader, nullptr); 118 ASSERT_TRUE(reader->Open(path)); 123 bytes = reader->Read(data); 144 auto reader = std::make_shared<TraceFileReader>(); variable 145 ASSERT_NE(reader, nullptr); [all …]
|
| /developtools/smartperf_host/trace_streamer/src/filter/ |
| D | native_hook_filter.cpp | 96 ProtoReader::Frame_Reader reader(frame.Data(), frame.Size()); in ParseFrame() local 100 if (!symbolIdToSymbolIndex_.count(reader.symbol_name_id())) { in ParseFrame() 104 symbolIndex = symbolIdToSymbolIndex_.at(reader.symbol_name_id()); in ParseFrame() 106 if (!filePathIdToFileIndex_.count(reader.file_path_id())) { in ParseFrame() 110 filePathIndex = filePathIdToFileIndex_.at(reader.file_path_id()); in ParseFrame() 112 symbolIndex = traceDataCache_->dataDict_.GetStringIndex(reader.symbol_name().ToStdString()); in ParseFrame() 113 filePathIndex = traceDataCache_->dataDict_.GetStringIndex(reader.file_path().ToStdString()); in ParseFrame() 115 …auto frameInfo = std::make_unique<NativeHookFrameInfo>(reader.ip(), reader.sp(), symbolIndex, file… in ParseFrame() 116 reader.offset(), reader.symbol_offset()); in ParseFrame() 155 ProtoReader::RecordStatisticsEvent_Reader reader(bytesView); in ParseStatisticEvent() local [all …]
|
| D | offline_symbolization_filter.h | 47 std::unique_ptr<ProtoReader::NativeHookData_Reader> reader) in NativeHookMetaData() 48 : seg_(seg), reader_(std::move(reader)) in NativeHookMetaData()
|
| /developtools/profiler/host/smartperf/trace_streamer/src/filter/ |
| D | native_hook_filter.cpp | 95 ProtoReader::Frame_Reader reader(frame.Data(), frame.Size()); in ParseFrame() local 99 if (!symbolIdToSymbolIndex_.count(reader.symbol_name_id())) { in ParseFrame() 103 symbolIndex = symbolIdToSymbolIndex_.at(reader.symbol_name_id()); in ParseFrame() 105 if (!filePathIdToFileIndex_.count(reader.file_path_id())) { in ParseFrame() 109 filePathIndex = filePathIdToFileIndex_.at(reader.file_path_id()); in ParseFrame() 111 symbolIndex = traceDataCache_->dataDict_.GetStringIndex(reader.symbol_name().ToStdString()); in ParseFrame() 112 filePathIndex = traceDataCache_->dataDict_.GetStringIndex(reader.file_path().ToStdString()); in ParseFrame() 114 …auto frameInfo = std::make_unique<NativeHookFrameInfo>(reader.ip(), reader.sp(), symbolIndex, file… in ParseFrame() 115 reader.offset(), reader.symbol_offset()); in ParseFrame() 151 ProtoReader::RecordStatisticsEvent_Reader reader(bytesView); in ParseStatisticEvent() local [all …]
|
| D | offline_symbolization_filter.h | 47 std::unique_ptr<ProtoReader::NativeHookData_Reader> reader) in NativeHookMetaData() 48 : seg_(seg), reader_(std::move(reader)) in NativeHookMetaData()
|
| D | native_hook_filter.h | 106 … std::shared_ptr<ProtoReader::SymbolTable_Reader> reader);
|
| /developtools/hdc/src/common/ |
| D | serial_struct_define.h | 171 struct reader { 251 struct LimitedReader : public reader { 252 LimitedReader(reader &parent, size_t sizeLimit) 271 reader &_parent; 275 static bool ReadByte(uint8_t &value, reader &in) 317 static bool ReadVarint(uint32_t &value, reader &in) 334 static bool ReadVarint(uint64_t &value, reader &in) 351 static bool ReadVarint(unsigned long &value, reader &in) 425 static bool ReadFixed(uint32_t &value, reader &in) 434 static bool ReadFixed(uint64_t &value, reader &in) [all …]
|
| /developtools/hiperf/src/ |
| D | hiperf_libreport.cpp | 113 auto reader = PerfFileReader::Instance(fileName); in GetReader() local 114 if (reader == nullptr) { in GetReader() 118 return reader; in GetReader() 131 auto reader = GetReader(perfFile); in ReportGetSymbolFiles() local 132 if (reader == nullptr) { in ReportGetSymbolFiles() 136 reader->ReadFeatureSection(); in ReportGetSymbolFiles() 137 for (auto &featureSection : reader->GetFeatureSections()) { in ReportGetSymbolFiles()
|
| D | perf_file_reader.cpp | 43 std::unique_ptr<PerfFileReader> reader = std::make_unique<PerfFileReader>(fileName, fp); in Instance() local 44 if (!reader->ReadFileHeader()) { in Instance() 46 if (reader->IsGzipFile()) { in Instance() 48 reader->fp_ = nullptr; in Instance() 62 reader->fp_ = fp2; in Instance() 63 reader->compressData_ = true; in Instance() 65 if (!reader->ReadFileHeader()) { in Instance() 74 if (!reader->ReadAttrSection()) { in Instance() 77 return reader; in Instance()
|
| /developtools/profiler/device/plugins/ftrace_plugin/test/unittest/ |
| D | ftrace_data_reader_test.cpp | 81 FtraceDataReader reader(path_); 87 EXPECT_EQ(reader.Read(buffer.data(), buffer.size()), bufferSize);
|
| /developtools/packing_tool/adapter/ohos/ |
| D | FileUtils.java | 145 BufferedReader reader = null; in getFileContent() local 152 reader = new BufferedReader(inputStreamReader); in getFileContent() 154 while ((tempString = reader.readLine()) != null) { in getFileContent() 161 closeStream(reader); in getFileContent() 392 InputStreamReader reader = null; in getJsonInZips() local 403 reader = new InputStreamReader(inputStream); in getJsonInZips() 404 br = new BufferedReader(reader); in getJsonInZips() 421 Utility.closeStream(reader); in getJsonInZips()
|
| /developtools/profiler/device/plugins/ftrace_plugin/src/ |
| D | flow_controller.cpp | 120 … auto reader = std::make_unique<FtraceDataReader>(FtraceFsOps::GetInstance().GetRawTracePath(i)); in CreateRawDataReaders() local 121 CHECK_NOTNULL(reader, false, "create reader %d FAILED!", i); in CreateRawDataReaders() 122 ftraceReaders_.emplace_back(std::move(reader)); in CreateRawDataReaders() 318 auto reader = ftraceReaders_[cpuid].get(); in ReadEventData() local 324 while ((nbytes = reader->Read(&buffer[used], rest)) > 0 && used < bufferSize) { in ReadEventData()
|
| /developtools/profiler/host/smartperf/ide/src/trace/ |
| D | SpApplication.ts | 836 let reader: FileReader | null = new FileReader(); 837 reader.readAsArrayBuffer(ev as any); 838 reader.onloadend = function (ev) { 903 reader = null; 998 let reader = new FileReader(); 999 reader.readAsArrayBuffer(ev as any); 1000 reader.onloadend = function (ev) {
|
| /developtools/smartperf_host/ide/src/trace/ |
| D | SpApplication.ts | 846 let reader: FileReader | null = new FileReader(); 847 reader.readAsArrayBuffer(ev as any); 848 reader.onloadend = function (ev) { 918 reader = null; 1016 let reader = new FileReader(); 1017 reader.readAsArrayBuffer(ev as any); 1018 reader.onloadend = function (ev) {
|
| /developtools/smartperf_host/trace_streamer/src/parser/ebpf_parser/ |
| D | ebpf_base.h | 36 bool InitEbpfDataParser(EbpfDataReader* reader);
|
| D | ebpf_base.cpp | 33 bool EbpfBase::InitEbpfDataParser(EbpfDataReader* reader) in InitEbpfDataParser() argument 35 auto clockId = reader->GetEbpfDataHeader()->header.clock; in InitEbpfDataParser() 41 reader_ = std::move(reader); in InitEbpfDataParser()
|
| /developtools/profiler/host/smartperf/trace_streamer/src/parser/ebpf_parser/ |
| D | ebpf_base.h | 36 bool InitEbpfDataParser(EbpfDataReader* reader);
|
| D | ebpf_base.cpp | 33 bool EbpfBase::InitEbpfDataParser(EbpfDataReader* reader) in InitEbpfDataParser() argument 35 auto clockId = reader->GetEbpfDataHeader()->header.clock; in InitEbpfDataParser() 41 reader_ = std::move(reader); in InitEbpfDataParser()
|