Home
last modified time | relevance | path

Searched refs:stackId (Results 1 – 8 of 8) sorted by relevance

/developtools/hiperf/src/
Dunique_stack_table.cpp119 uint64_t UniqueStackTable::PutIpsInTable(StackId *stackId, u64 *ips, u64 nr) in PutIpsInTable() argument
138 if (stackId == nullptr) { in PutIpsInTable()
141 stackId->section.id = prev; in PutIpsInTable()
142 stackId->section.nr = nr; in PutIpsInTable()
162 Node* UniqueStackTable::GetFrame(uint64_t stackId) in GetFrame() argument
165 if (stackId >= totalNodes_) { in GetFrame()
167 HLOGE("Failed to find frame by index: %" PRIu64 "", stackId); in GetFrame()
171 return reinterpret_cast<Node *>(&tableHead[stackId]); in GetFrame()
174 bool UniqueStackTable::GetIpsByStackId(StackId stackId, std::vector<u64>& ips) in GetIpsByStackId() argument
180 uint64_t nr = stackId.section.nr; in GetIpsByStackId()
[all …]
Dvirtual_runtime.cpp370 StackId stackId; in DedupFromRecord() local
371 stackId.value = 0; in DedupFromRecord()
383 while (table->PutIpsInTable(&stackId, ips, nr) == 0) { in DedupFromRecord()
392 recordSample->stackId_.value = stackId.value; in DedupFromRecord()
393 recordSample->header.size -= (sizeof(u64) * nr - sizeof(stackId)); in DedupFromRecord()
/developtools/hiperf/test/unittest/common/native/
Dunique_stack_table_test.cpp80 StackId stackId = {0}; variable
84 EXPECT_NE(table->PutIpsInTable(&stackId, baseips, sizeof(baseips)/sizeof(uint64_t)), 0);
87 EXPECT_NE(stackId.value, 0);
96 table->GetIpsByStackId(stackId, checkbaseips);
119 StackId stackId = {0}; variable
121 EXPECT_EQ(table->PutIpsInTable(&stackId, baseips, sizeof(baseips)/sizeof(uint64_t)), 0);
/developtools/hiperf/include/
Dunique_stack_table.h94 uint64_t PutIpsInTable(StackId *stackId, u64 *ips, u64 nr);
95 bool GetIpsByStackId(const StackId stackId, std::vector<u64>& ips);
122 Node* GetFrame(uint64_t stackId);
/developtools/profiler/device/plugins/native_daemon/src/
Dstack_preprocess.cpp519 uint32_t stackId = 0; in SetCallStackMap() local
523 stackId = responseLibraryMap_.size() + 1; in SetCallStackMap()
525 stackId = callStackMap_.size() + 1; in SetCallStackMap()
527 stackmap->set_id(stackId); in SetCallStackMap()
548 responseLibraryMap_[callStack_[0]] = stackId; in SetCallStackMap()
550 callStackMap_[callStack_] = stackId; in SetCallStackMap()
552 return stackId; in SetCallStackMap()
597 uint32_t stackId = FindCallStackId(callStack_); in GetCallStackId() local
598 if (stackId > 0) { in GetCallStackId()
599 return stackId; in GetCallStackId()
[all …]
/developtools/profiler/device/plugins/native_daemon/include/
Dstack_preprocess.h148 T* event, uint32_t stackId, const std::string& type = "");
162 void SetAllocStatisticsData(const RawStackPtr& rawStack, size_t stackId, bool isExists = false);
/developtools/smartperf_host/trace_streamer/src/filter/hook_filter/
Dnative_hook_filter.cpp736 void NativeHookFilter::UpdateReparseStack(uint64_t stackId, std::shared_ptr<std::vector<uint64_t>> … in UpdateReparseStack() argument
739 if (stackIdToCallChainIdMap_.count(stackId)) { in UpdateReparseStack()
740 stackIdToCallChainIdMap_.erase(stackId); in UpdateReparseStack()
745 if (!stackIdToFramesMap_.count(stackId)) { in UpdateReparseStack()
746 reparseStackIdToFramesMap_.emplace(std::make_pair(stackId, frames)); in UpdateReparseStack()
Dnative_hook_filter.h138 void UpdateReparseStack(uint64_t stackId, std::shared_ptr<std::vector<uint64_t>> frames);