| /developtools/hiperf/src/ |
| D | perf_event_record.cpp | 26 std::unique_ptr<PerfEventRecord> GetPerfEventRecord(const int type, uint8_t *p, in GetPerfEventRecord() argument 29 HLOG_ASSERT(p); in GetPerfEventRecord() 30 uint8_t *data = p; in GetPerfEventRecord() 71 inline void PushToBinary(bool condition, uint8_t *&p, const T &v) in PushToBinary() argument 74 *(reinterpret_cast<T *>(p)) = v; in PushToBinary() 75 p += sizeof(T); in PushToBinary() 80 inline void PushToBinary2(bool condition, uint8_t *&p, const T1 &v1, const T2 &v2) in PushToBinary2() argument 83 *(reinterpret_cast<T1 *>(p)) = v1; in PushToBinary2() 84 p += sizeof(T1); in PushToBinary2() 85 *(reinterpret_cast<T2 *>(p)) = v2; in PushToBinary2() [all …]
|
| /developtools/hdc/ |
| D | README_zh.md | 102 …dth="50%" id="mcps1.2.3.1.1"><p id="p14423184344212"><a name="p14423184344212"></a><a name="p14423… 104 …idth="50%" id="mcps1.2.3.1.2"><p id="p164237433425"><a name="p164237433425"></a><a name="p16423743… 108 …p id="p1042344310428"><a name="p1042344310428"></a><a name="p1042344310428"></a>-t <em id="i198036… 110 …="mcps1.2.3.1.2 "><p id="p19423174317428"><a name="p19423174317428"></a><a name="p19423174317428">… 111 <p id="p2014511479313"><a name="p2014511479313"></a><a name="p2014511479313"></a>举例:hdc -t *****(设… 114 …p id="p04231743194215"><a name="p04231743194215"></a><a name="p04231743194215"></a>-s <em id="i510… 116 …s="mcps1.2.3.1.2 "><p id="p5424134314429"><a name="p5424134314429"></a><a name="p5424134314429"></… 117 <p id="p1599174953215"><a name="p1599174953215"></a><a name="p1599174953215"></a>举例:hdc -s ip:port<… 120 …aders="mcps1.2.3.1.1 "><p id="p17424204354216"><a name="p17424204354216"></a><a name="p17424204354… 122 …rs="mcps1.2.3.1.2 "><p id="p742444364214"><a name="p742444364214"></a><a name="p742444364214"></a>… [all …]
|
| /developtools/profiler/hiebpf/test/unittest/ |
| D | kernel_symbol_info_test.cpp | 46 uint8_t *p = buf.data(); variable 47 uint64_t vaddrStart = *(reinterpret_cast<uint64_t *>(p)); 48 p += sizeof(uint64_t); 49 uint64_t vaddrEnd = *(reinterpret_cast<uint64_t *>(p)); 50 p += sizeof(uint64_t); 51 uint32_t symTabLen = *(reinterpret_cast<uint32_t *>(p)); 52 p += sizeof(uint32_t); 53 uint32_t strTabLen = *(reinterpret_cast<uint32_t *>(p)); 54 p += sizeof(uint32_t); 60 char *pStrTab = reinterpret_cast<char *>(p) + symTabLen; [all …]
|
| D | maps_info_test.cpp | 82 uint8_t *p = buf.data(); variable 83 uint64_t *start = (uint64_t *)p; 85 p += sizeof(mapsItem.start_); 87 uint64_t *end = (uint64_t *)p; 89 p += sizeof(mapsItem.end_); 91 uint32_t *offset = (uint32_t *)p; 93 p += sizeof(mapsItem.offset_); 95 uint32_t *pid = (uint32_t *)p; 97 p += sizeof(mapsItem.pid_); 99 uint32_t *fileNameLen = (uint32_t *)p; [all …]
|
| /developtools/profiler/host/smartperf/trace_streamer/src/base/ |
| D | filter_constraints.cpp | 69 const char* p = static_cast<const char*>(idxStr.c_str()); in FromString() local 71 TS_ASSERT(*p == 'C'); in FromString() 73 int32_t constraintCount = static_cast<int32_t>(strtol(p + 1, &pNext, 10)); in FromString() 78 TS_ASSERT(p != pNext); in FromString() 80 p = pNext; in FromString() 82 int32_t col = static_cast<int32_t>(strtol(p, &pNext, 10)); in FromString() 87 TS_ASSERT(p != pNext); in FromString() 88 p = pNext; in FromString() 90 unsigned char op = static_cast<unsigned char>(strtol(p, &pNext, 10)); in FromString() 95 TS_ASSERT(p != pNext); in FromString() [all …]
|
| /developtools/profiler/ |
| D | README_zh.md | 85 …"top" width="30%" id="mcps1.2.4.1.1"><p id="p223mcpsimp"><a name="p223mcpsimp"></a><a name="p223mc… 87 …020000000000003%" id="mcps1.2.4.1.2"><p id="p225mcpsimp"><a name="p225mcpsimp"></a><a name="p225mc… 89 …p" width="39.98%" id="mcps1.2.4.1.3"><p id="p227mcpsimp"><a name="p227mcpsimp"></a><a name="p227mc… 93 …"mcps1.2.4.1.1 "><p id="p231mcpsimp"><a name="p231mcpsimp"></a><a name="p231mcpsimp"></a>PluginMod… 95 …p id="p233mcpsimp"><a name="p233mcpsimp"></a><a name="p233mcpsimp"></a>int (*PluginSessionStartCal… 97 …7809165112"><li>功能:<p id="p1208131116548"><a name="p1208131116548"></a><a name="p1208131116548"></… 98 </li><li>输入参数:<p id="p104087130518"><a name="p104087130518"></a><a name="p104087130518"></a>configD… 99 <p id="p32731219115114"><a name="p32731219115114"></a><a name="p32731219115114"></a>configSize:配置信息… 100 </li><li>返回值:<p id="p4892128135110"><a name="p4892128135110"></a><a name="p4892128135110"></a>0:成功<… 101 <p id="p1621513010517"><a name="p1621513010517"></a><a name="p1621513010517"></a>-1:失败</p> [all …]
|
| /developtools/hiperf/test/unittest/common/native/ |
| D | ring_buffer_test.cpp | 60 uint8_t *p = nullptr; in ReadBufferAndCheck() local 61 while ((p = buf.GetReadData()) != nullptr) { in ReadBufferAndCheck() 62 ASSERT_EQ(memcpy_s(&readData, sizeof(perf_event_header), p, sizeof(perf_event_header)), 0); in ReadBufferAndCheck() 65 p += sizeof(perf_event_header); in ReadBufferAndCheck() 68 ASSERT_EQ(*p, data) << "checkSize = " << hex << checkSize; in ReadBufferAndCheck() 69 p++; in ReadBufferAndCheck() 83 uint8_t *p = nullptr; in WriteBuffer() local 84 while ((p = buf.AllocForWrite(writeData.size)) != nullptr) { in WriteBuffer() 85 ASSERT_EQ(memcpy_s(p, writeData.size, &writeData, sizeof(perf_event_header)), 0); in WriteBuffer() 86 p += sizeof(perf_event_header); in WriteBuffer() [all …]
|
| D | perf_event_record_test.cpp | 316 const uint8_t *p = buf.data() + offset; in CompareRecordSample50() local 318 if (record.data_.nr != *(reinterpret_cast<const u64 *>(p))) { in CompareRecordSample50() 321 p += sizeof(u64); in CompareRecordSample50() 323 if (record.data_.raw_size != *(reinterpret_cast<const u32 *>(p))) { in CompareRecordSample50() 326 p += sizeof(u32); in CompareRecordSample50() 328 if (record.data_.bnr != *(reinterpret_cast<const u64 *>(p))) { in CompareRecordSample50() 331 p += sizeof(u64); in CompareRecordSample50() 333 if (record.data_.user_abi != *(reinterpret_cast<const u64 *>(p))) { in CompareRecordSample50() 336 p += sizeof(u64); in CompareRecordSample50() 338 if (record.data_.stack_size != *(reinterpret_cast<const u64 *>(p))) { in CompareRecordSample50() [all …]
|
| /developtools/profiler/hiebpf/src/ |
| D | kernel_symbol_info.cpp | 52 uint8_t *p = buf.data(); in GetBinary() local 53 *(reinterpret_cast<uint64_t *>(p)) = vaddrStart; in GetBinary() 54 p += sizeof(uint64_t); in GetBinary() 55 *(reinterpret_cast<uint64_t *>(p)) = vaddrEnd; in GetBinary() 56 p += sizeof(uint64_t); in GetBinary() 57 *(reinterpret_cast<uint32_t *>(p)) = symTabLen; in GetBinary() 58 p += sizeof(uint32_t); in GetBinary() 59 *(reinterpret_cast<uint32_t *>(p)) = strTabLen; in GetBinary() 60 p += sizeof(uint32_t); in GetBinary() 63 uint8_t *pStrTab = p + symTabLen; in GetBinary() [all …]
|
| /developtools/integration_verification/tools/fotff/vcs/ |
| D | manifest.go | 65 func (p *Project) String() string { 66 if p == nil { 69 return fmt.Sprintf("<%s>", p.Name) 72 func (p *Project) StructureDiff(p2 *Project) bool { 73 if p == nil && p2 != nil || p != nil && p2 == nil { 76 if p == nil && p2 == nil { 79 return p.Name != p2.Name || p.Path != p2.Path || p.Remote != p2.Remote 82 func (p *Project) Equals(p2 *Project) bool { 83 return p.Name == p2.Name && p.Path == p2.Path && p.Remote == p2.Remote && p.Revision == p2.Revision 147 for i, p := range m.Projects { [all …]
|
| /developtools/smartperf_host/trace_streamer/src/base/ |
| D | filter_constraints.cpp | 68 p = pNext; \ 70 int32_t col = static_cast<int32_t>(strtol(p, &pNext, 10)); \ 75 TS_ASSERT(p != pNext); \ 76 p = pNext; \ 78 unsigned char desc = static_cast<unsigned char>(strtol(p, &pNext, 10)); \ 83 TS_ASSERT(p != pNext); 87 const char* p = static_cast<const char*>(idxStr.c_str()); in FromString() local 89 TS_ASSERT(*p == 'C'); in FromString() 91 int32_t constraintCount = static_cast<int32_t>(strtol(p + 1, &pNext, 10)); in FromString() 96 TS_ASSERT(p != pNext); in FromString() [all …]
|
| /developtools/profiler/device/plugins/native_hook/test/ |
| D | hook_test.cpp | 30 typedef void (*DepthFreeSo)(int depth, char *p); 88 void DepthFree(int depth, char *p) in DepthFree() argument 93 delete []p; in DepthFree() 96 return (DepthFree(depth - 1, p)); in DepthFree() 101 char *p = nullptr; in ThreadFuncCpp() local 112 p = DepthMalloc(g_stickDepth, MALLOC_SIZE); in ThreadFuncCpp() 116 if (p) { in ThreadFuncCpp() 117 DepthFree(g_stickDepth, p); in ThreadFuncCpp() 126 char *p = nullptr; in ThreadFuncCppHook() local 155 p = mallocFunc(g_stickDepth, MALLOC_SIZE); in ThreadFuncCppHook() [all …]
|
| D | malloc_test.cpp | 82 static char* DepthRealloc(int depth, void* p, int reallocSize) in DepthRealloc() argument 87 return (char*)realloc(p, reallocSize); in DepthRealloc() 89 return (DepthRealloc(depth - 1, p, reallocSize)); in DepthRealloc() 92 static void DepthFree(int depth, void* p) in DepthFree() argument 97 free(p); in DepthFree() 100 return (DepthFree(depth - 1, p)); in DepthFree() 110 char* p = DepthMalloc(STATIC_DEPTH, mallocSize); in ApplyForMalloc() local 112 if (!p) { in ApplyForMalloc() 121 DepthFree(STATIC_DEPTH, p); in ApplyForMalloc() 137 char* p = DepthCalloc(STATIC_DEPTH, callocSize); in ApplyForCalloc() local [all …]
|
| D | hook_test.c | 84 char* DepthRealloc(int depth, void* p, int reallocSize) in DepthRealloc() argument 89 return (char*)realloc(p, reallocSize); in DepthRealloc() 91 return (DepthRealloc(depth - 1, p, reallocSize)); in DepthRealloc() 94 void DepthFree(int depth, void* p) in DepthFree() argument 99 free(p); in DepthFree() 102 return (DepthFree(depth - 1, p)); in DepthFree() 112 char* p = DepthMalloc(STATIC_DEPTH, mallocSize); in ApplyForMalloc() local 114 if (!p) { in ApplyForMalloc() 123 DepthFree(STATIC_DEPTH, p); in ApplyForMalloc() 139 char* p = DepthCalloc(STATIC_DEPTH, callocSize); in ApplyForCalloc() local [all …]
|
| D | hook_so.cpp | 40 void DepthFreeSo(int depth, char *p) in DepthFreeSo() argument 45 delete []p; in DepthFreeSo() 48 return (DepthFreeSo(depth - 1, p)); in DepthFreeSo()
|
| /developtools/profiler/device/cmds/src/ |
| D | command_line.cpp | 83 auto p = it->second; in CheckParam() local 84 if (!p->IsInFilter(s1)) { in CheckParam() 87 switch (p->paramType_) { in CheckParam() 89 CommandParamSwitch* pswitch = (CommandParamSwitch*)p.get(); in CheckParam() 95 CommandParamText* ptext = (CommandParamText*)p.get(); in CheckParam() 128 auto p = it->second; in PrintHelp() local 131 for (std::string temp : p->paramFilter_) { in PrintHelp() 143 printf(" : %s\n", p->sDescriptor_.c_str()); in PrintHelp()
|
| /developtools/hiperf/include/ |
| D | perf_event_record.h | 110 PerfEventRecord(uint8_t *p, const std::string &name); 172 explicit PerfRecordMmap(uint8_t *p); 186 explicit PerfRecordMmap2(uint8_t *p); 202 explicit PerfRecordLost(uint8_t *p); 221 explicit PerfRecordComm(uint8_t *p); 242 PerfRecordSample(uint8_t *p, const perf_event_attr &attr); 268 explicit PerfRecordExit(uint8_t *p); 278 PerfRecordThrottle(uint8_t *p); 288 explicit PerfRecordUnthrottle(uint8_t *p); 298 explicit PerfRecordFork(uint8_t *p); [all …]
|
| /developtools/profiler/device/plugins/hilog_plugin/src/ |
| D | hilog_plugin.cpp | 346 bool HilogPlugin::FindFirstNum(char** p) in FindFirstNum() argument 348 CHECK_NOTNULL(*p, false, "HilogPlugin:%s", __func__); in FindFirstNum() 349 while (**p > '9' || **p < '0') { in FindFirstNum() 350 if (**p == '\0' || **p == '\n') { in FindFirstNum() 353 (*p)++; in FindFirstNum() 358 bool HilogPlugin::RemoveSpaces(char** p) in RemoveSpaces() argument 360 CHECK_NOTNULL(*p, false, "HilogPlugin:%s", __func__); in RemoveSpaces() 361 if (**p == '\0' || **p == '\n') { in RemoveSpaces() 364 while (**p == ' ') { in RemoveSpaces() 365 (*p)++; in RemoveSpaces() [all …]
|
| /developtools/profiler/device/services/ipc/src/ |
| D | client_map.cpp | 33 int ClientMap::PutClientSocket(int socketFileDescriptor, ServiceEntry& p) in PutClientSocket() argument 36 …socketClients_[socketFileDescriptor] = std::make_shared<ClientConnection>(socketFileDescriptor, p); in PutClientSocket() 51 auto p = iter->second; in AutoRelease() local 52 switch (p->GetClientState()) { in AutoRelease()
|
| /developtools/integration_verification/tools/fotff/pkg/gitee_common/ |
| D | get_newer_ci.go | 102 p := db.ImgObsPath 103 if p == "" { 104 p = db.ObsPath 106 if filepath.Base(p) == cur { 109 logrus.Infof("new package found, name: %s", filepath.Base(p)) 110 file, err := m.downloadToWorkspace(p) 112 logrus.Errorf("can not download package %s: %v", p, err)
|
| /developtools/integration_verification/DeployDevice/src/func/liteOsUpgrade/ |
| D | liteOsUpgrade_RK3568_app.py | 219 p = sendCmd(loadcmd) 220 logger.info(p) 222 if "Download image ok" not in p: 474 p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding="gbk") 475 curline = p.stdout.readline() 479 curline = p.stdout.readline() 501 p.wait() 502 logger.info("p.returncode %s" % p.returncode) 503 if p.returncode == 0: 506 if p.returncode == 101: [all …]
|
| /developtools/profiler/device/plugins/diskio_plugin/src/ |
| D | io_stats.cpp | 339 bool IoStats::FindFirstNum(char** p) in FindFirstNum() argument 341 CHECK_NOTNULL(*p, false, "IoStats:%s", __func__); in FindFirstNum() 342 while (**p > '9' || **p < '0') { in FindFirstNum() 343 if (**p == '\0' || **p == '\n') { in FindFirstNum() 346 (*p)++; in FindFirstNum() 351 bool IoStats::RemoveSpaces(char** p) in RemoveSpaces() argument 353 CHECK_NOTNULL(*p, false, "IoStats:%s", __func__); in RemoveSpaces() 354 if (**p == '\0' || **p == '\n') { in RemoveSpaces() 357 while (**p == ' ') { in RemoveSpaces() 358 (*p)++; in RemoveSpaces() [all …]
|
| /developtools/smartperf_host/ide/src/trace/component/trace/timer-shaft/ |
| D | RangeRuler.ts | 119 p: number = 1000; property in RangeRuler 602 let s = (this.scale / this.p) * this.currentDuration * 0.2; 603 let big_s = (this.scale / this.p) * this.currentDuration * 1.2; 646 this.range.startNS += (this.centerXPercentage * this.currentDuration * this.scale) / this.p; 647 … this.range.endNS -= ((1 - this.centerXPercentage) * this.currentDuration * this.scale) / this.p; 665 this.range.startNS -= ((this.centerXPercentage * this.scale) / this.p) * this.currentDuration; 666 … this.range.endNS += (((1 - this.centerXPercentage) * this.scale) / this.p) * this.currentDuration; 684 let s = (this.scale / this.p) * this.currentDuration * 0.4; 704 let s = (this.scale / this.p) * this.currentDuration * 0.4; 757 this.range.startNS += (this.centerXPercentage * 100 * this.scale) / this.p; [all …]
|
| /developtools/profiler/device/plugins/process_plugin/src/ |
| D | process_data_plugin.cpp | 525 bool ProcessDataPlugin::FindFirstSpace(char** p) in FindFirstSpace() argument 527 CHECK_NOTNULL(*p, false, "ProcessDataPlugin:%s", __func__); in FindFirstSpace() 528 while (**p != ' ') { in FindFirstSpace() 529 if (**p == '\0' || **p == '\n') { in FindFirstSpace() 532 (*p)++; in FindFirstSpace() 537 bool ProcessDataPlugin::FindFirstNum(char** p) in FindFirstNum() argument 539 CHECK_NOTNULL(*p, false, "ProcessDataPlugin:%s", __func__); in FindFirstNum() 540 while (**p > '9' || **p < '0') { in FindFirstNum() 541 if (**p == '\0' || **p == '\n') { in FindFirstNum() 544 (*p)++; in FindFirstNum() [all …]
|
| /developtools/profiler/device/plugins/memory_plugin/test/utresources/proc/1/ |
| D | smaps | 1 12c00000-2ac00000 rw-p 00000000 00:00 0 [anon:sensitive_vm-main sp… 25 5d304000-5d307000 r--p 00000000 fd:04 252 /system/bin/app_process32 71 5d30b000-5d30c000 r--p 00005000 fd:04 252 /system/bin/app_process32 94 5d30c000-5d30d000 rw-p 00005000 fd:04 252 /system/bin/app_process32 117 5d30d000-5d30e000 rw-p 00000000 00:00 0 [anon:.bss] 141 702f2000-704cf000 rw-p 00000000 00:00 0 [anon:sensitive_vm-/apex/c… 165 704cf000-70512000 rw-p 00000000 00:00 0 [anon:sensitive_vm-/apex/c… 189 70512000-705b0000 rw-p 00000000 00:00 0 [anon:sensitive_vm-/apex/c… 213 705b0000-705d9000 rw-p 00000000 00:00 0 [anon:sensitive_vm-/apex/c… 237 705d9000-7060f000 rw-p 00000000 00:00 0 [anon:sensitive_vm-/apex/c… [all …]
|