/system/connectivity/shill/ |
D | process_manager.h | 61 virtual pid_t StartProcess( 75 virtual pid_t StartProcessInMinijail( in StartProcessInMinijail() 92 virtual pid_t StartProcessInMinijailWithPipes( 112 virtual bool StopProcess(pid_t pid); 115 virtual bool StopProcessAndBlock(pid_t pid); 119 pid_t pid, 132 void OnProcessExited(pid_t pid, const siginfo_t& info); 138 void ProcessTerminationTimeoutHandler(pid_t pid, bool kill_signal); 144 bool TerminateProcess(pid_t pid, bool kill_signal); 152 bool KillProcessWithTimeout(pid_t pid, bool kill_signal); [all …]
|
D | mock_process_manager.h | 39 pid_t(const tracked_objects::Location& spawn_source, 46 pid_t(const tracked_objects::Location& spawn_source, 54 pid_t(const tracked_objects::Location& spawn_source, 64 MOCK_METHOD1(StopProcess, bool(pid_t pid)); 65 MOCK_METHOD1(StopProcessAndBlock, bool(pid_t pid)); 67 bool(pid_t pid, const base::Callback<void(int)>& new_callback));
|
D | process_manager_unittest.cc | 58 void AddWatchedProcess(pid_t pid, const Callback<void(int)>& callback) { in AddWatchedProcess() 62 void AddTerminateProcess(pid_t pid, in AddTerminateProcess() 80 void OnProcessExited(pid_t pid, int exit_status) { in OnProcessExited() 86 void OnTerminationTimeout(pid_t pid, bool kill_signal) { in OnTerminationTimeout() 127 const pid_t kPid = 123; in TEST_F() 138 const pid_t kPid = 123; in TEST_F() 156 const pid_t kPid = 123; in TEST_F() 174 pid_t actual_pid = in TEST_F() 203 pid_t actual_pid = in TEST_F() 235 pid_t actual_pid = in TEST_F() [all …]
|
D | process_manager.cc | 89 pid_t ProcessManager::StartProcess( in StartProcess() 113 pid_t pid = process->pid(); in StartProcess() 129 pid_t ProcessManager::StartProcessInMinijailWithPipes( in StartProcessInMinijailWithPipes() 162 pid_t pid; in StartProcessInMinijailWithPipes() 180 bool ProcessManager::StopProcess(pid_t pid) { in StopProcess() 201 bool ProcessManager::StopProcessAndBlock(pid_t pid) { in StopProcessAndBlock() 238 bool ProcessManager::KillProcessWithTimeout(pid_t pid, bool kill_signal) { in KillProcessWithTimeout() 259 bool ProcessManager::KillProcess(pid_t pid, int signal, bool* killed) { in KillProcess() 274 bool ProcessManager::WaitpidWithTimeout(pid_t pid, in WaitpidWithTimeout() 293 pid_t pid, in UpdateExitCallback() [all …]
|
/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_;
|
/system/core/libmemunreachable/ |
D | ThreadCapture.cpp | 53 static char *pid_to_str(char *buf, size_t len, pid_t pid) { in pid_to_str() 74 ThreadCaptureImpl(pid_t pid, Allocator<ThreadCaptureImpl>& allocator); 79 bool ReleaseThread(pid_t tid); 81 void InjectTestFunc(std::function<void(pid_t)>&& f) { inject_test_func_ = f; } in InjectTestFunc() 83 int CaptureThread(pid_t tid); 84 bool ReleaseThread(pid_t tid, unsigned int signal); 85 int PtraceAttach(pid_t tid); 86 void PtraceDetach(pid_t tid, unsigned int signal); 87 bool PtraceThreadInfo(pid_t tid, ThreadInfo& thread_info); 89 allocator::map<pid_t, unsigned int> captured_threads_; [all …]
|
D | ThreadCapture.h | 25 pid_t tid; 30 using TidList = allocator::vector<pid_t>; 37 ThreadCapture(pid_t pid, Allocator<ThreadCapture> allocator); 43 bool ReleaseThread(pid_t tid); 45 void InjectTestFunc(std::function<void(pid_t)>&& f);
|
/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/core/include/backtrace/ |
D | Backtrace.h | 91 static Backtrace* Create(pid_t pid, pid_t tid, BacktraceMap* map = NULL); 98 static Backtrace* CreateOffline(pid_t pid, pid_t tid, BacktraceMap* map, 127 pid_t Pid() const { return pid_; } in Pid() 128 pid_t Tid() const { return tid_; } in Tid() 153 Backtrace(pid_t pid, pid_t tid, BacktraceMap* map); 163 pid_t pid_; 164 pid_t tid_;
|
/system/core/logd/ |
D | LogWhiteBlackList.h | 33 const pid_t mPid; 34 int cmp(uid_t uid, pid_t pid) const; 38 static const pid_t pid_all = (pid_t) -1; 40 Prune(uid_t uid, pid_t pid); 43 pid_t getPid() const { return mPid; } in getPid()
|
D | LogStatistics.h | 50 std::unique_ptr<const TEntry *[]> sort(uid_t uid, pid_t pid, in sort() 130 pid_t pid, 227 pid_t pid; 237 inline const pid_t&getPid() const { return pid; } in getPid() 251 uid_t pidToUid(pid_t pid); 255 const pid_t pid; 259 PidEntry(pid_t pid): in PidEntry() 279 const pid_t&getKey() const { return pid; } in getKey() 280 const pid_t&getPid() const { return getKey(); } in getPid() 284 inline void add(pid_t newPid) { in add() [all …]
|
D | LogBufferElement.h | 42 const pid_t mPid; 43 const pid_t mTid; 59 uid_t uid, pid_t pid, pid_t tid, 65 pid_t getPid(void) const { return mPid; } in getPid() 66 pid_t getTid(void) const { return mTid; } in getTid()
|
D | LogBuffer.h | 94 typedef std::unordered_map<pid_t, 111 uid_t uid, pid_t pid, pid_t tid, 123 std::string formatStatistics(uid_t uid, pid_t pid, unsigned int logMask); 133 const char *pidToName(pid_t pid) { return stats.pidToName(pid); } in pidToName() 134 uid_t pidToUid(pid_t pid) { return stats.pidToUid(pid); } in pidToUid()
|
/system/core/include/cutils/ |
D | debugger.h | 44 pid_t tid; 53 int dump_tombstone(pid_t tid, char* pathbuf, size_t pathlen); 61 int dump_tombstone_timeout(pid_t tid, char* pathbuf, size_t pathlen, int timeout_secs); 66 int dump_backtrace_to_file(pid_t tid, int fd); 73 int dump_backtrace_to_file_timeout(pid_t tid, int fd, int timeout_secs);
|
/system/core/debuggerd/ |
D | backtrace.cpp | 42 static void dump_process_header(log_t* log, pid_t pid) { in dump_process_header() 67 static void dump_process_footer(log_t* log, pid_t pid) { in dump_process_footer() 71 static void dump_thread(log_t* log, BacktraceMap* map, pid_t pid, pid_t tid) { in dump_thread() 100 void dump_backtrace(int fd, BacktraceMap* map, pid_t pid, pid_t tid, in dump_backtrace() 101 const std::set<pid_t>& siblings, std::string* amfd_data) { in dump_backtrace() 109 for (pid_t sibling : siblings) { in dump_backtrace()
|
D | signal_sender.cpp | 32 static pid_t signal_pid; 34 pid_t pid; 35 pid_t tid; 77 pid_t parent = getpid(); in start_signal_sender() 78 pid_t fork_pid = fork(); in start_signal_sender() 148 bool send_signal(pid_t pid, pid_t tid, int signal) { in send_signal()
|
D | tombstone.h | 35 void engrave_tombstone(int tombstone_fd, BacktraceMap* map, pid_t pid, pid_t tid, 36 const std::set<pid_t>& siblings, int signal, int original_si_code,
|
D | backtrace.h | 32 void dump_backtrace(int fd, BacktraceMap* map, pid_t pid, pid_t tid, 33 const std::set<pid_t>& siblings, std::string* amfd_data);
|
/system/core/libmemunreachable/tests/ |
D | ThreadCapture_test.cpp | 96 std::vector<pid_t>& 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() 181 std::function<void(pid_t)>&& parent) { in Fork() 222 [&](pid_t child){ in TEST_P() 230 auto list_tids = allocator::vector<pid_t>(heap); in TEST_P() 265 thread_capture.InjectTestFunc([&](pid_t tid){ in TEST_F() [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/update_engine/common/ |
D | subprocess.h | 72 pid_t Exec(const std::vector<std::string>& cmd, const ExecCallback& callback); 73 pid_t ExecFlags(const std::vector<std::string>& cmd, 79 void KillExec(pid_t pid); 86 int GetPipeFd(pid_t pid, int fd) const; 142 std::map<pid_t, std::unique_ptr<SubprocessRecord>> subprocess_records_;
|
/system/netd/server/ |
D | ClatdController.cpp | 46 pid_t ClatdController::getClatdPid(char* interface) { in getClatdPid() 52 pid_t pid = getClatdPid(interface); in startClatd() 117 pid_t pid = getClatdPid(interface); in stopClatd() 136 pid_t waitpid_status; in isClatdStarted() 137 pid_t pid = getClatdPid(interface); in isClatdStarted()
|
/system/core/libcutils/ |
D | debugger.c | 45 static int make_dump_request(debugger_action_t action, pid_t tid, int timeout_secs) { in make_dump_request() 78 int dump_backtrace_to_file(pid_t tid, int fd) { in dump_backtrace_to_file() 82 int dump_backtrace_to_file_timeout(pid_t tid, int fd, int timeout_secs) { in dump_backtrace_to_file_timeout() 102 int dump_tombstone(pid_t tid, char* pathbuf, size_t pathlen) { in dump_tombstone() 106 int dump_tombstone_timeout(pid_t tid, char* pathbuf, size_t pathlen, int timeout_secs) { in dump_tombstone_timeout()
|
/system/extras/simpleperf/ |
D | event_fd.h | 42 static std::unique_ptr<EventFd> OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu, 49 pid_t ThreadId() const { in ThreadId() 71 EventFd(int perf_event_fd, const std::string& event_name, pid_t tid, int cpu) in EventFd() 91 pid_t tid_;
|