Home
last modified time | relevance | path

Searched refs:internalTid (Results 1 – 20 of 20) sorted by relevance

/developtools/smartperf_host/trace_streamer/src/filter/
Dmeasure_filter.cpp30 bool MeasureFilter::AppendNewMeasureData(uint64_t internalTid, DataIndex nameIndex, uint64_t timeSt… in AppendNewMeasureData() argument
32 auto filterId = GetOrCreateFilterId(internalTid, nameIndex); in AppendNewMeasureData()
48 uint32_t MeasureFilter::GetOrCreateFilterId(uint64_t internalTid, DataIndex nameIndex) in GetOrCreateFilterId() argument
50 auto filterId = tidStreamIdFilterIdMap_.Find(internalTid, nameIndex); in GetOrCreateFilterId()
56 filterTypeValue.at(filterType_), traceDataCache_->GetDataFromDict(nameIndex), internalTid); in GetOrCreateFilterId()
57 AddCertainFilterId(internalTid, nameIndex, newFilterId); in GetOrCreateFilterId()
61 void MeasureFilter::AddCertainFilterId(uint64_t internalTid, DataIndex nameIndex, uint64_t filterId) in AddCertainFilterId() argument
63 tidStreamIdFilterIdMap_.Insert(internalTid, nameIndex, filterId); in AddCertainFilterId()
67 …ic_cast<uint32_t>(filterId), static_cast<uint32_t>(nameIndex), static_cast<uint32_t>(internalTid)); in AddCertainFilterId()
69 …e_->GetCpuMeasuresData()->AppendNewFilter(filterId, static_cast<uint32_t>(nameIndex), internalTid); in AddCertainFilterId()
[all …]
Dprocess_filter.cpp70 uint32_t internalTid = GetOrCreateThreadWithPid(tid, pid); in UpdateOrCreateThreadWithPidAndName() local
71 auto thread = traceDataCache_->GetThreadData(internalTid); in UpdateOrCreateThreadWithPidAndName()
78 return internalTid; in UpdateOrCreateThreadWithPidAndName()
84 uint32_t internalTid; in GetOrCreateThreadWithPid() local
86 internalTid = GetInternalTid(tid); in GetOrCreateThreadWithPid()
88 internalTid = GetInternalTid(tid, pid); in GetOrCreateThreadWithPid()
90 if (internalTid != INVALID_ID) { in GetOrCreateThreadWithPid()
91 thread = traceDataCache_->GetThreadData(internalTid); in GetOrCreateThreadWithPid()
93 std::tie(internalTid, thread) = NewThread(tid); in GetOrCreateThreadWithPid()
100 return internalTid; in GetOrCreateThreadWithPid()
[all …]
Dslice_filter.cpp46 InternalTid internalTid = INVALID_ITID; in BeginSlice() local
48internalTid = streamFilters_->processFilter_->UpdateOrCreateThreadWithPidAndName(pid, threadGroupI… in BeginSlice()
51internalTid = streamFilters_->processFilter_->UpdateOrCreateThreadWithName(timeStamp, pid, comm); in BeginSlice()
54 SliceData sliceData = {timeStamp, -1, internalTid, cat, nameIndex}; in BeginSlice()
66 sliceData.timeStamp, sliceData.duration, sliceData.internalTid, sliceData.cat, in IrqHandlerEntry()
107 sliceData.timeStamp, sliceData.duration, sliceData.internalTid, sliceData.cat, in IpiHandlerEntry()
135 sliceData.timeStamp, sliceData.duration, sliceData.internalTid, sliceData.cat, in SoftIrqEntry()
162 void SliceFilter::RememberSliceData(InternalTid internalTid, in RememberSliceData() argument
168 if (stackMap.find(internalTid) == stackMap.end()) { in RememberSliceData()
169 …auto& sliceStack = stackMap[internalTid].sliceStack; // this can be a empty call, but it does not … in RememberSliceData()
[all …]
Dcpu_filter.cpp242 void CpuFilter::InsertWakeupEvent(uint64_t ts, uint32_t internalTid, bool isWaking) in InsertWakeupEvent() argument
244 if (!isWaking && !toRunnableTid_.count(internalTid)) { in InsertWakeupEvent()
245 toRunnableTid_[internalTid] = ts; in InsertWakeupEvent()
281 void CpuFilter::CheckWakeupEvent(uint32_t internalTid) in CheckWakeupEvent() argument
283 if (toRunnableTid_.count(internalTid)) { in CheckWakeupEvent()
284 uint64_t lastrow = RowOfInternalTidInStateTable(internalTid); in CheckWakeupEvent()
285 auto lastState = StateOfInternalTidInStateTable(internalTid); in CheckWakeupEvent()
287 toRunnableTid_.erase(internalTid); in CheckWakeupEvent()
292 toRunnableTid_.at(internalTid)); in CheckWakeupEvent()
295 toRunnableTid_.at(internalTid), INVALID_TIME, INVALID_CPU, internalTid, TASK_RUNNABLE); in CheckWakeupEvent()
[all …]
Dmeasure_filter.h47 …bool AppendNewMeasureData(uint64_t internalTid, DataIndex nameIndex, uint64_t timeStamp, int64_t v…
48 uint32_t GetOrCreateFilterId(uint64_t internalTid, DataIndex nameIndex);
51 void AddCertainFilterId(uint64_t internalTid, DataIndex nameIndex, uint64_t filterId);
Dslice_filter.h33 InternalTid internalTid; member
105 void RememberSliceData(InternalTid internalTid,
110 uint8_t UpdateDepth(bool increase, InternalTid internalTid, int32_t depth = -1);
113 uint8_t CurrentDepth(InternalTid internalTid);
Dcpu_filter.h55 void InsertWakeupEvent(uint64_t ts, uint32_t internalTid, bool isWaking = false);
70 void CheckWakeupEvent(uint32_t internalTid);
Dbinder_filter.cpp110 InternalTid internalTid = streamFilters_->processFilter_->UpdateOrCreateThread(ts, pid); in ReceiveTraction() local
111 const auto threadName = traceDataCache_->GetConstThreadData(internalTid).nameIndex_; in ReceiveTraction()
/developtools/smartperf_host/trace_streamer/src/trace_data/trace_stdtype/ftrace/
Dcallstack_stdtype.cpp21 InternalTid internalTid, in AppendInternalAsyncSlice() argument
29 AppendCommonInfo(startT, durationNs, internalTid); in AppendInternalAsyncSlice()
39 InternalTid internalTid, in AppendInternalSlice() argument
46 AppendCommonInfo(startT, durationNs, internalTid); in AppendInternalSlice()
55 void CallStack::AppendCommonInfo(uint64_t startT, uint64_t durationNs, InternalTid internalTid) in AppendCommonInfo() argument
59 callIds_.emplace_back(internalTid); in AppendCommonInfo()
Dsched_stdtype.cpp123 uint32_t internalTid, in AppendSchedSlice() argument
131 internalTids_.emplace_back(internalTid); in AppendSchedSlice()
161 size_t Raw::AppendRawData(uint64_t timeStamp, uint32_t name, uint32_t cpu, uint32_t internalTid) in AppendRawData() argument
167 internalTids_.emplace_back(internalTid); in AppendRawData()
173 int64_t internalTid, in AppendInstantEventData() argument
176 internalTids_.emplace_back(internalTid); in AppendInstantEventData()
Dcallstack_stdtype.h26 InternalTid internalTid,
35 InternalTid internalTid,
97 void AppendCommonInfo(uint64_t startT, uint64_t durationNs, InternalTid internalTid);
Dsched_stdtype.h103 uint32_t internalTid,
162 size_t AppendRawData(uint64_t timeStamp, uint32_t name, uint32_t cpu, uint32_t internalTid);
191 int64_t internalTid,
/developtools/smartperf_host/trace_streamer/src/trace_data/
Dtrace_data_cache_reader.cpp36 const Thread& TraceDataCacheReader::GetConstThreadData(InternalTid internalTid) const in GetConstThreadData()
38 TS_ASSERT(internalTid < internalThreadsData_.size()); in GetConstThreadData()
39 return internalThreadsData_[internalTid]; in GetConstThreadData()
Dtrace_data_cache_writer.cpp47 Thread* TraceDataCacheWriter::GetThreadData(InternalTid internalTid) in GetThreadData() argument
49 if (internalTid >= internalThreadsData_.size()) { in GetThreadData()
52 return &internalThreadsData_[internalTid]; in GetThreadData()
Dtrace_data_cache_reader.h52 const Thread& GetConstThreadData(InternalTid internalTid) const;
Dtrace_data_cache_writer.h37 Thread* GetThreadData(InternalTid internalTid);
/developtools/smartperf_host/trace_streamer/src/parser/rawtrace_parser/
Dcpu_detail_parser.cpp259 InternalTid internalTid = in SchedWakeupEvent() local
263 …instants->AppendInstantEventData(event.msgPtr->timestamp(), schedWakeupIndex_, internalTid, wakeup… in SchedWakeupEvent()
264 streamFilters_->cpuFilter_->InsertWakeupEvent(event.msgPtr->timestamp(), internalTid); in SchedWakeupEvent()
266 internalTid); in SchedWakeupEvent()
274 auto internalTid = in SchedWakingEvent() local
277 streamFilters_->cpuFilter_->InsertWakeupEvent(event.msgPtr->timestamp(), internalTid, true); in SchedWakingEvent()
278 …instants->AppendInstantEventData(event.msgPtr->timestamp(), schedWakingIndex_, internalTid, wakeup… in SchedWakingEvent()
288 auto internalTid = in SchedWakeupNewEvent() local
291 …instants->AppendInstantEventData(event.msgPtr->timestamp(), schedWakeupNewIndex_, internalTid, wak… in SchedWakeupNewEvent()
292 streamFilters_->cpuFilter_->InsertWakeupEvent(event.msgPtr->timestamp(), internalTid); in SchedWakeupNewEvent()
[all …]
/developtools/smartperf_host/trace_streamer/src/parser/htrace_pbreader_parser/htrace_event_parser/
Dhtrace_event_parser.cpp623 …InternalTid internalTid = streamFilters_->processFilter_->UpdateOrCreateThread(event.timeStamp_, m… in SchedWakeupEvent() local
625 … instants->AppendInstantEventData(event.timeStamp_, schedWakeupName_, internalTid, wakeupFromPid); in SchedWakeupEvent()
626 streamFilters_->cpuFilter_->InsertWakeupEvent(event.timeStamp_, internalTid); in SchedWakeupEvent()
628 …ataCache_->GetRawData()->AppendRawData(event.timeStamp_, RAW_SCHED_WAKEUP, targetCpu, internalTid); in SchedWakeupEvent()
637 …auto internalTid = streamFilters_->processFilter_->UpdateOrCreateThread(event.timeStamp_, msg.pid(… in SchedWakeupNewEvent() local
639 …instants->AppendInstantEventData(event.timeStamp_, schedWakeupNewName_, internalTid, wakeupFromPid… in SchedWakeupNewEvent()
640 streamFilters_->cpuFilter_->InsertWakeupEvent(event.timeStamp_, internalTid); in SchedWakeupNewEvent()
642 …ataCache_->GetRawData()->AppendRawData(event.timeStamp_, RAW_SCHED_WAKEUP, targetCpu, internalTid); in SchedWakeupNewEvent()
651 …auto internalTid = streamFilters_->processFilter_->UpdateOrCreateThread(event.timeStamp_, wakePidV… in SchedWakingEvent() local
653 streamFilters_->cpuFilter_->InsertWakeupEvent(event.timeStamp_, internalTid, true); in SchedWakingEvent()
[all …]
/developtools/smartperf_host/trace_streamer/test/unittest/table/
Dtable_test.cpp126 InternalTid internalTid = 1; variable
146 startT, durationNs, internalTid, cat, nameIdentify, name, depth, cookid, parentId);
497 int64_t internalTid = 1; variable
518 …ream_.traceDataCache_->GetInstantsData()->AppendInstantEventData(timeStamp, nameIndex, internalTid,
591 InternalTid internalTid = 1; variable
607 …stream_.traceDataCache_->GetIrqData()->AppendInternalSlice(startT, durationNs, internalTid, cat, n…
699 uint64_t internalTid = 1; variable
701 ….traceDataCache_->GetProcessMeasureFilterData()->AppendNewFilter(filterId, nameIndex, internalTid);
1049 uint32_t internalTid = 1; variable
1056 stream_.traceDataCache_->GetRawData()->AppendRawData(timeStamp, name, cpu, internalTid);
[all …]
/developtools/smartperf_host/trace_streamer/src/parser/bytrace_parser/
Dbytrace_event_parser.cpp302 …InternalTid internalTid = streamFilters_->processFilter_->UpdateOrCreateThread(line.ts, wakePidVal… in SchedWakeupEvent() local
303 streamFilters_->cpuFilter_->InsertWakeupEvent(line.ts, internalTid); in SchedWakeupEvent()
307 instants->AppendInstantEventData(line.ts, schedWakeupName_, internalTid, wakeupFromPid); in SchedWakeupEvent()
330 …InternalTid internalTid = streamFilters_->processFilter_->UpdateOrCreateThread(line.ts, wakePidVal… in SchedWakingEvent() local
335 streamFilters_->cpuFilter_->InsertWakeupEvent(line.ts, internalTid, true); in SchedWakingEvent()
336 instants->AppendInstantEventData(line.ts, schedWakingName_, internalTid, wakeupFromPid); in SchedWakingEvent()