/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/libprocinfo/include/procinfo/ |
D | process.h | 40 pid_t tid; 41 pid_t pid; 42 pid_t ppid; 43 pid_t tracer; 49 bool GetProcessInfo(pid_t tid, ProcessInfo* process_info); 59 typename std::enable_if<sizeof(typename Collection::value_type) >= sizeof(pid_t), bool>::type { 72 pid_t tid; 73 if (!android::base::ParseInt(dent->d_name, &tid, 1, std::numeric_limits<pid_t>::max())) { 86 auto GetProcessTids(pid_t pid, Collection* out) -> 87 typename std::enable_if<sizeof(typename Collection::value_type) >= sizeof(pid_t), bool>::type {
|
/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/extras/simpleperf/ |
D | environment.h | 56 bool GetThreadMmapsInProcess(pid_t pid, std::vector<ThreadMmap>* thread_mmaps); 63 bool IsThreadAlive(pid_t tid); 64 std::vector<pid_t> GetAllProcesses(); 65 std::vector<pid_t> GetThreadsInProcess(pid_t pid); 66 bool GetProcessForThread(pid_t tid, pid_t* pid); 67 bool GetThreadName(pid_t tid, std::string* name); 69 bool GetValidThreadsFromThreadString(const std::string& tid_str, std::set<pid_t>* tid_set);
|
D | InplaceSamplerClient.h | 30 static std::unique_ptr<InplaceSamplerClient> Create(const perf_event_attr& attr, pid_t pid, 31 const std::set<pid_t>& tids); 41 InplaceSamplerClient(const perf_event_attr& attr, pid_t pid, const std::set<pid_t>& tids); 47 const pid_t pid_; 48 const std::set<pid_t> tids_;
|
D | event_selection_set.h | 40 pid_t tid; 92 void AddMonitoredProcesses(const std::set<pid_t>& processes) { in AddMonitoredProcesses() 96 void AddMonitoredThreads(const std::set<pid_t>& threads) { in AddMonitoredThreads() 100 const std::set<pid_t>& GetMonitoredProcesses() const { return processes_; } in GetMonitoredProcesses() 102 const std::set<pid_t>& GetMonitoredThreads() const { return threads_; } in GetMonitoredThreads() 143 const std::map<pid_t, std::set<pid_t>>& process_map); 144 bool OpenEventFilesOnGroup(EventSelectionGroup& group, pid_t tid, int cpu, 160 std::set<pid_t> processes_; 161 std::set<pid_t> threads_;
|
/system/hwservicemanager/ |
D | HidlService.h | 28 const pid_t pid); 35 static_cast<pid_t>(IServiceManager::PidConstant::NO_PID)) in HidlService() 43 void setService(sp<IBase> service, pid_t pid); 44 pid_t getPid() const; 50 void registerPassthroughClient(pid_t pid); 53 const std::set<pid_t> &getPassthroughClients() const; 63 std::set<pid_t> mPassthroughClients{}; 64 …pid_t mPid = static_cast<pid_t>(IServiceManager::PidConstant::NO_P…
|
D | AccessControl.h | 11 bool canAdd(const std::string& fqName, pid_t pid); 12 bool canGet(const std::string& fqName, pid_t pid); 13 bool canList(pid_t pid); 15 bool checkPermission(pid_t sourcePid, const char *perm, const char *interface); 16 …bool checkPermission(pid_t sourcePid, const char *targetContext, const char *perm, const char *int…
|
D | AccessControl.cpp | 15 pid_t pid; 37 bool AccessControl::canAdd(const std::string& fqName, pid_t pid) { in canAdd() 48 bool AccessControl::canGet(const std::string& fqName, pid_t pid) { in canGet() 59 bool AccessControl::canList(pid_t pid) { in canList() 63 bool AccessControl::checkPermission(pid_t sourcePid, const char *targetContext, in checkPermission() 85 bool AccessControl::checkPermission(pid_t sourcePid, const char *perm, const char *interface) { in checkPermission()
|
/system/core/libbacktrace/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, 129 pid_t Pid() const { return pid_; } in Pid() 130 pid_t Tid() const { return tid_; } in Tid() 155 Backtrace(pid_t pid, pid_t tid, BacktraceMap* map); 165 pid_t pid_; 166 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); 45 pid_t getPid() const { in getPid()
|
D | LogStatistics.h | 76 std::unique_ptr<const TEntry* []> sort(uid_t uid, pid_t pid, in sort() 161 std::string format(const LogStatistics& stat, uid_t uid, pid_t pid, 266 pid_t pid; 280 inline const pid_t& getPid() const { in getPid() 296 uid_t pidToUid(pid_t pid); 300 const pid_t pid; 304 explicit PidEntry(pid_t pid) in PidEntry() 326 const pid_t& getKey() const { in getKey() 329 const pid_t& getPid() const { in getPid() 339 inline void add(pid_t newPid) { in add() [all …]
|
D | LogBuffer.h | 92 typedef std::unordered_map<pid_t, LogBufferElementCollection::iterator> 116 int log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, 122 pid_t* lastTid, // &lastTid[LOG_ID_MAX] or nullptr 133 std::string formatStatistics(uid_t uid, pid_t pid, unsigned int logMask); 158 const char* pidToName(pid_t pid) { in pidToName() 161 uid_t pidToUid(pid_t pid) { in pidToUid()
|
/system/core/debuggerd/libdebuggerd/ |
D | backtrace.cpp | 41 static void dump_process_header(log_t* log, pid_t pid, const char* process_name) { in dump_process_header() 55 static void dump_process_footer(log_t* log, pid_t pid) { in dump_process_footer() 59 static void log_thread_name(log_t* log, pid_t tid, const char* thread_name) { in log_thread_name() 63 static void dump_thread(log_t* log, BacktraceMap* map, pid_t pid, pid_t tid, in dump_thread() 76 void dump_backtrace(int fd, BacktraceMap* map, pid_t pid, pid_t tid, const std::string& process_nam… in dump_backtrace() 77 const std::map<pid_t, std::string>& threads, std::string* amfd_data) { in dump_backtrace() argument 86 pid_t thread_tid = it.first; in dump_backtrace() 97 pid_t pid = getpid(); in dump_backtrace_ucontext() 98 pid_t tid = gettid(); in dump_backtrace_ucontext()
|
/system/core/debuggerd/libdebuggerd/include/ |
D | tombstone.h | 39 pid_t pid, pid_t tid, const std::string& process_name, 40 const std::map<pid_t, std::string>& threads, uintptr_t abort_msg_address, 48 static void engrave_tombstone_ucontext(int tombstone_fd, pid_t, pid_t, uintptr_t abort_msg_address, in engrave_tombstone_ucontext() argument
|
/system/core/debuggerd/ |
D | crash_dump.cpp | 62 static std::string get_process_name(pid_t pid) { in get_process_name() 68 static std::string get_thread_name(pid_t tid) { in get_thread_name() 74 static bool pid_contains_tid(int pid_proc_fd, pid_t tid) { in pid_contains_tid() 81 static bool ptrace_seize_thread(int pid_proc_fd, pid_t tid, std::string* error) { in ptrace_seize_thread() 104 static bool activity_manager_notify(pid_t pid, int signal, const std::string& amfd_data) { in activity_manager_notify() 156 static void abort_handler(pid_t target, const bool& tombstoned_connected, in abort_handler() 198 pid_t target = getppid(); in main() 223 pid_t main_tid; in main() 224 pid_t pseudothread_tid; in main() 226 if (!android::base::ParseInt(argv[1], &main_tid, 1, std::numeric_limits<pid_t>::max())) { in main() [all …]
|
D | signal_sender.cpp | 35 static pid_t signal_pid; 37 pid_t pid; 38 pid_t tid; 80 pid_t parent = getpid(); in start_signal_sender() 81 pid_t fork_pid = fork(); in start_signal_sender() 151 bool send_signal(pid_t pid, pid_t tid, int signal) { in send_signal()
|
/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/core/debuggerd/include/debuggerd/ |
D | client.h | 32 bool debuggerd_trigger_dump(pid_t pid, android::base::unique_fd output_fd, 35 int dump_backtrace_to_file(pid_t tid, int fd); 36 int dump_backtrace_to_file_timeout(pid_t tid, int fd, int timeout_secs);
|
/system/netd/server/ |
D | ClatdController.cpp | 49 pid_t ClatdController::getClatdPid(char* interface) { in getClatdPid() 55 pid_t pid = getClatdPid(interface); in startClatd() 120 pid_t pid = getClatdPid(interface); in stopClatd() 139 pid_t waitpid_status; in isClatdStarted() 140 pid_t pid = getClatdPid(interface); in isClatdStarted()
|