Home
last modified time | relevance | path

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

123

/developtools/profiler/device/plugins/native_daemon/include/
Dvirtual_runtime.h55 static_assert(sizeof(pid_t) == sizeof(int));
62 const Symbol GetSymbol(uint64_t ip, pid_t pid, pid_t tid,
65 VirtualThread &GetThread(pid_t pid, pid_t tid);
66 const std::map<pid_t, VirtualThread> &GetThreads() const in GetThreads()
74 pid_t pid,
75 pid_t tid,
78 …bool GetSymbolName(pid_t pid, pid_t tid, std::vector<CallFrame>& callsFrames, int offset, bool fir…
91 void UpdateMaps(pid_t pid, pid_t tid);
96 std::map<pid_t, VirtualThread> userSpaceThreadMap_;
105 std::unordered_map<pid_t, HashList<uint64_t, Symbol>> threadSymbolCache_;
[all …]
Dvirtual_thread.h51 VirtualThread(pid_t pid,
52 pid_t tid,
65 std::string ReadThreadName(pid_t tid);
67 pid_t pid_;
68 pid_t tid_;
Dcall_stack.h55 size_t ExpendCallStack(pid_t tid, std::vector<CallFrame> &callFrames, size_t expendLimit = 1u);
70 std::map<pid_t, HashList<uint64_t, std::vector<CallFrame>>> cachedCallFramesMap_;
97 std::unordered_map<pid_t, unw_addr_space_t> unwindAddrSpaceMap_;
100 std::unordered_map<pid_t, dsoUnwDynInfoMap> unwindDynInfoMap_;
103 std::unordered_map<pid_t, unwMemoryCache> porcessMemoryMap_;
/developtools/hiperf/include/
Dvirtual_runtime.h72 static_assert(sizeof(pid_t) == sizeof(int));
90 const Symbol GetSymbol(uint64_t ip, pid_t pid, pid_t tid,
93 VirtualThread &GetThread(pid_t pid, pid_t tid);
94 const std::map<pid_t, VirtualThread> &GetThreads() const in GetThreads()
103 std::string ReadThreadName(pid_t tid);
126 std::map<pid_t, VirtualThread> userSpaceThreadMap_;
135 std::unordered_map<pid_t, HashList<uint64_t, Symbol>> threadSymbolCache_;
137 bool GetSymbolCache(uint64_t ip, pid_t pid, pid_t tid, Symbol &symbol,
149 VirtualThread &UpdateThread(pid_t pid, pid_t tid, const std::string name = "");
150 VirtualThread &CreateThread(pid_t pid, pid_t tid);
[all …]
Dvirtual_thread.h45 VirtualThread(pid_t pid, const std::vector<std::unique_ptr<SymbolsFile>> &symbolsFiles) in VirtualThread()
53 VirtualThread(pid_t pid, pid_t tid, VirtualThread &thread, in VirtualThread()
66 pid_t pid_;
67 pid_t tid_;
Dsubcommand_stat.h86 std::vector<pid_t> selectPids_;
87 std::vector<pid_t> selectTids_;
91 bool CheckOptionPid(std::vector<pid_t> pids);
113 bool CheckOptions(const std::vector<pid_t> &pids);
Dsubcommand_record.h199 std::vector<pid_t> selectCpus_ = {};
200 std::vector<pid_t> selectPids_ = {};
201 std::vector<pid_t> selectTids_ = {};
294 std::vector<pid_t> &selectTids);
295 pid_t GetAppPackagePid(const std::string &appPackge);
300 std::unordered_map<pid_t, std::unordered_set<uint64_t>> userSymbolsHits_;
Dcallstack.h58 size_t ExpandCallStack(pid_t tid, std::vector<CallFrame> &callFrames, size_t expandLimit = 1u);
73 std::map<pid_t, HashList<uint64_t, std::vector<CallFrame>>> cachedCallFramesMap_;
100 std::unordered_map<pid_t, unw_addr_space_t> unwindAddrSpaceMap_;
103 std::unordered_map<pid_t, dsoUnwDynInfoMap> unwindDynInfoMap_;
106 std::unordered_map<pid_t, unwMemoryCache> porcessMemoryMap_;
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};
Dperf_events.h241 void SetCpu(const std::vector<pid_t> cpus); // cpu id must be [0~N]
242 void SetPid(const std::vector<pid_t> pids); // tis is same as pid in kernel
399 std::vector<pid_t> pids_;
400 std::vector<pid_t> cpus_;
414 pid_t pid;
451 pid_t selfPid_ = -1;
495 OHOS::UniqueFd Open(perf_event_attr &attr, pid_t pid = 0, int cpu = -1, int group_fd = -1,
/developtools/hiperf/test/unittest/common/native/
Dhiperf_client_test.cpp197 vector<pid_t> selectPids = {getpid()};
206 vector<pid_t> selectPids = {getpid()};
217 vector<pid_t> selectPids = {getpid()};
227 vector<pid_t> selectPids = {getpid()};
237 vector<pid_t> selectPids = {getpid()};
247 vector<pid_t> selectPids = {getpid()};
258 vector<pid_t> selectPids = {getpid()};
268 vector<pid_t> selectPids = {getpid()};
278 vector<pid_t> selectPids = {getpid()};
287 vector<pid_t> selectTids = {gettid()};
[all …]
Dperf_events_test.cpp122 std::vector<pid_t> selectCpus_; in SetAllConfig()
124 std::vector<pid_t> pids; in SetAllConfig()
202 std::vector<pid_t> selectCpus_;
204 std::vector<pid_t> pids;
287 std::vector<pid_t> selectCpus_;
289 std::vector<pid_t> pids;
/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/profiler/device/plugins/native_daemon/src/
Dvirtual_runtime.cpp50 std::string VirtualRuntime::ReadThreadName(pid_t tid) in ReadThreadName()
58 VirtualThread &VirtualRuntime::UpdateThread(pid_t pid, pid_t tid, const std::string name) in UpdateThread()
73 VirtualThread &VirtualRuntime::CreateThread(pid_t pid, pid_t tid) in CreateThread()
82 VirtualThread &VirtualRuntime::GetThread(pid_t pid, pid_t tid) in GetThread()
113 bool VirtualRuntime::GetSymbolName(pid_t pid, pid_t tid, std::vector<CallFrame>& callsFrames, int o… in GetSymbolName()
165 void VirtualRuntime::UpdateMaps(pid_t pid, pid_t tid) in UpdateMaps()
178 pid_t pid, in UnwindStack()
179 pid_t tid, in UnwindStack()
356 bool VirtualRuntime::GetSymbolCache(uint64_t ip, pid_t pid, pid_t tid, Symbol &symbol, in GetSymbolCache()
388 const Symbol VirtualRuntime::GetSymbol(uint64_t ip, pid_t pid, pid_t tid, in GetSymbol()
/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/hdc/src/daemon/
Dshell.h32 int CreateSubProcessPTY(const char *cmd, const char *arg0, const char *arg1, pid_t *pid);
38 pid_t pidShell = 0;
/developtools/profiler/device/plugins/native_hook/src/
Druntime_stack_range.cpp182 static bool IfSubThread(pid_t pid, pid_t tid) in IfSubThread()
187 void GetRuntimeStackEnd(const char* stackptr, const char** end, pid_t pid, pid_t tid) in GetRuntimeStackEnd()
/developtools/hiperf/test/fuzztest/clientapi_fuzzer/
DClientApi_fuzzer.cpp41 std::vector<pid_t> DataToPidVector(const uint8_t *data, size_t size) in DataToPidVector()
43 std::vector<pid_t> argv; in DataToPidVector()
59 std::vector<pid_t> pids = DataToPidVector(data, size); in FuzzClientApiOption()
/developtools/hiperf/src/
Dvirtual_runtime.cpp41 std::string VirtualRuntime::ReadThreadName(pid_t tid) in ReadThreadName()
49 VirtualThread &VirtualRuntime::UpdateThread(pid_t pid, pid_t tid, const std::string name) in UpdateThread()
64 VirtualThread &VirtualRuntime::CreateThread(pid_t pid, pid_t tid) in CreateThread()
120 VirtualThread &VirtualRuntime::GetThread(pid_t pid, pid_t tid) in GetThread()
137 void VirtualRuntime::UpdateThreadMaps(pid_t pid, pid_t tid, const std::string filename, in UpdateThreadMaps()
560 bool VirtualRuntime::GetSymbolCache(uint64_t ip, pid_t pid, pid_t tid, Symbol &symbol, in GetSymbolCache()
585 const Symbol VirtualRuntime::GetSymbol(uint64_t ip, pid_t pid, pid_t tid, in GetSymbol()
Dtracked_command.cpp81 pid_t pid = fork(); in CreateChildProcess()
178 pid_t pid = waitpid(childPid_, &wstatus, WNOHANG); in WaitCommand()
195 pid_t pid = waitpid(childPid_, &wstatus, WNOHANG); in MakeInvalid()
/developtools/profiler/host/smartperf/trace_streamer/src/parser/hiperf_parser/hiperf/
Dvirtual_runtime.cpp41 std::string VirtualRuntime::ReadThreadName(pid_t tid) in ReadThreadName()
49 VirtualThread &VirtualRuntime::UpdateThread(pid_t pid, pid_t tid, const std::string name) in UpdateThread()
64 VirtualThread &VirtualRuntime::CreateThread(pid_t pid, pid_t tid) in CreateThread()
117 VirtualThread &VirtualRuntime::GetThread(pid_t pid, pid_t tid) in GetThread()
134 void VirtualRuntime::UpdateThreadMaps(pid_t pid, pid_t tid, const std::string filename, in UpdateThreadMaps()
553 bool VirtualRuntime::GetSymbolCache(uint64_t ip, pid_t pid, pid_t tid, Symbol &symbol, in GetSymbolCache()
578 const Symbol VirtualRuntime::GetSymbol(uint64_t ip, pid_t pid, pid_t tid, in GetSymbol()
/developtools/hiperf/interfaces/innerkits/native/include/
Dhiperf_client.h134 void SetSelectPids(const std::vector<pid_t> &selectPids);
139 void SetSelectTids(const std::vector<pid_t> &selectTids);
312 pid_t myPid_ = -1;
319 pid_t hperfPid_ = -1;
/developtools/hiperf/include/nonlinux/
DMingW64Fix.h23 using pid_t = _pid_t; variable

123