/system/core/libbacktrace/ |
D | ThreadEntry.h | 26 static ThreadEntry* Get(pid_t pid, pid_t tid, bool create = true); 51 ThreadEntry(pid_t pid, pid_t tid); 54 bool Match(pid_t chk_pid, pid_t chk_tid) { return (chk_pid == pid_ && chk_tid == tid_); } in Match() 56 pid_t pid_; 57 pid_t tid_;
|
D | backtrace_read_benchmarks.cpp | 39 static void Attach(pid_t pid) { in Attach() 59 ScopedPidReaper(pid_t pid) : pid_(pid) {} in ScopedPidReaper() 66 pid_t pid_; 69 static size_t ProcessVmRead(pid_t pid, uint64_t remote_src, void* dst, size_t len) { in ProcessVmRead() 82 static bool PtraceReadLong(pid_t pid, uint64_t addr, long* value) { in PtraceReadLong() 93 static size_t PtraceRead(pid_t pid, uint64_t addr, void* dst, size_t bytes) { in PtraceRead() 117 static void CreateRemoteProcess(size_t size, void** map, pid_t* pid) { in CreateRemoteProcess() 141 pid_t pid; in BM_read_with_ptrace() 159 pid_t pid; in BM_read_with_process_vm_read() 177 pid_t pid; in BM_read_with_backtrace_object()
|
D | UnwindStack.h | 33 UnwindStackCurrent(pid_t pid, pid_t tid, BacktraceMap* map); 43 UnwindStackPtrace(pid_t pid, pid_t tid, BacktraceMap* map);
|
/system/memory/libmeminfo/libdmabufinfo/include/dmabufinfo/ |
D | dmabufinfo.h | 41 void AddFdRef(pid_t pid) { in AddFdRef() 47 void AddMapRef(pid_t pid) { in AddMapRef() 54 const std::unordered_map<pid_t, int>& fdrefs() const { return fdrefs_; } in fdrefs() 55 const std::unordered_map<pid_t, int>& maprefs() const { return maprefs_; } in maprefs() 59 const std::set<pid_t>& pids() const { return pids_; } in pids() 65 uint64_t Pss(pid_t pid) const { return maprefs_.count(pid) > 0 ? size_ / maprefs_.size() : 0; } in Pss() 77 std::set<pid_t> pids_; 80 std::unordered_map<pid_t, int> fdrefs_; 81 std::unordered_map<pid_t, int> maprefs_; 82 void AddRefToPidMap(pid_t pid, std::unordered_map<pid_t, int>* map) { in AddRefToPidMap() [all …]
|
/system/extras/iotop/ |
D | tasklist.cpp | 40 pid_t pid = atoi(entry->d_name); in ScanPidsInDir() 48 bool TaskList::Scan(std::map<pid_t, std::vector<pid_t>>& tgid_map) { in Scan() argument 51 return ScanPidsInDir("/proc", [&tgid_map](pid_t tgid) { in Scan() 52 std::vector<pid_t> pid_list; in Scan() 59 bool TaskList::ScanPid(pid_t tgid, std::vector<pid_t>& pid_list) { in ScanPid() 62 return ScanPidsInDir(filename, [&pid_list](pid_t pid) { in ScanPid()
|
D | tasklist.h | 23 static bool Scan(std::map<pid_t, std::vector<pid_t>>&); 27 static bool ScanPid(pid_t pid, std::vector<pid_t>&);
|
/system/memory/libmemunreachable/ |
D | ThreadCapture.cpp | 55 static char* pid_to_str(char* buf, size_t len, pid_t pid) { in pid_to_str() 76 ThreadCaptureImpl(pid_t pid, Allocator<ThreadCaptureImpl>& allocator); 81 bool ReleaseThread(pid_t tid); 83 void InjectTestFunc(std::function<void(pid_t)>&& f) { inject_test_func_ = f; } in InjectTestFunc() 86 int CaptureThread(pid_t tid); 87 bool ReleaseThread(pid_t tid, unsigned int signal); 88 int PtraceAttach(pid_t tid); 89 void PtraceDetach(pid_t tid, unsigned int signal); 90 bool PtraceThreadInfo(pid_t tid, ThreadInfo& thread_info); 92 allocator::map<pid_t, unsigned int> captured_threads_; [all …]
|
D | ThreadCapture.h | 27 pid_t tid; 32 using TidList = allocator::vector<pid_t>; 39 ThreadCapture(pid_t pid, Allocator<ThreadCapture> allocator); 45 bool ReleaseThread(pid_t tid); 47 void InjectTestFunc(std::function<void(pid_t)>&& f);
|
/system/extras/simpleperf/ |
D | environment.h | 60 bool GetThreadMmapsInProcess(pid_t pid, std::vector<ThreadMmap>* thread_mmaps); 68 bool IsThreadAlive(pid_t tid); 69 std::vector<pid_t> GetAllProcesses(); 70 std::vector<pid_t> GetThreadsInProcess(pid_t pid); 71 bool ReadThreadNameAndPid(pid_t tid, std::string* comm, pid_t* pid); 72 bool GetProcessForThread(pid_t tid, pid_t* pid); 73 bool GetThreadName(pid_t tid, std::string* name); 75 bool GetValidThreadsFromThreadString(const std::string& tid_str, std::set<pid_t>* tid_set); 106 std::set<pid_t> WaitForAppProcesses(const std::string& package_name); 140 std::string GetCompleteProcessName(pid_t pid);
|
D | workload.h | 48 pid_t GetPid() { in GetPid() 55 void SetKillFunction(const std::function<void (pid_t)>& kill_function) { in SetKillFunction() 70 pid_t work_pid_; 73 std::function<void (pid_t)> kill_function_;
|
/system/core/libprocinfo/include/procinfo/ |
D | process.h | 50 pid_t tid; 51 pid_t pid; 52 pid_t ppid; 53 pid_t tracer; 59 bool GetProcessInfo(pid_t tid, ProcessInfo* process_info, std::string* error = nullptr); 69 typename std::enable_if<sizeof(typename Collection::value_type) >= sizeof(pid_t), bool>::type { 84 pid_t tid; 85 if (!android::base::ParseInt(dent->d_name, &tid, 1, std::numeric_limits<pid_t>::max())) { 100 auto GetProcessTids(pid_t pid, Collection* out, std::string* error = nullptr) -> 101 typename std::enable_if<sizeof(typename Collection::value_type) >= sizeof(pid_t), bool>::type {
|
/system/hwservicemanager/ |
D | HidlService.h | 44 const pid_t pid); 51 static_cast<pid_t>(IServiceManager::PidConstant::NO_PID)) in HidlService() 60 void setService(sp<IBase> service, pid_t pid); 61 pid_t getDebugPid() const; 67 void registerPassthroughClient(pid_t pid); 92 const std::set<pid_t> &getPassthroughClients() const; 112 std::set<pid_t> mPassthroughClients{}; 113 …pid_t mPid = static_cast<pid_t>(IServiceManager::PidConstant::NO_P…
|
/system/core/libunwindstack/tests/ |
D | TestUtils.h | 30 TestScopedPidReaper(pid_t pid) : pid_(pid) {} in TestScopedPidReaper() 37 pid_t pid_; 40 inline bool TestQuiescePid(pid_t pid) { in TestQuiescePid() 54 inline bool TestAttach(pid_t pid) { in TestAttach() 62 inline bool TestDetach(pid_t pid) { in TestDetach()
|
/system/core/debuggerd/ |
D | crash_dump.cpp | 72 static bool pid_contains_tid(int pid_proc_fd, pid_t tid) { in pid_contains_tid() 78 static pid_t get_tracer(pid_t tracee) { in get_tracer() 88 static bool ptrace_seize_thread(int pid_proc_fd, pid_t tid, std::string* error, int flags = 0) { in ptrace_seize_thread() 91 pid_t tracer = get_tracer(tid); in ptrace_seize_thread() 115 static bool wait_for_stop(pid_t tid, int* received_signal) { in wait_for_stop() 118 pid_t result = waitpid(tid, &status, __WALL); in wait_for_stop() 136 static bool ptrace_interrupt(pid_t tid, int* received_signal) { in ptrace_interrupt() 145 static bool activity_manager_notify(pid_t pid, int signal, const std::string& amfd_data) { in activity_manager_notify() 193 static pid_t g_target_thread = -1; 236 static void ParseArgs(int argc, char** argv, pid_t* pseudothread_tid, DebuggerdDumpType* dump_type)… in ParseArgs() [all …]
|
/system/libbase/include/android-base/ |
D | process.h | 41 using difference_type = pid_t; 42 using value_type = pid_t; 43 using pointer = const pid_t*; 44 using reference = const pid_t&; 50 pid_t pid_ = -1;
|
/system/core/init/ |
D | lmkd_service.h | 33 void LmkdRegister(const std::string& name, uid_t uid, pid_t pid, int oom_score_adjust); 34 void LmkdUnregister(const std::string& name, pid_t pid); 38 static inline void LmkdRegister(const std::string&, uid_t, pid_t, int) {} in LmkdRegister() argument 39 static inline void LmkdUnregister(const std::string&, pid_t) {} in LmkdUnregister() argument
|
D | lmkd_service.cpp | 37 static LmkdRegistrationResult RegisterProcess(uid_t uid, pid_t pid, int oom_score_adjust) { in RegisterProcess() 62 static bool UnregisterProcess(pid_t pid) { in UnregisterProcess() 81 static void RegisterServices(pid_t exclude_pid) { in RegisterServices() 98 void LmkdRegister(const std::string& name, uid_t uid, pid_t pid, int oom_score_adjust) { in LmkdRegister() 124 void LmkdUnregister(const std::string& name, pid_t pid) { in LmkdUnregister()
|
/system/core/logd/ |
D | PruneList.h | 29 static const pid_t PID_ALL = (pid_t)-1; 31 Prune(uid_t uid, pid_t pid) : uid_(uid), pid_(pid) {} in Prune() 37 pid_t pid() const { return pid_; } in pid() 41 const pid_t pid_;
|
D | RecordingLogBuffer.h | 34 int Log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, const char* msg, 38 void RecordLogMessage(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid,
|
D | LogStatistics.h | 52 pid_t pid; 53 pid_t tid; 101 void MaxEntries(uid_t uid, pid_t pid, std::array<const TKey*, len>& out_keys, in MaxEntries() 115 pid_t entry_pid = 0; in MaxEntries() 258 pid_t pid() const { return pid_; } in pid() 271 pid_t pid_; 275 uid_t pidToUid(pid_t pid); 280 explicit PidEntry(pid_t pid) in PidEntry() 295 void Add(pid_t new_pid) { in Add() 318 std::string format(const LogStatistics& stat, log_id_t id, pid_t pid) const; [all …]
|
/system/extras/memory_replay/ |
D | Threads.h | 31 Thread* CreateThread(pid_t tid); 32 Thread* FindThread(pid_t tid); 49 Thread* FindEmptyEntry(pid_t tid); 50 size_t GetHashEntry(pid_t tid);
|
/system/memory/libmemunreachable/tests/ |
D | ThreadCapture_test.cpp | 98 std::vector<pid_t>& tids() { return tids_; } in tids() 121 std::vector<pid_t> tids_; 131 auto expected_tids = allocator::vector<pid_t>(1, getpid(), heap); in TEST_F() 132 auto list_tids = allocator::vector<pid_t>(heap); in TEST_F() 147 std::vector<pid_t> expected_tids = tids(); in TEST_P() 150 auto list_tids = allocator::vector<pid_t>(heap); in TEST_P() 180 std::function<void(pid_t)>&& parent) { in Fork() 221 [&](pid_t child) { in TEST_P() 229 auto list_tids = allocator::vector<pid_t>(heap); in TEST_P() 264 thread_capture.InjectTestFunc([&](pid_t tid) { in TEST_F() [all …]
|
/system/core/libbacktrace/include/backtrace/ |
D | Backtrace.h | 127 static Backtrace* Create(pid_t pid, pid_t tid, BacktraceMap* map = nullptr); 161 pid_t Pid() const { return pid_; } in Pid() 162 pid_t Tid() const { return tid_; } in Tid() 190 Backtrace(pid_t pid, pid_t tid, BacktraceMap* map); 200 pid_t pid_; 201 pid_t tid_;
|
/system/core/debuggerd/include/debuggerd/ |
D | client.h | 29 bool debuggerd_trigger_dump(pid_t pid, enum DebuggerdDumpType dump_type, unsigned int timeout_ms, 32 int dump_backtrace_to_file(pid_t tid, enum DebuggerdDumpType dump_type, int output_fd); 33 int dump_backtrace_to_file_timeout(pid_t tid, enum DebuggerdDumpType dump_type, int timeout_secs,
|
/system/update_engine/common/ |
D | subprocess.h | 73 pid_t Exec(const std::vector<std::string>& cmd, const ExecCallback& callback); 74 pid_t ExecFlags(const std::vector<std::string>& cmd, 80 void KillExec(pid_t pid); 87 int GetPipeFd(pid_t pid, int fd) const; 145 std::map<pid_t, std::unique_ptr<SubprocessRecord>> subprocess_records_;
|