Home
last modified time | relevance | path

Searched refs:pid_t (Results 1 – 25 of 84) sorted by relevance

1234

/developtools/hiperf/include/
Dvirtual_runtime.h44 using uSymbolsHits = std::unordered_map<pid_t, std::unordered_set<uint64_t>>;
80 pid_t devhostPid_ = -1;
81 void SetDevhostPid(pid_t devhost);
88 static_assert(sizeof(pid_t) == sizeof(int));
132 DfxSymbol GetSymbol(uint64_t ip, pid_t pid, pid_t tid,
135 VirtualThread &GetThread(pid_t pid, pid_t tid, const std::string name = "");
136 const std::map<pid_t, VirtualThread> &GetThreads() const in GetThreads()
145 std::string ReadThreadName(pid_t tid, bool isThread);
146 std::string ReadFromSavedCmdLines(pid_t tid);
147 bool IsKernelThread(pid_t pid);
[all …]
Dsubcommand.h89 std::vector<pid_t> &selectPids);
92 … bool HandleSubCommandExclude(const std::vector<pid_t> &excludeTids, const std::vector<std::string>
93 &excludeThreadNames, std::vector<pid_t> &selectTids);
95 …void ExcludeTidsFromSelectTids(const std::vector<pid_t> &excludeTids, std::vector<pid_t> &selectTi…
97 std::vector<pid_t> &selectTids);
Dvirtual_thread.h46 VirtualThread(pid_t pid, const std::vector<std::unique_ptr<SymbolsFile>> &symbolsFiles) in VirtualThread()
56 VirtualThread(pid_t pid, pid_t tid, VirtualThread &thread, in VirtualThread()
71 pid_t pid_;
72 pid_t tid_;
83 void ParseDevhostMap(pid_t devhost);
Dcallstack.h62 size_t ExpandCallStack(pid_t tid, std::vector<CallFrame> &callFrames, size_t expandLimit = 1u);
65 pid_t lastPid_ = -1;
80 std::map<pid_t, HashList<uint64_t, std::vector<CallFrame>>> cachedCallFramesMap_;
107 std::unordered_map<pid_t, unw_addr_space_t> unwindAddrSpaceMap_;
110 std::unordered_map<pid_t, dsoUnwDynInfoMap> unwindTableInfoMap_;
113 std::unordered_map<pid_t, unwMemoryCache> porcessMemoryMap_;
140 std::unordered_map<pid_t, std::shared_ptr<Unwinder>> pidUnwinder_;
143 std::unordered_map<pid_t, DsoUnwindTableInfoMap> unwindTableInfoMap_;
Dutilities.h107 pid_t tid;
108 pid_t pid;
180 std::vector<pid_t> GetSubthreadIDs(const pid_t pid);
217 std::vector<pid_t> GetSubthreadIDs(const pid_t pid, std::map<pid_t, ThreadInfos> &thread_map);
333 pid_t GetAppPackagePid(const std::string &appPackage, const pid_t oldPid, const int checkAppMs,
336 void CollectPidsByAppname(std::set<pid_t> &pids, const std::string &appPackage);
337 bool CheckAppIsRunning (std::vector<pid_t> &selectPids, const std::string &appPackage, int checkApp…
Dsubcommand_record.h224 std::vector<pid_t> selectCpus_ = {};
225 std::vector<pid_t> selectPids_ = {};
226 std::vector<pid_t> selectTids_ = {};
227 std::vector<pid_t> excludeTids_ = {};
266 std::map<pid_t, std::vector<pid_t>> mapPids_;
327 std::unordered_map<pid_t, std::unordered_set<uint64_t>> kernelThreadSymbolsHits_;
Dsubcommand_stat.h106 std::vector<pid_t> selectPids_;
107 std::vector<pid_t> selectTids_;
113 bool CheckOptionPidAndApp(std::vector<pid_t> pids);
114 bool CheckOptionPid(std::vector<pid_t> pids);
151 bool CheckOptions(const std::vector<pid_t> &pids);
Dperf_events.h354 void SetCpu(const std::vector<pid_t> cpus); // cpu id must be [0~N]
355 void SetPid(const std::vector<pid_t> pids); // tis is same as pid in kernel
398 pid_t tid;
402 Summary(const int cpu, const pid_t tid, const __u64 eventCount, in Summary()
411 pid_t pid;
412 pid_t tid;
542 std::vector<pid_t> pids_;
543 std::vector<pid_t> cpus_;
559 pid_t pid;
596 pid_t selfPid_ = -1;
[all …]
Dreport_json_file.h291 pid_t tid_ = 0;
312 ReportThreadItem(pid_t id) : tid_(id), callNode(-1), callNodeReverse(-1) {} in ReportThreadItem()
316 pid_t pid_ = 0;
318 std::map<pid_t, ReportThreadItem> threads_;
331 explicit ReportProcessItem(pid_t pid) : pid_(pid) {} in ReportProcessItem()
338 std::map<pid_t, ReportProcessItem> processes_;
369 void UpdateReportSample(uint64_t configid, pid_t pid, pid_t tid, uint64_t eventCount);
370 void UpdateReportCallStack(uint64_t id, pid_t pid, pid_t tid, uint64_t eventCount,
Dtracked_command.h55 inline pid_t GetChildPid() in GetChildPid()
70 pid_t childPid_ {-1};
Dunique_stack_table.h80 UniqueStackTable(pid_t pid) : pid_(pid) in UniqueStackTable()
85 UniqueStackTable(pid_t pid, uint32_t size) : pid_(pid), tableSize_(size) in UniqueStackTable()
139 using ProcessStackMap = std::map<pid_t, std::shared_ptr<UniqueStackTable>>;
/developtools/profiler/device/plugins/native_daemon/include/
Dvirtual_runtime.h60 static_assert(sizeof(pid_t) == sizeof(int));
67 const DfxSymbol GetSymbol(CallFrame& callFrame, pid_t pid, pid_t tid,
70 VirtualThread &GetThread(pid_t pid, pid_t tid);
71 const std::map<pid_t, VirtualThread> &GetThreads() const in GetThreads()
79 pid_t pid,
80 pid_t tid,
83 …bool GetSymbolName(pid_t pid, pid_t tid, std::vector<CallFrame>& callFrames, int offset, bool firs…
89 VirtualThread &UpdateThread(pid_t pid, pid_t tid, const std::string name = "");
122 void UpdateMaps(pid_t pid, pid_t tid);
167 std::map<pid_t, VirtualThread> userSpaceThreadMap_;
[all …]
Dvirtual_thread.h76 VirtualThread(pid_t pid,
77 pid_t tid,
84 std::string ReadThreadName(pid_t tid);
86 pid_t pid_ {0};
87 pid_t tid_ {0};
Dcall_stack.h47 size_t ExpendCallStack(pid_t tid, std::vector<CallFrame> &callFrames, size_t expendLimit = 1u);
62 std::map<pid_t, HashList<uint64_t, std::vector<CallFrame>>> cachedCallFramesMap_;
66 std::unordered_map<pid_t, unwMemoryCache> porcessMemoryMap_;
91 std::unordered_map<pid_t, unw_addr_space_t> unwindAddrSpaceMap_;
94 std::unordered_map<pid_t, dsoUnwDynInfoMap> unwindTableInfoMap_;
120 std::unordered_map<pid_t, std::shared_ptr<Unwinder>> pidUnwinder_;
123 std::unordered_map<pid_t, DsoUnwindTableInfoMap> unwindTableInfoMap_;
/developtools/hiperf/test/unittest/common/native/
Dcpu_usage_test.cpp30 pid_t GetPidByProcessName(std::string procName);
32 int GetVmRSSLine(pid_t pid);
42 float GetAverageCpuUsage(pid_t pid, uint64_t timeOut);
53 pid_t CpuUsageTest::GetPidByProcessName(std::string procName) in GetPidByProcessName()
57 pid_t pid = -1; in GetPidByProcessName()
68 int CpuUsageTest::GetVmRSSLine(pid_t pid) in GetVmRSSLine()
193 float CpuUsageTest::GetAverageCpuUsage(pid_t pid, uint64_t timeOut) in GetAverageCpuUsage()
221 pid_t pid = GetPidByProcessName("hiperf");
237 pid_t pid = GetPidByProcessName("hiperf");
253 pid_t pid = GetPidByProcessName("hiperf");
[all …]
Dhiperf_client_test.cpp197 vector<pid_t> selectPids = {getpid()};
206 vector<pid_t> selectPids = {getpid()};
217 vector<pid_t> selectPids = {getpid()};
229 vector<pid_t> selectPids = {getpid()};
239 vector<pid_t> selectPids = {getpid()};
249 vector<pid_t> selectPids = {getpid()};
260 vector<pid_t> selectPids = {getpid()};
270 vector<pid_t> selectPids = {getpid()};
280 vector<pid_t> selectPids = {getpid()};
289 vector<pid_t> selectPids = {getpid()};
[all …]
/developtools/hiperf/test/unittest/common/native/include/
Dvirtual_runtime_test.h29 constexpr const pid_t TEST_DWARF_RECORD_PID = 643;
30 constexpr const pid_t TEST_DWARF_RECORD_TID = 644;
82 constexpr const pid_t TEST_DWARF_RECORD_PID = 24925;
83 constexpr const pid_t TEST_DWARF_RECORD_TID = 24926;
/developtools/hiperf/src/
Dsubcommand.cpp67 std::vector<pid_t> &selectPids) in CheckRestartOption()
87 bool SubCommand::HandleSubCommandExclude(const std::vector<pid_t> &excludeTids, const std::vector<s… in HandleSubCommandExclude()
88 &excludeThreadNames, std::vector<pid_t> &selectTids) in HandleSubCommandExclude()
109 void SubCommand::ExcludeTidsFromSelectTids(const std::vector<pid_t> &excludeTids, std::vector<pid_t in ExcludeTidsFromSelectTids()
129 std::vector<pid_t> &selectTids) in ExcludeThreadsFromSelectTids()
Dutilities.cpp493 std::vector<pid_t> GetSubthreadIDs(const pid_t pid) in GetSubthreadIDs()
499 std::vector<pid_t> res {}; in GetSubthreadIDs()
501 pid_t tid = static_cast<pid_t>(std::stoul(tidStr, nullptr)); in GetSubthreadIDs()
510 std::vector<pid_t> GetSubthreadIDs(const pid_t pid, std::map<pid_t, ThreadInfos> &thread_map) in GetSubthreadIDs() argument
516 std::vector<pid_t> res{}; in GetSubthreadIDs()
519 pid_t tid = static_cast<pid_t>(std::stoul(tidStr, nullptr)); in GetSubthreadIDs()
579 void CollectPidsByAppname(std::set<pid_t> &pids, const std::string &appPackage) in CollectPidsByAppname()
598 std::set<pid_t> oldPids {}; in IsRestarted()
599 std::set<pid_t> newPids {}; in IsRestarted()
600 std::vector<pid_t> intersection; in IsRestarted()
[all …]
Dvirtual_runtime.cpp53 std::string VirtualRuntime::ReadFromSavedCmdLines(pid_t tid) in ReadFromSavedCmdLines()
80 std::string VirtualRuntime::ReadThreadName(pid_t tid, bool isThread) in ReadThreadName()
100 VirtualThread &VirtualRuntime::UpdateThread(pid_t pid, pid_t tid, const std::string name) in UpdateThread()
115 VirtualThread &VirtualRuntime::CreateThread(pid_t pid, pid_t tid, const std::string name) in CreateThread()
207 VirtualThread &VirtualRuntime::GetThread(pid_t pid, pid_t tid, const std::string name) in GetThread()
224 void VirtualRuntime::UpdateThreadMaps(pid_t pid, pid_t tid, const std::string filename, in UpdateThreadMaps()
465 pid_t server_pid, perf_callchain_context context) in SymbolicCallFrame()
467 pid_t pid = static_cast<pid_t>(recordSample.data_.pid); in SymbolicCallFrame()
468 pid_t tid = static_cast<pid_t>(recordSample.data_.tid); in SymbolicCallFrame()
500 pid_t server_pid; in SymbolicRecord()
[all …]
/developtools/profiler/device/plugins/native_hook/include/
Druntime_stack_range.h28 void GetRuntimeStackEnd(const char* stackptr, const char** end, pid_t pid, pid_t tid);
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/include/
Dvirtual_runtime_test.h27 constexpr const pid_t TEST_DWARF_RECORD_PID = 643;
28 constexpr const pid_t TEST_DWARF_RECORD_TID = 644;
/developtools/profiler/device/plugins/native_daemon/src/
Dvirtual_runtime.cpp62 std::string VirtualRuntime::ReadThreadName(pid_t tid) in ReadThreadName()
70 VirtualThread &VirtualRuntime::UpdateThread(pid_t pid, pid_t tid, const std::string name) in UpdateThread()
85 VirtualThread &VirtualRuntime::CreateThread(pid_t pid, pid_t tid) in CreateThread()
94 VirtualThread &VirtualRuntime::GetThread(pid_t pid, pid_t tid) in GetThread()
125 bool VirtualRuntime::GetSymbolName(pid_t pid, pid_t tid, std::vector<CallFrame>& callFrames, int of… in GetSymbolName()
181 void VirtualRuntime::UpdateMaps(pid_t pid, pid_t tid) in UpdateMaps()
194 pid_t pid, in UnwindStack()
195 pid_t tid, in UnwindStack()
418 const DfxSymbol VirtualRuntime::GetSymbol(CallFrame& callFrame, pid_t pid, pid_t tid, in GetSymbol()
/developtools/hiperf/interfaces/innerkits/native/include/
Dhiperf_client.h148 void SetSelectPids(const std::vector<pid_t> &selectPids);
158 void SetSelectTids(const std::vector<pid_t> &selectTids);
335 bool ParentWait(pid_t &wpid, int &childStatus);
358 pid_t myPid_ = -1;
365 pid_t hperfPid_ = -1;
/developtools/hdc/src/daemon/
Dshell.h32 int CreateSubProcessPTY(const char *cmd, const char *arg0, const char *arg1, pid_t *pid);
39 pid_t pidShell = 0;

1234