/art/runtime/ |
D | exec_utils.h | 43 std::function<void(pid_t pid)> on_start = [](pid_t) {}; 46 std::function<void(pid_t pid)> on_end = [](pid_t) {}; 111 virtual android::base::unique_fd PidfdOpen(pid_t pid) const; 114 virtual std::string GetProcStat(pid_t pid) const; 121 bool GetStat(pid_t pid, /*out*/ ProcessStat* stat, /*out*/ std::string* error_msg) const;
|
D | exec_utils_test.cc | 75 MOCK_METHOD(std::string, GetProcStat, (pid_t pid), (const, override)); 93 android::base::unique_fd PidfdOpen(pid_t) const override { return android::base::unique_fd(-1); } in PidfdOpen() 98 android::base::unique_fd PidfdOpen(pid_t pid) const override { in PidfdOpen() 325 MockFunction<void(pid_t)> on_start; in TEST_P() 326 MockFunction<void(pid_t)> on_end; in TEST_P() 350 auto on_end = [](pid_t pid) { in TEST_P() 351 pid_t pgid = getpgid(pid); in TEST_P() 371 auto on_end = [](pid_t pid) { in TEST_P() 372 pid_t pgid = getpgid(pid); in TEST_P() 374 pid_t parent_pgid = getpgid(0); in TEST_P()
|
D | exec_utils.cc | 65 pid_t ExecWithoutWait(const std::vector<std::string>& arg_vector, in ExecWithoutWait() 78 pid_t pid = fork(); in ExecWithoutWait() 107 ExecResult WaitChild(pid_t pid, in WaitChild() 141 ExecResult WaitChildWithTimeoutFallback(pid_t pid, in WaitChildWithTimeoutFallback() 180 ExecResult WaitChildWithTimeout(pid_t pid, in WaitChildWithTimeout() 276 pid_t pid = ExecWithoutWait(arg_vector, new_process_group, error_msg); in ExecAndReturnResult() 333 unique_fd ExecUtils::PidfdOpen(pid_t pid) const { return art::PidfdOpen(pid, /*flags=*/0); } in PidfdOpen() 335 std::string ExecUtils::GetProcStat(pid_t pid) const { in GetProcStat() 354 bool ExecUtils::GetStat(pid_t pid, in GetStat()
|
D | native_stack_dump.h | 40 pid_t tid, 49 pid_t tid,
|
D | native_stack_dump.cc | 97 Addr2linePipe(int in_fd, int out_fd, const std::string& file_name, pid_t pid) in Addr2linePipe() 109 const pid_t child_pid; // The pid of the child, which we should kill when we're done. 126 pid_t pid = fork(); in Connect() 320 pid_t tid, in DumpNativeStack() 331 pid_t tid, in DumpNativeStack() 435 [[maybe_unused]] pid_t tid, 443 [[maybe_unused]] pid_t tid,
|
D | runtime_linux.cc | 38 pid_t tid = GetTid(); in HandleUnexpectedSignalLinux()
|
D | thread_list.h | 70 pid_t GetLockOwner(); // For SignalCatcher. 229 pid_t t = 0,
|
/art/tools/signal_dumper/ |
D | signal_dumper.cc | 133 Addr2linePipe(int in_fd, int out_fd, const std::string& file_name, pid_t pid) in Addr2linePipe() 145 const pid_t child_pid; // The pid of the child, which we should kill when we're done. 162 pid_t pid = fork(); in Connect() 331 std::set<pid_t> PtraceSiblings(pid_t pid) { in PtraceSiblings() 332 std::set<pid_t> ret; in PtraceSiblings() 351 pid_t tid = strtoul(de->d_name, &end, 10); in PtraceSiblings() 370 void DumpABI(pid_t forked_pid) { in DumpABI() 473 bool WaitForSigStopped(pid_t pid, uint32_t max_wait_micros) { in WaitForSigStopped() 476 pid_t rc = TEMP_FAILURE_RETRY(waitpid(pid, &status, WNOHANG)); in WaitForSigStopped() 502 void DumpThread(unwindstack::AndroidRemoteUnwinder& unwinder, pid_t pid, in DumpThread() [all …]
|
/art/test/137-cfi/ |
D | cfi.cc | 85 pid_t pid = fork(); in Java_Main_startSecondaryProcess() 160 static void MoreErrorInfo(pid_t pid, bool sig_quit_on_fail) { in MoreErrorInfo() 215 int wait_for_sigstop(pid_t tid, int* total_sleep_time_usec, [[maybe_unused]] bool* detach_failed) { in wait_for_sigstop() 218 pid_t n = TEMP_FAILURE_RETRY(waitpid(tid, &status, __WALL | WNOHANG | WUNTRACED)); in wait_for_sigstop() 247 pid_t pid = static_cast<pid_t>(pid_int); in Java_Main_unwindOtherProcess()
|
/art/imgdiag/ |
D | imgdiag_test.cc | 42 static const pid_t kImgDiagGuaranteedBadPid = (PID_MAX_LIMIT + 1); 79 bool Exec(pid_t image_diff_pid, const std::string& boot_image, std::string* error_msg) { in Exec() 102 bool ExecDefaultBootImage(pid_t image_diff_pid, std::string* error_msg) { in ExecDefaultBootImage()
|
D | page_info.cc | 65 bool OpenProcFiles(pid_t pid, /*out*/ ProcFiles& files, /*out*/ std::string& error_msg) { in OpenProcFiles() 206 void CountZeroPages(pid_t pid, ProcFiles& proc_files, std::ostream& os, size_t page_size) { in CountZeroPages() 307 pid_t pid, in PageInfo() 411 pid_t pid_ = -1;
|
D | imgdiag.cc | 1278 pid_t image_diff_pid, in ImgDiagDumper() 1279 pid_t zygote_diff_pid, in ImgDiagDumper() 1317 auto open_proc_maps = [&os](pid_t pid, in Init() 1333 auto open_mem_file = [&open_file](pid_t pid, /*out*/ std::unique_ptr<File>* mem_file) { in Init() 1339 auto open_pagemap_file = [&open_file](pid_t pid, /*out*/ std::unique_ptr<File>* pagemap_file) { in Init() 1770 void PrintPidLine(const std::string& kind, pid_t pid) { in PrintPidLine() 1794 pid_t image_diff_pid_; // Dump image diff against boot.art if pid is non-negative 1795 pid_t zygote_diff_pid_; // Dump image diff against zygote boot.art if pid is non-negative 1823 pid_t image_diff_pid, in DumpImage() 1824 pid_t zygote_diff_pid, in DumpImage() [all …]
|
/art/libartbase/base/ |
D | utils.h | 66 std::string GetThreadName(pid_t tid); 73 void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu); 150 size_t GetOsThreadStat(pid_t tid, char* buf, size_t len); 154 std::string GetOsThreadStatQuick(pid_t tid);
|
D | utils.cc | 201 return static_cast<pid_t>(::GetCurrentThreadId()); in GetTid() 207 std::string GetThreadName(pid_t tid) { in GetThreadName() 318 void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu) { in GetTaskStats() 369 size_t GetOsThreadStat(pid_t tid, char* buf, size_t len) { in GetOsThreadStat() 391 std::string GetOsThreadStatQuick(pid_t tid) { in GetOsThreadStatQuick() 411 pid_t me = GetTid(); in GetOtherThreadOsStats() 420 pid_t tid = atoi(de->d_name); in GetOtherThreadOsStats()
|
D | pidfd.h | 31 [[maybe_unused]] static android::base::unique_fd PidfdOpen(pid_t pid, uint32_t flags) { in PidfdOpen()
|
D | common_art_test.cc | 631 pid_t pid = fork(); in ForkAndExec() 683 std::vector<pid_t> GetPidByName(const std::string& process_name) { in GetPidByName() 684 std::vector<pid_t> results; in GetPidByName() 685 for (pid_t pid : android::base::AllPids{}) { in GetPidByName()
|
/art/libarttools/ |
D | testing.h | 56 [[maybe_unused]] static std::pair<pid_t, ScopeGuard<std::function<void()>>> ScopedExec( in ScopedExec() 65 pid_t pid = fork(); in ScopedExec()
|
D | tools.cc | 221 std::unordered_map<int, std::pair<pid_t, std::string>> running_processes; in EnsureNoProcessInDir() 225 for (pid_t pid : AllPids()) { in EnsureNoProcessInDir()
|
/art/runtime/base/ |
D | mutex.h | 220 pid_t GetExclusiveOwnerTid() const; 288 Atomic<pid_t> exclusive_owner_; 291 Atomic<pid_t> exclusive_owner_; // Guarded by mutex_. Asynchronous reads are OK. 398 pid_t GetExclusiveOwnerTid() const; 415 Atomic<pid_t> exclusive_owner_; 423 Atomic<pid_t> exclusive_owner_; // Writes guarded by rwlock_. Asynchronous reads are OK.
|
D | mutex-inl.h | 46 static_assert(sizeof(pid_t) <= sizeof(int32_t), "pid_t should fit in 32 bits"); 48 static inline pid_t SafeGetTid(const Thread* self) { in SafeGetTid() 252 inline pid_t Mutex::GetExclusiveOwnerTid() const { in GetExclusiveOwnerTid() 278 inline pid_t ReaderWriterMutex::GetExclusiveOwnerTid() const { in GetExclusiveOwnerTid()
|
/art/runtime/gc/ |
D | allocation_record.h | 89 pid_t GetTid() const { in GetTid() 93 void SetTid(pid_t t) { in SetTid() 122 pid_t tid_ = 0; 175 pid_t GetTid() const { in GetTid()
|
/art/perfetto_hprof/ |
D | perfetto_hprof.cc | 351 Writer(pid_t pid, JavaHprofDataSource::TraceContext* ctx, uint64_t timestamp) in Writer() 399 const pid_t pid_; 929 void BusyWaitpid(pid_t pid, uint32_t timeout_ms) { in BusyWaitpid() 938 pid_t wait_result = waitpid(pid, &stat_loc, WNOHANG); in BusyWaitpid() 962 const std::function<void(pid_t child)>& parent_runnable, in ForkAndRun() 963 const std::function<void(pid_t parent, uint64_t timestamp)>& child_runnable) { in ForkAndRun() 964 pid_t parent_pid = getpid(); in ForkAndRun() 982 pid_t pid = fork(); in ForkAndRun() 1019 void WriteHeapPackets(pid_t parent_pid, uint64_t timestamp) { in WriteHeapPackets() 1074 [](pid_t child) { in DumpPerfetto() [all …]
|
/art/test/dexpreopt/ |
D | dexpreopt_test.cc | 168 android::base::Result<std::vector<std::string>> GetMappedFiles(pid_t pid, in GetMappedFiles() 186 std::vector<pid_t> pids = art::GetPidByName(zygote_name); in GetZygoteMappedOatFiles() 197 std::vector<pid_t> pids = art::GetPidByName("system_server"); in GetSystemServerArtifactsMappedOdexes()
|
/art/artd/ |
D | artd.h | 65 explicit ArtdCancellationSignal(std::function<int(pid_t, int)> kill_func) in ArtdCancellationSignal() argument 83 std::unordered_set<pid_t> pids_ GUARDED_BY(mu_); 85 std::function<int(pid_t, int)> kill_; 95 std::function<int(pid_t, int)> kill_func = kill, 331 const std::function<int(pid_t, int)> kill_;
|
/art/runtime/jit/ |
D | jit_memory_region_test.cc | 158 pid_t pid = fork(); in TestUnmapWritableAfterFork() 256 pid_t pid = fork(); in TestMadviseDontFork() 343 pid_t pid = fork(); in TestFromSharedToPrivate()
|