Home
last modified time | relevance | path

Searched refs:tid (Results 1 - 25 of 125) sorted by relevance

12345

/developtools/smartperf_host/trace_streamer/src/filter/
H A Dprocess_filter.h33 uint32_t UpdateOrCreateThreadWithName(uint64_t timeStamp, uint32_t tid, std::string_view name);
34 uint32_t UpdateOrCreateThreadWithPidAndName(uint32_t tid, uint32_t pid, std::string_view name);
35 uint32_t GetOrCreateThreadWithPid(uint32_t tid, uint32_t pid);
36 uint32_t UpdateOrCreateThread(uint64_t timeStamp, uint32_t tid);
39 InternalTid GetInternalTid(uint32_t tid) const;
40 std::vector<InternalTid> &GetInternalTids(uint32_t tid);
41 uint32_t UpdateOrCreateThreadWithNameIndex(uint64_t timeStamp, uint32_t tid, DataIndex threadNameIndex);
50 std::tuple<uint32_t, TraceStdtype::Thread *> NewThread(uint32_t tid);
53 InternalTid GetInternalTid(uint32_t tid, uint32_t pid) const;
H A Dprocess_filter.cpp37 uint32_t ProcessFilter::UpdateOrCreateThreadWithName(uint64_t timeStamp, uint32_t tid, std::string_view name) in UpdateOrCreateThreadWithName() argument
40 return UpdateOrCreateThreadWithNameIndex(timeStamp, tid, nameIndex); in UpdateOrCreateThreadWithName()
64 uint32_t ProcessFilter::UpdateOrCreateThread(uint64_t timeStamp, uint32_t tid) in UpdateOrCreateThread() argument
66 return UpdateOrCreateThreadWithNameIndex(timeStamp, tid, 0); in UpdateOrCreateThread()
68 uint32_t ProcessFilter::UpdateOrCreateThreadWithPidAndName(uint32_t tid, uint32_t pid, std::string_view name) in UpdateOrCreateThreadWithPidAndName() argument
70 uint32_t internalTid = GetOrCreateThreadWithPid(tid, pid); in UpdateOrCreateThreadWithPidAndName()
75 if (tid == pid) { in UpdateOrCreateThreadWithPidAndName()
81 uint32_t ProcessFilter::GetOrCreateThreadWithPid(uint32_t tid, uint32_t pid) in GetOrCreateThreadWithPid() argument
86 internalTid = GetInternalTid(tid); in GetOrCreateThreadWithPid()
88 internalTid = GetInternalTid(tid, pi in GetOrCreateThreadWithPid()
120 UpdateOrCreateThreadWithNameIndex(uint64_t timeStamp, uint32_t tid, DataIndex threadNameIndex) UpdateOrCreateThreadWithNameIndex() argument
145 GetInternalTid(uint32_t tid, uint32_t pid) const GetInternalTid() argument
177 GetInternalTids(uint32_t tid) GetInternalTids() argument
210 NewThread(uint32_t tid) NewThread() argument
[all...]
H A Dbinder_filter.cpp55 uint32_t tid, in SendTraction()
75 argsSend.AppendArg(callingTid_, BASE_DATA_TYPE_INT, tid); in SendTraction()
78 // sometime a reply-binder from a tid appear repeated to different dest, we only chose the right one in SendTraction()
79 if (transReplyFilter_.count(tid) && transReplyFilter_[tid] == destTid) { in SendTraction()
86 (void)streamFilters_->sliceFilter_->AddArgs(tid, binderCatalogId_, replyId_, destArgs); in SendTraction()
87 transReplyFilter_.erase(tid); in SendTraction()
90 (void)streamFilters_->sliceFilter_->EndBinder(ts, tid, INVALID_UINT64, INVALID_UINT64, argsSend); in SendTraction()
97 (void)streamFilters_->sliceFilter_->BeginBinder(ts, tid, binderCatalogId_, transSliceId_, argsSend); in SendTraction()
98 transNeedReply_[transactionId] = tid; in SendTraction()
54 SendTraction(int64_t ts, uint32_t tid, uint64_t transactionId, int32_t destNode, int32_t destTgid, int32_t destTid, bool isReply, int32_t flags, int32_t code) SendTraction() argument
[all...]
H A Dapp_start_filter.cpp84 auto tid = INVALID_UINT32; in UpdatePidByNameIndex() local
87 tid = item.second.at(UI_ABILITY_LAUNCHING)->tid_; in UpdatePidByNameIndex()
92 tid = threadData[i].tid_; in UpdatePidByNameIndex()
98 itemSecond.second->tid_ = tid; in UpdatePidByNameIndex()
232 auto tid = threadData[callId].tid_; in ProcForegroundData() local
236 UI_ABILITY_ONFOREGROUND, std::make_unique<APPStartupData>(callId, ipid, tid, startTime, INVALID_UINT64))); in ProcForegroundData()
280 auto tid = threadData[callId].tid_; in ParserSoInitalization() local
286 soStaticInitalizationRow.tid = tid; in ParserSoInitalization()
297 soStaticInitalizationRow.tid in ParserSoInitalization()
[all...]
/developtools/hiperf/include/
H A Dperf_record_format.h33 u32 tid = 0; /* if PERF_SAMPLE_TID set */ member
55 u32 tid = 0; member
65 tid is the thread ID.
75 u32 tid = 0; member
93 tid is the thread ID.
110 u32 tid = 0; member
142 tid is the thread ID.
147 u32 tid = 0; member
165 u32 tid = 0; /* if PERF_SAMPLE_TID */ member
205 u32 tid member
231 u32 tid = 0; global() member
264 u32 tid = 0; global() member
298 u32 tid = 0; global() member
373 u32 tid = 0; global() member
[all...]
H A Dvirtual_thread.h56 VirtualThread(pid_t pid, pid_t tid, VirtualThread &thread, in VirtualThread() argument
59 tid_(tid), in VirtualThread()
67 HLOG_ASSERT(pid != tid); in VirtualThread()
68 HLOGV("%d %d map from parent size is %zu", pid, tid, memMaps_.size()); in VirtualThread()
H A Dvirtual_runtime.h132 DfxSymbol GetSymbol(uint64_t ip, pid_t pid, pid_t tid,
135 VirtualThread &GetThread(pid_t pid, pid_t tid, const std::string name = "");
146 std::string ReadThreadName(pid_t tid, bool isThread);
147 std::string ReadFromSavedCmdLines(pid_t tid);
207 VirtualThread &UpdateThread(pid_t pid, pid_t tid, const std::string name = "");
208 VirtualThread &CreateThread(pid_t pid, pid_t tid, const std::string name = "");
211 std::shared_ptr<DfxMap> UpdateThreadMaps(pid_t pid, pid_t tid, const std::string filename, uint64_t begin,
/developtools/smartperf_host/trace_streamer/test/unittest/filter/
H A Dprocess_filter_test.cpp176 uint32_t tid = 123; in HWTEST_F() local
178 uint32_t iTid0 = streamFilters_.processFilter_->UpdateOrCreateThreadWithName(ts, tid, threadName); in HWTEST_F()
187 EXPECT_TRUE(thread->tid_ == tid); in HWTEST_F()
204 uint32_t tid = 123; in HWTEST_F() local
206 uint32_t iTid0 = streamFilters_.processFilter_->UpdateOrCreateThreadWithName(ts, tid, threadName); in HWTEST_F()
212 * @tc.desc: Test genarated single itid and tid with UpdateOrCreateThreadWithName
219 uint32_t tid = 123; in HWTEST_F() local
221 uint32_t iTid0 = streamFilters_.processFilter_->UpdateOrCreateThreadWithName(ts, tid, threadName); in HWTEST_F()
224 EXPECT_TRUE(thread->tid_ == tid); in HWTEST_F()
237 uint32_t tid in HWTEST_F() local
260 uint32_t tid = 123; HWTEST_F() local
287 uint32_t tid = 869; HWTEST_F() local
306 uint32_t tid = 869; HWTEST_F() local
323 uint32_t tid = 869; HWTEST_F() local
339 uint32_t tid = 869; HWTEST_F() local
356 uint32_t tid = 869; HWTEST_F() local
[all...]
/developtools/profiler/device/plugins/native_daemon/src/
H A Dvirtual_runtime.cpp65 std::string VirtualRuntime::ReadThreadName(pid_t tid) in ReadThreadName() argument
67 std::string comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)).c_str(); in ReadThreadName()
73 VirtualThread &VirtualRuntime::UpdateThread(pid_t pid, pid_t tid, const std::string name) in UpdateThread() argument
79 VirtualThread &thread = GetThread(pid, tid); in UpdateThread()
89 VirtualThread &VirtualRuntime::CreateThread(pid_t pid, pid_t tid) in CreateThread() argument
92 userSpaceThreadMap_.emplace(std::piecewise_construct, std::forward_as_tuple(tid), in CreateThread()
93 std::forward_as_tuple(pid, tid, symbolsFiles_, this)); in CreateThread()
94 VirtualThread& thr = userSpaceThreadMap_.at(tid); in CreateThread()
98 VirtualThread &VirtualRuntime::GetThread(pid_t pid, pid_t tid) in GetThread() argument
100 HLOGV("find thread %u:%u", pid, tid); in GetThread()
129 GetSymbolName(pid_t pid, pid_t tid, std::vector<CallFrame>& callFrames, int offset, bool first, bool onlyjs) GetSymbolName() argument
196 UpdateMaps(pid_t pid, pid_t tid) UpdateMaps() argument
206 UnwindStack(std::vector<u64>& regs, const u8* stack_addr, int stack_size, pid_t pid, pid_t tid, std::vector<CallFrame>& callFrames, size_t maxStackLevel) UnwindStack() argument
448 GetSymbol(CallFrame& callFrame, pid_t pid, pid_t tid, const perf_callchain_context &context) GetSymbol() argument
549 HandleMapInfo(std::vector<uint64_t> info, const std::string& filePath, pid_t pid, pid_t tid) HandleMapInfo() argument
[all...]
/developtools/smartperf_host/trace_streamer/src/rpc/
H A Dffrt_converter.cpp110 threadInfo.name.c_str(), threadInfo.tid, threadInfo.pid, cpuId.c_str(), beginTimeStamp.c_str(), in MakeBeginFakeLog()
111 threadInfo.name.c_str(), threadInfo.tid, prio, taskLabels_[threadInfo.pid][gid].c_str(), taskId.c_str(), prio); in MakeBeginFakeLog()
129 taskLabels_[threadInfo.pid][gid].c_str(), taskId.c_str(), prio, threadInfo.name.c_str(), threadInfo.tid, prio); in MakeEndFakeLog()
139 const int tid) in ReplaceSchedSwitchLog()
144 if (mark.find("prev_pid=" + std::to_string(tid)) != std::string::npos) { in ReplaceSchedSwitchLog()
162 } else if (mark.find("next_pid=" + std::to_string(tid)) != std::string::npos && in ReplaceSchedSwitchLog()
230 const int tid) in ConvertWorkerLogToTask()
234 return ReplaceSchedSwitchLog(fakeLog, mark, pid, gid, tid); in ConvertWorkerLogToTask()
292 auto tid = FindIntNumberAfterStr(index, "pid="); in FindFfrtProcessAndClassify() local
293 if (traceMap.find(tid) in FindFfrtProcessAndClassify()
135 ReplaceSchedSwitchLog(std::string &fakeLog, const std::string &mark, const int pid, const long long gid, const int tid) ReplaceSchedSwitchLog() argument
227 ConvertWorkerLogToTask(const std::string &mark, const int pid, const long long gid, const int tid) ConvertWorkerLogToTask() argument
307 auto tid = stoi(context_[index].substr(beginPos, endPos - beginPos)); FindFfrtProcessAndClassify() local
356 auto tid = thread.first; ClassifyContextForFfrtWorker() local
405 ProcessMarkWithSchedSwitch(const int tid, int &prio, const size_t index) ProcessMarkWithSchedSwitch() argument
[all...]
H A Dffrt_converter.h47 int tid; member
69 void ProcessMarkWithSchedSwitch(const int tid, int &prio, const size_t index);
84 const int tid);
91 std::string ConvertWorkerLogToTask(const std::string &mark, const int pid, const long long gid, const int tid);
/developtools/profiler/device/plugins/cpu_plugin/src/
H A Dcpu_data_plugin.cpp144 while (int32_t tid = GetValidTid(procDir)) { in WriteProcnum()
145 if (tid <= 0) { in WriteProcnum()
147 PROFILER_LOG_WARN(LOG_CORE, "%s: get pid[%d] failed", __func__, tid); in WriteProcnum()
534 bool CpuDataPlugin::addTidBySort(int32_t tid) in addTidBySort() argument
537 auto it = std::lower_bound(tidVec_.begin(), tidsEnd, tid); in addTidBySort()
538 CHECK_TRUE(!(it != tidsEnd && *it == tid), false, "addTidBySort failed"); in addTidBySort()
539 it = tidVec_.insert(it, std::move(tid)); in addTidBySort()
561 int32_t tid = atoi(dirEnt->d_name); in GetValidTid() local
562 if (tid) { in GetValidTid()
563 return tid; in GetValidTid()
592 WriteThread(T& threadInfo, const char* pFile, uint32_t fileLen, int32_t tid) WriteThread() argument
642 WriteSingleThreadInfo(T& cpuData, int32_t tid) WriteSingleThreadInfo() argument
[all...]
/developtools/hiperf/src/
H A Dvirtual_runtime.cpp55 std::string VirtualRuntime::ReadFromSavedCmdLines(pid_t tid) in ReadFromSavedCmdLines() argument
65 std::string threadid = std::to_string(tid); in ReadFromSavedCmdLines()
82 std::string VirtualRuntime::ReadThreadName(pid_t tid, bool isThread) in ReadThreadName() argument
85 if (tid == SYSMGR_PID) { in ReadThreadName()
87 } else if (tid == devhostPid_) { in ReadThreadName()
90 comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)).c_str(); in ReadThreadName()
92 comm = ReadFileToString(StringPrintf("/proc/%d/cmdline", tid)).c_str(); in ReadThreadName()
95 comm = ReadFromSavedCmdLines(tid); in ReadThreadName()
102 VirtualThread &VirtualRuntime::UpdateThread(pid_t pid, pid_t tid, const std::string name) in UpdateThread() argument
107 VirtualThread &thread = GetThread(pid, tid, nam in UpdateThread()
117 CreateThread(pid_t pid, pid_t tid, const std::string name) CreateThread() argument
210 GetThread(pid_t pid, pid_t tid, const std::string name) GetThread() argument
227 UpdateThreadMaps(pid_t pid, pid_t tid, const std::string filename, uint64_t begin, uint64_t len, uint64_t offset, uint32_t prot) UpdateThreadMaps() argument
494 pid_t tid = static_cast<pid_t>(recordSample.data_.tid); SymbolicCallFrame() local
592 pid_t tid = static_cast<pid_t>(recordSample.data_.tid); UnwindFromRecord() local
1095 GetSymbol(uint64_t ip, pid_t pid, pid_t tid, const perf_callchain_context &context) GetSymbol() argument
[all...]
H A Dperf_event_record.cpp235 PerfRecordAuxtrace::PerfRecordAuxtrace(u64 size, u64 offset, u64 reference, u32 idx, u32 tid, u32 cpu, u32 pid) in PerfRecordAuxtrace() argument
242 data_.tid = tid; in PerfRecordAuxtrace()
290 PRINT_INDENT(indent, "size 0x%llx, offset 0x%llx, reference 0x%llx, idx %u, tid %u, cpu %u, pid %u\n", in DumpData()
291 data_.size, data_.offset, data_.reference, data_.idx, data_.tid, data_.cpu, data_.reserved__); in DumpData()
301 HLOGV("size %llu, offset 0x%llx, reference 0x%llx, idx %u, tid %u, cpu %u\n", in DumpLog()
302 data_.size, data_.offset, data_.reference, data_.idx, data_.tid, data_.cpu); in DumpLog()
312 HLOGV("%s: SAMPLE: id= %llu size %d pid %u tid %u ips %llu regs %llu, stacks %llu time %llu", in DumpLog()
313 prefix.c_str(), data_.sample_id, header.size, data_.pid, data_.tid, data_.nr, in DumpLog()
409 PopFromBinary2(sampleType_ & PERF_SAMPLE_TID, p, data_.pid, data_.tid); in PerfRecordSample()
621 PerfRecordMmap(bool inKernel, u32 pid, u32 tid, u64 addr, u64 len, u64 pgoff, const std::string &filename) PerfRecordMmap() argument
682 PerfRecordMmap2(bool inKernel, u32 pid, u32 tid, u64 addr, u64 len, u64 pgoff, u32 maj, u32 min, u64 ino, u32 prot, u32 flags, const std::string &filename) PerfRecordMmap2() argument
705 PerfRecordMmap2(bool inKernel, u32 pid, u32 tid, std::shared_ptr<DfxMap> item) PerfRecordMmap2() argument
821 PerfRecordComm(bool inKernel, u32 pid, u32 tid, const std::string &comm) PerfRecordComm() argument
[all...]
/developtools/profiler/device/plugins/native_daemon/include/
H A Dvirtual_runtime.h67 const DfxSymbol GetSymbol(CallFrame& callFrame, pid_t pid, pid_t tid,
70 VirtualThread &GetThread(pid_t pid, pid_t tid);
80 pid_t tid,
83 bool GetSymbolName(pid_t pid, pid_t tid, std::vector<CallFrame>& callFrames, int offset, bool first,
87 void HandleMapInfo(std::vector<uint64_t> info, const std::string& filePath, pid_t pid, pid_t tid);
90 VirtualThread &UpdateThread(pid_t pid, pid_t tid, const std::string name = "");
130 void UpdateMaps(pid_t pid, pid_t tid);
190 std::string ReadThreadName(pid_t tid);
191 VirtualThread &CreateThread(pid_t pid, pid_t tid);
H A Dhook_common.h93 uint32_t tid; variable
114 tid = baseData->tid; in ReportEventBaseData()
122 uint32_t tid; variable
/developtools/profiler/device/plugins/cpu_plugin/test/unittest/
H A Dcpu_data_plugin_unittest.cpp67 int32_t tid; member
349 EXPECT_EQ(threadInfo.tid(), g_tidStat[i].tid); in HWTEST_F()
750 int32_t tid; in HWTEST_F() local
753 tid = atoi(threadVec1[i].substr(0, threadVec1[i].find(" ")).c_str()); in HWTEST_F()
754 cpuPlugin.WriteThread(*threadInfo, threadVec1[i].c_str(), threadVec1[i].length(), tid); in HWTEST_F()
761 EXPECT_EQ(threadInfo1.tid(), g_tidStat1[i].tid); in HWTEST_F()
771 tid = atoi(threadVec2[i].substr(0, threadVec2[i].find(" ")).c_str()); in HWTEST_F()
772 cpuPlugin.WriteThread(*threadInfo, threadVec2[i].c_str(), threadVec2[i].length(), tid); in HWTEST_F()
850 int32_t tid = atoi(threadStr.substr(0, threadStr.find(" ")).c_str()); HWTEST_F() local
[all...]
/developtools/profiler/device/plugins/native_hook/src/
H A Druntime_stack_range.cpp51 pthread_t tid = pthread_self(); in GetThreadRuntimeStackRange() local
53 if (pthread_getattr_np(tid, &attr) == 0) { in GetThreadRuntimeStackRange()
219 static bool IfSubThread(pid_t pid, pid_t tid) in IfSubThread() argument
221 return pid != tid; in IfSubThread()
224 void GetRuntimeStackEnd(const char* stackptr, const char** end, pid_t pid, pid_t tid) in GetRuntimeStackEnd() argument
228 bool isSubThread = IfSubThread(pid, tid); in GetRuntimeStackEnd()
/developtools/profiler/device/plugins/native_hook/test/
H A Dhook_test.cpp102 long tid = syscall(SYS_gettid); in ThreadFuncCpp() local
103 printf("start thread %ld\n", tid); in ThreadFuncCpp()
114 printf("thread %ld malloc %d times\n", tid, idx); in ThreadFuncCpp()
127 long tid = syscall(SYS_gettid); in ThreadFuncCppHook() local
128 printf("start thread %ld\n", tid); in ThreadFuncCppHook()
157 printf("thread %ld malloc %d times\n", tid, idx); in ThreadFuncCppHook()
/developtools/hdc/test/unittest/register/
H A Dregister_test.cpp138 pthread_t tid; in HWTEST_F() local
142 pthread_create(&tid, nullptr, &HdcConnectRunTest, static_cast<void*>(g_connectManagement.get())), in HWTEST_F()
183 pthread_t tid; in HWTEST_F() local
187 ASSERT_EQ(pthread_create(&tid, nullptr, &ConnectJpidTest, (void*)pkgName.c_str()), 0); in HWTEST_F()
/developtools/profiler/device/plugins/hiebpf_plugin/tools/include/
H A Debpf_std_type.h58 uint32_t tid = 0; member
78 uint32_t tid = 0; member
97 uint32_t tid = 0; member
112 uint32_t tid = 0; member
/developtools/smartperf_host/trace_streamer/src/parser/ebpf_parser/
H A Debpf_data_structure.h87 uint32_t tid = 0; member
105 uint32_t tid = 0; member
119 uint32_t tid = 0; member
133 uint32_t tid = 0; member
/developtools/profiler/device/plugins/ftrace_plugin/tools/
H A Dftrace_format_parser.py63 def __init__(self, tid, size=0, signed=False):
64 self.tid = tid # type id
69 return "{{ T: {}, SZ: {}, SN: {} }}".format(self.tid, self.size, self.signed)
75 if self.tid != ProtoType.INVALID:
76 if self.tid == ProtoType.STRING:
78 elif self.tid == ProtoType.BYTES:
80 elif self.tid == ProtoType.ARRAY:
82 elif self.tid == ProtoType.INTEGER:
/developtools/profiler/device/plugins/cpu_plugin/include/
H A Dcpu_data_plugin.h98 bool addTidBySort(int32_t tid);
103 template <typename T> void WriteThread(T& threadInfo, const char* pFile, uint32_t fileLen, int32_t tid);
105 template <typename T> void WriteSingleThreadInfo(T& cpuData, int32_t tid);
/developtools/smartperf_host/trace_streamer/src/parser/pbreader_parser/ffrt_parser/
H A Dpbreader_ffrt_parser.cpp37 taskNameIndexMap_.Insert(ffrtEventPtr->tid(), ffrtEventPtr->pid(), traceDataCache_->GetDataIndex(taskName)); in PaserCommData()
38 streamFilters_->processFilter_->UpdateOrCreateThreadWithPidAndName(ffrtEventPtr->tid(), ffrtEventPtr->pid(), in PaserCommData()
56 eventInfoPtr->pid = ffrtEventPtr->tid(); in ParserFfrtTrace()

Completed in 17 milliseconds

12345