Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 145) sorted by relevance

123456

/developtools/hiperf/src/
Dperf_event_record.cpp32 std::unique_ptr<PerfEventRecord> GetPerfEventRecord(const int type, uint8_t *p, in GetPerfEventRecord() argument
35 HLOG_ASSERT(p); in GetPerfEventRecord()
36 uint8_t *data = p; in GetPerfEventRecord()
76 std::unique_ptr<PerfEventRecord> GetPerfSampleFromCache(const int type, uint8_t *p, in GetPerfSampleFromCache() argument
79 HLOG_ASSERT(p); in GetPerfSampleFromCache()
80 uint8_t *data = p; in GetPerfSampleFromCache()
92 return GetPerfEventRecord(type, p, attr); in GetPerfSampleFromCache()
95 std::unique_ptr<PerfEventRecord> GetPerfSampleFromCacheMain(const int type, uint8_t *p, in GetPerfSampleFromCacheMain() argument
98 HLOG_ASSERT(p); in GetPerfSampleFromCacheMain()
99 uint8_t *data = p; in GetPerfSampleFromCacheMain()
[all …]
/developtools/hdc/
DREADME_zh.md102 …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…
108p 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 *****(设…
114p 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/
Dkernel_symbol_info_test.cpp46 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 …]
Dmaps_info_test.cpp82 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/smartperf_host/trace_streamer/src/base/
Dfilter_constraints.cpp67 void FilterConstraints::GetColAndOp(const char** p, char** pNext, int32_t& col, unsigned char& op) in GetColAndOp() argument
69 *p = *pNext; in GetColAndOp()
72 col = static_cast<int32_t>(strtol(*p, pNext, INTEGER_RADIX_TYPE_DEC)); in GetColAndOp()
77 TS_ASSERT(*p != *pNext); in GetColAndOp()
78 *p = *pNext; in GetColAndOp()
80 op = static_cast<unsigned char>(strtol(*p, pNext, INTEGER_RADIX_TYPE_DEC)); in GetColAndOp()
85 TS_ASSERT(p != pNext); in GetColAndOp()
90 const char* p = static_cast<const char*>(idxStr.c_str()); in FromString() local
92 TS_ASSERT(*p == 'C'); in FromString()
94 int32_t constraintCount = static_cast<int32_t>(strtol(p + 1, &pNext, 10)); in FromString()
[all …]
/developtools/profiler/
DREADME_zh.md85 …"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…
95p 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/
Dring_buffer_test.cpp60 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 …]
Dperf_event_record_test.cpp316 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/
Dkernel_symbol_info.cpp52 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/
Dmanifest.go65 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/profiler/device/plugins/native_hook/test/
Dhook_test.cpp30 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 …]
Dmalloc_test.cpp82 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 …]
Dhook_test.c84 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 …]
Dhook_so.cpp40 void DepthFreeSo(int depth, char *p) in DepthFreeSo() argument
45 delete []p; in DepthFreeSo()
48 return (DepthFreeSo(depth - 1, p)); in DepthFreeSo()
/developtools/hiperf/include/
Dperf_event_record.h113 PerfEventRecord(uint8_t *p, const std::string &name);
175 explicit PerfRecordMmap(uint8_t *p);
189 explicit PerfRecordMmap2(uint8_t *p);
206 explicit PerfRecordLost(uint8_t *p);
225 explicit PerfRecordComm(uint8_t *p);
251 PerfRecordSample(uint8_t *p, const perf_event_attr &attr);
283 explicit PerfRecordExit(uint8_t *p);
293 PerfRecordThrottle(uint8_t *p);
303 explicit PerfRecordUnthrottle(uint8_t *p);
313 explicit PerfRecordFork(uint8_t *p);
[all …]
/developtools/profiler/device/cmds/src/
Dcommand_line.cpp83 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/profiler/device/plugins/hilog_plugin/src/
Dhilog_plugin.cpp343 bool HilogPlugin::FindFirstNum(char** p) in FindFirstNum() argument
345 CHECK_NOTNULL(*p, false, "HilogPlugin:%s", __func__); in FindFirstNum()
346 while (**p > '9' || **p < '0') { in FindFirstNum()
347 if (**p == '\0' || **p == '\n') { in FindFirstNum()
350 (*p)++; in FindFirstNum()
355 bool HilogPlugin::RemoveSpaces(char** p) in RemoveSpaces() argument
357 CHECK_NOTNULL(*p, false, "HilogPlugin:%s", __func__); in RemoveSpaces()
358 if (**p == '\0' || **p == '\n') { in RemoveSpaces()
361 while (**p == ' ') { in RemoveSpaces()
362 (*p)++; in RemoveSpaces()
[all …]
/developtools/profiler/device/plugins/diskio_plugin/src/
Dio_stats.cpp263 bool IoStats::FindFirstNum(char** p) in FindFirstNum() argument
265 CHECK_NOTNULL(*p, false, "IoStats:%s", __func__); in FindFirstNum()
266 while (**p > '9' || **p < '0') { in FindFirstNum()
267 if (**p == '\0' || **p == '\n') { in FindFirstNum()
270 (*p)++; in FindFirstNum()
275 bool IoStats::RemoveSpaces(char** p) in RemoveSpaces() argument
277 CHECK_NOTNULL(*p, false, "IoStats:%s", __func__); in RemoveSpaces()
278 if (**p == '\0' || **p == '\n') { in RemoveSpaces()
281 while (**p == ' ') { in RemoveSpaces()
282 (*p)++; in RemoveSpaces()
[all …]
/developtools/smartperf_host/ide/src/trace/database/data-trafic/utils/
DDataFilter.ts121 res.add(arr.reduce((p, c) => (p[durKey] > c[durKey]) ? p : c));
123 res.add(arr.reduce((p, c) => (p[valueKey] > c[valueKey]) ? p : c));
128 res.add(filterArr.reduce((p, c) => (p[durKey] > c[durKey]) ? p : c));
155 let childArray = (group[key] as any[]).reduce((p, c) => (p.durTmp > c.durTmp) ? p : c);
/developtools/profiler/device/services/ipc/src/
Dclient_map.cpp33 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/
Dget_newer_ci.go102 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/hdc/hdc_rust/src/common/
Dbase.rs88 let p = tmp.as_str(); in is_absolute_path() localVariable
89 p.len() >= 3 in is_absolute_path()
90 && (Self::get_char(p, 0) >= 'a' && Self::get_char(p, 0) <= 'z') in is_absolute_path()
91 && Self::get_char(p, 1) == ':' in is_absolute_path()
92 && Self::get_char(p, 2) == '\\' in is_absolute_path()
/developtools/smartperf_host/ide/src/trace/component/trace/base/
DColorUtils.ts307 const hue2rgb = (p: number, q: number, t: number) => {
310 if (t < 1 / 6) return p + (q - p) * 6 * t;
312 if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
313 return p;
317 const p = 2 * l - q; constant
319 r = hue2rgb(p, q, h + 1 / 3);
320 g = hue2rgb(p, q, h);
321 b = hue2rgb(p, q, h - 1 / 3);
/developtools/integration_verification/DeployDevice/src/func/liteOsUpgrade/
DliteOsUpgrade_RK3568_app.py228 p = sendCmd(loadcmd)
229 logger.info(p)
231 if "Download image ok" not in p:
488 p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding="gbk")
489 curline = p.stdout.readline()
493 curline = p.stdout.readline()
515 p.wait()
516 logger.info("p.returncode %s" % p.returncode)
517 if p.returncode == 0:
520 if p.returncode == 101:
[all …]
/developtools/profiler/device/plugins/process_plugin/src/
Dprocess_data_plugin.cpp540 bool ProcessDataPlugin::FindFirstSpace(char** p) in FindFirstSpace() argument
542 CHECK_NOTNULL(*p, false, "ProcessDataPlugin:%s", __func__); in FindFirstSpace()
543 while (**p != ' ') { in FindFirstSpace()
544 if (**p == '\0' || **p == '\n') { in FindFirstSpace()
547 (*p)++; in FindFirstSpace()
552 bool ProcessDataPlugin::FindFirstNum(char** p) in FindFirstNum() argument
554 CHECK_NOTNULL(*p, false, "ProcessDataPlugin:%s", __func__); in FindFirstNum()
555 while (**p > '9' || **p < '0') { in FindFirstNum()
556 if (**p == '\0' || **p == '\n') { in FindFirstNum()
559 (*p)++; in FindFirstNum()
[all …]

123456