/developtools/hdc/src/common/ |
D | usb.cpp | 78 auto header = BuildPacketHeader(hSession->sessionId, USB_OPTION_HEADER, length); in SendUSBBlock() local 81 if ((SendUSBRaw(hSession, header.data(), header.size())) <= 0) { in SendUSBBlock() 135 auto header = BuildPacketHeader(sessionIdOld, USB_OPTION_RESET, 0); in PreSendUsbSoftReset() local 136 if (SendUSBRaw(hSession, header.data(), header.size()) <= 0) { in PreSendUsbSoftReset() 148 USBHead *header = reinterpret_cast<USBHead *>(appendData); in CheckPacketOption() local 149 header->sessionId = ntohl(header->sessionId); in CheckPacketOption() 150 header->dataSize = ntohl(header->dataSize); in CheckPacketOption() 151 if (header->sessionId != hSession->sessionId) { in CheckPacketOption() 157 PreSendUsbSoftReset(hSession, header->sessionId); in CheckPacketOption() 160 if (header->option & USB_OPTION_HEADER) { in CheckPacketOption() [all …]
|
/developtools/profiler/host/smartperf/trace_streamer/test/unittest/ |
D | ebpf_parser_test.cpp | 56 ebpfHeader.header.magic = EPBF_ERROR_MAGIC; 74 ebpfHeader.header.headSize = EPBF_ERROR_HEAD_SIZE; 92 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; 93 ebpfHeader.header.cmdLineLen = 0; 94 ebpfHeader.header.headSize = EbpfDataHeader::EBPF_DATA_HEADER_SIZE; 103 EXPECT_EQ(parser->reader_->ebpfDataHeader_->header.clock, EBPF_CLOCK_BOOTTIME); 104 EXPECT_EQ(parser->reader_->ebpfDataHeader_->header.cmdLineLen, 0); 105 …EXPECT_EQ(parser->reader_->ebpfDataHeader_->header.headSize, EbpfDataHeader::EBPF_DATA_HEADER_SIZE… 117 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; 118 ebpfHeader.header.cmdLineLen = 0; [all …]
|
D | paged_memory_parser_test.cpp | 56 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; 57 ebpfHeader.header.cmdLineLen = COMMAND_LINE.length(); 86 EXPECT_TRUE(ebpfDataParser->reader_->ebpfDataHeader_->header.clock == EBPF_CLOCK_BOOTTIME); 114 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; 115 ebpfHeader.header.cmdLineLen = COMMAND_LINE.length(); 144 EXPECT_TRUE(ebpfDataParser->reader_->ebpfDataHeader_->header.clock == EBPF_CLOCK_BOOTTIME); 172 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; 173 ebpfHeader.header.cmdLineLen = COMMAND_LINE.length(); 204 EXPECT_TRUE(ebpfDataParser->reader_->ebpfDataHeader_->header.clock == EBPF_CLOCK_BOOTTIME); 234 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; [all …]
|
D | bio_parser_test.cpp | 60 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; 61 ebpfHeader.header.cmdLineLen = COMMAND_LINE.length(); 90 EXPECT_TRUE(ebpfDataParser->reader_->ebpfDataHeader_->header.clock == EBPF_CLOCK_BOOTTIME); 121 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; 122 ebpfHeader.header.cmdLineLen = COMMAND_LINE.length(); 151 EXPECT_TRUE(ebpfDataParser->reader_->ebpfDataHeader_->header.clock == EBPF_CLOCK_BOOTTIME); 182 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; 183 ebpfHeader.header.cmdLineLen = COMMAND_LINE.length(); 215 EXPECT_TRUE(ebpfDataParser->reader_->ebpfDataHeader_->header.clock == EBPF_CLOCK_BOOTTIME); 253 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; [all …]
|
D | ebpf_file_system_test.cpp | 73 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; 107 EXPECT_TRUE(parser->reader_->ebpfDataHeader_->header.clock == EBPF_CLOCK_BOOTTIME); 154 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; 188 EXPECT_TRUE(parser->reader_->ebpfDataHeader_->header.clock == EBPF_CLOCK_BOOTTIME); 236 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; 270 EXPECT_TRUE(parser->reader_->ebpfDataHeader_->header.clock == EBPF_CLOCK_BOOTTIME); 317 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; 351 EXPECT_TRUE(parser->reader_->ebpfDataHeader_->header.clock == EBPF_CLOCK_BOOTTIME); 399 ebpfHeader.header.clock = EBPF_CLOCK_BOOTTIME; 433 EXPECT_TRUE(parser->reader_->ebpfDataHeader_->header.clock == EBPF_CLOCK_BOOTTIME); [all …]
|
/developtools/profiler/device/services/profiler_service/src/ |
D | trace_file_helper.cpp | 53 bool TraceFileHelper::Update(TraceFileHeader& header) in Update() argument 56 if (memcpy_s(&header, sizeof(header), &header_, sizeof(header)) != 0) { in Update() 62 bool TraceFileHelper::Validate(const TraceFileHeader& header) in Validate() argument 65 return memcmp(&header_, &header, sizeof(header_)) == 0; in Validate()
|
D | trace_file_helper.h | 32 bool Update(TraceFileHeader& header); 34 bool Validate(const TraceFileHeader& header);
|
D | profiler_service.cpp | 417 TraceFileHeader header {}; in MergeStandaloneFile() local 419 header.data_.dataType = DataType::HIPERF_DATA; in MergeStandaloneFile() 421 header.data_.dataType = DataType::STANDALONE_DATA; in MergeStandaloneFile() 425 header.data_.length += fileSize; in MergeStandaloneFile() 426 size_t pluginSize = sizeof(header.data_.standalonePluginName); in MergeStandaloneFile() 427 …int ret = strncpy_s(header.data_.standalonePluginName, pluginSize, pluginName.c_str(), pluginSize … in MergeStandaloneFile() 432 pluginSize = sizeof(header.data_.pluginVersion); in MergeStandaloneFile() 433 ret = strncpy_s(header.data_.pluginVersion, pluginSize, pluginVersion.c_str(), pluginSize - 1); in MergeStandaloneFile() 438 fsTarget.write(reinterpret_cast<char*>(&header), sizeof(header)); in MergeStandaloneFile() 461 SHA256_Final(header.data_.sha256, &sha256Ctx); in MergeStandaloneFile() [all …]
|
/developtools/profiler/host/smartperf/trace_streamer/src/parser/hiperf_parser/hiperf/ |
D | perf_event_record.cpp | 115 header.type = type; in PerfEventRecord() 116 header.misc = in_kernel ? PERF_RECORD_MISC_KERNEL : PERF_RECORD_MISC_USER; in PerfEventRecord() 117 header.size = sizeof(header); in PerfEventRecord() 123 header.type = type; in PerfEventRecord() 124 header.misc = PERF_RECORD_MISC_USER; in PerfEventRecord() 125 header.size = sizeof(header); in PerfEventRecord() 130 header = *(reinterpret_cast<perf_event_header *>(p)); in PerfEventRecord() 139 *(reinterpret_cast<perf_event_header *>(p)) = header; in GetHeaderBinary() 159 prefix.c_str(), data_.sample_id, header.size, data_.pid, data_.tid, data_.nr, in DumpLog() 197 header.size -= data_.reg_nr * sizeof(u64); in ReplaceWithCallStack() [all …]
|
D | perf_file_reader.cpp | 296 perf_event_header *header = reinterpret_cast<perf_event_header *>(buf); in ReadRecord() local 297 if (header->size > sizeof(buf)) { in ReadRecord() 298 HLOGE("read record header size error %hu", header->size); in ReadRecord() 301 if (remainingSize >= header->size) { in ReadRecord() 303 if (Read(buf + headerSize, header->size - headerSize)) { in ReadRecord() 306 static_cast<perf_event_type>(header->type), data, *GetDefaultAttr()); in ReadRecord() 313 remainingSize -= header->size; in ReadRecord() 325 HLOGE("read record data size failed %zu", header->size - headerSize); in ReadRecord()
|
/developtools/hiperf/src/ |
D | perf_event_record.cpp | 114 header.type = type; in PerfEventRecord() 115 header.misc = in_kernel ? PERF_RECORD_MISC_KERNEL : PERF_RECORD_MISC_USER; in PerfEventRecord() 116 header.size = sizeof(header); in PerfEventRecord() 122 header.type = type; in PerfEventRecord() 123 header.misc = PERF_RECORD_MISC_USER; in PerfEventRecord() 124 header.size = sizeof(header); in PerfEventRecord() 129 header = *(reinterpret_cast<perf_event_header *>(p)); in PerfEventRecord() 138 *(reinterpret_cast<perf_event_header *>(p)) = header; in GetHeaderBinary() 158 prefix.c_str(), data_.sample_id, header.size, data_.pid, data_.tid, data_.nr, in DumpLog() 196 header.size -= data_.reg_nr * sizeof(u64); in ReplaceWithCallStack() [all …]
|
D | perf_file_writer.cpp | 177 perf_event_header *header = reinterpret_cast<perf_event_header *>(buf); in ReadRecords() local 178 HLOG_ASSERT(header->size < sizeof(buf)); in ReadRecords() 179 if (remainingSize >= header->size) { in ReadRecords() 181 if (Read(buf + headerSize, header->size - headerSize)) { in ReadRecords() 183 auto record = GetPerfEventRecord(static_cast<perf_event_type>(header->type), in ReadRecords() 188 remainingSize -= header->size; in ReadRecords() 365 featureSection->header.offset = contentOffset; in WriteFeatureData() 366 featureSection->header.size = featureSection->GetSize(); in WriteFeatureData() 367 contentOffset += featureSection->header.size; in WriteFeatureData() 369 featureSection->header.offset, featureSection->header.size); in WriteFeatureData() [all …]
|
D | subcommand_dump.cpp | 199 const perf_file_header &header = reader_->GetHeader(); in PrintHeaderInfo() local 202 for (size_t i = 0; i < sizeof(header.magic); ++i) { in PrintHeaderInfo() 203 PrintIndent(indent, "%c", header.magic[i]); in PrintHeaderInfo() 206 PrintIndent(indent, "header_size: %" PRId64 "\n", header.size); in PrintHeaderInfo() 207 if (header.size != sizeof(header)) { in PrintHeaderInfo() 210 PrintIndent(indent, "attr_size: %" PRId64 "\n", header.attrSize); in PrintHeaderInfo() 211 if (header.attrSize != sizeof(perf_file_attr)) { in PrintHeaderInfo() 216 header.attrs.offset, header.attrs.size); in PrintHeaderInfo() 219 header.data.offset, header.data.size); in PrintHeaderInfo() 221 header.eventTypes.offset, header.eventTypes.size); in PrintHeaderInfo() [all …]
|
D | perf_file_reader.cpp | 272 perf_event_header *header = reinterpret_cast<perf_event_header *>(buf); in ReadRecord() local 273 if (header->size > sizeof(buf)) { in ReadRecord() 274 HLOGE("read record header size error %hu", header->size); in ReadRecord() 277 if (remainingSize >= header->size) { in ReadRecord() 279 if (Read(buf + headerSize, header->size - headerSize)) { in ReadRecord() 282 static_cast<perf_event_type>(header->type), data, *GetDefaultAttr()); in ReadRecord() 289 remainingSize -= header->size; in ReadRecord() 301 HLOGE("read record data size failed %zu", header->size - headerSize); in ReadRecord()
|
/developtools/hiperf/include/ |
D | perf_event_record.h | 104 struct perf_event_header header; variable 116 return header.size; in GetSize() 120 return sizeof(header); in GetHeaderSize() 126 return header.type; in GetType() 130 return header.misc; in GetMisc() 134 return header.misc & PERF_RECORD_MISC_KERNEL; in inKernel() 138 return header.misc & PERF_RECORD_MISC_USER; in inUser() 213 header.size = sizeof(header) + sizeof(data_); in PerfRecordLost() 260 header.size = sizeof(header) + sizeof(data_);
|
/developtools/hiperf/test/unittest/resource/testdata/ |
D | ehdr_from_readelf_32 | 15 Size of this header: 52 (bytes) 20 Section header string table index: 31
|
D | ehdr_from_readelf_64 | 15 Size of this header: 64 (bytes) 20 Section header string table index: 31
|
/developtools/profiler/device/plugins/native_daemon/test/unittest/resource/testdata/ |
D | ehdr_from_readelf_32 | 15 Size of this header: 52 (bytes) 20 Section header string table index: 31
|
D | ehdr_from_readelf_64 | 15 Size of this header: 64 (bytes) 20 Section header string table index: 31
|
/developtools/profiler/host/smartperf/trace_streamer/src/parser/ebpf_parser/ |
D | ebpf_data_reader.cpp | 53 if (ebpfDataHeader_->header.magic != EbpfDataHeader::HEADER_MAGIC) { in InitEbpfHeader() 54 TS_LOGE("Get EBPF file header failed! magic = %lx", ebpfDataHeader_->header.magic); in InitEbpfHeader() 57 if (ebpfDataHeader_->header.headSize != EbpfDataHeader::EBPF_DATA_HEADER_SIZE) { in InitEbpfHeader() 58 TS_LOGE("Get ebpf file header failed! headSize = %u", ebpfDataHeader_->header.headSize); in InitEbpfHeader() 62 … ebpfDataHeader_->header.magic, ebpfDataHeader_->header.headSize, ebpfDataHeader_->header.clock, in InitEbpfHeader()
|
/developtools/profiler/device/services/shared_memory/test/unittest/ |
D | shared_memory_block_test.cpp | 327 int8_t header[ARRAYSIZE]; variable 330 *((uint32_t*)header) = i + 1; 331 shareMemoryBlock.PutWithPayloadTimeout(header, ARRAYSIZE, data, ARRAYSIZE); 347 int8_t header[ARRAYSIZE]; variable 350 *((uint32_t*)header) = i + 1; 351 shareMemoryBlock.PutWithPayloadSync(header, ARRAYSIZE, data, ARRAYSIZE);
|
/developtools/syscap_codec/src/ |
D | create_pcid.c | 518 uint32_t *header, uint32_t headerLen) in ParseStringSyscap() argument 530 …if (sscanf_s(input, "%u,%u,%s", &header[0], &header[1], input, inputLen) != 3) { // 3, return val … in ParseStringSyscap() 560 PCIDHeader *header = (PCIDHeader *)pcidHeader; in AddHeaderToJsonObj() local 562 char *systemType = header->systemType == 0b001 ? "mini" : in AddHeaderToJsonObj() 563 (header->systemType == 0b010 ? "small" : in AddHeaderToJsonObj() 564 (header->systemType == 0b100 ? "standard" : NULL)); in AddHeaderToJsonObj() 571 if (!cJSON_AddNumberToObject(rootObj, "api_version", NtohsInter(header->apiVersion))) { in AddHeaderToJsonObj() 572 PRINT_ERR("add api_version(%u) to json object failed.\n", NtohsInter(header->apiVersion)); in AddHeaderToJsonObj() 575 if (!cJSON_AddNumberToObject(rootObj, "manufacturer_id", NtohlInter(header->manufacturerID))) { in AddHeaderToJsonObj() 576 … PRINT_ERR("add manufacturer_id(%u) to json object failed\n", NtohlInter(header->manufacturerID)); in AddHeaderToJsonObj()
|
/developtools/ace_ets2bundle/compiler/test/pages/ |
D | TestComponent.ets | 30 header: string = ""; 34 Text(this.header)
|
/developtools/ace_js2bundle/ace-loader/src/lite/ |
D | lite-image2bin.js | 37 const header = (image.bitmap.width << WIDTH_BIT_OFFSET) + 43 binView.setUint32(binFileOffset, header, true);
|
/developtools/profiler/device/services/profiler_service/test/unittest/ |
D | trace_file_reader_test.cpp | 141 TraceFileHeader header = {}; // default header data variable 142 fwrite(&header, sizeof(char), sizeof(header), fptr.get());
|