/aosp14/system/core/debuggerd/ |
H A D | crash_dump.cpp | 77 static pid_t get_tracer(pid_t tracee) { in get_tracer() 91 pid_t tracer_pid = get_tracer(tid); in ptrace_seize_thread() 207 static pid_t g_target_thread = -1; 347 static pid_t wait_for_clone(pid_t pid, bool resume_child) { in wait_for_clone() 366 pid_t child; in wait_for_clone() 387 static pid_t wait_for_vm_process(pid_t pseudothread_tid) { in wait_for_vm_process() 416 pid_t target_process = getppid(); in main() 442 pid_t forkpid = fork(); in main() 457 pid_t pseudothread_tid; in main() 480 std::set<pid_t> threads; in main() [all …]
|
H A D | util.h | 26 std::vector<std::string> get_command_line(pid_t pid); 27 std::string get_process_name(pid_t pid); 28 std::string get_thread_name(pid_t tid); 31 bool iterate_tids(pid_t, std::function<void(pid_t)>);
|
H A D | util.cpp | 30 std::vector<std::string> get_command_line(pid_t pid) { in get_command_line() 50 std::string get_process_name(pid_t pid) { in get_process_name() 57 std::string get_thread_name(pid_t tid) { in get_thread_name() 79 bool iterate_tids(pid_t pid, std::function<void(pid_t)> callback) { in iterate_tids() 89 pid_t tid = atoi(entry->d_name); in iterate_tids()
|
/aosp14/system/core/libprocessgroup/ |
H A D | task_profiles.h | 98 bool ExecuteForProcess(uid_t uid, pid_t pid) const override; 128 bool ExecuteForProcess(uid_t uid, pid_t pid) const override; 131 bool IsValidForProcess(uid_t uid, pid_t pid) const override; 148 bool ExecuteForProcess(uid_t uid, pid_t pid) const override; 152 bool IsValidForProcess(uid_t uid, pid_t pid) const override; 174 bool ExecuteForProcess(uid_t uid, pid_t pid) const override; 178 bool IsValidForProcess(uid_t uid, pid_t pid) const override; 200 bool ExecuteForProcess(uid_t uid, pid_t pid) const; 205 bool IsValidForProcess(uid_t uid, pid_t pid) const; 221 bool ExecuteForProcess(uid_t uid, pid_t pid) const override; [all …]
|
/aosp14/system/core/init/ |
H A 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
|
H A 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()
|
H A D | snapuserd_transition.h | 44 SnapuserdSelinuxHelper(std::unique_ptr<SnapshotManager>&& sm, pid_t old_pid); 63 pid_t old_pid_; 73 void KillFirstStageSnapuserd(pid_t pid); 83 std::optional<pid_t> GetSnapuserdFirstStagePid();
|
H A D | sigchld_handler.cpp | 47 static pid_t ReapOneProcess() { in ReapOneProcess() 56 const pid_t pid = siginfo.si_pid; in ReapOneProcess() 124 void WaitToBeReaped(const std::vector<pid_t>& pids, std::chrono::milliseconds timeout) { in WaitToBeReaped() 126 std::vector<pid_t> alive_pids(pids.begin(), pids.end()); in WaitToBeReaped() 128 pid_t pid; in WaitToBeReaped() 142 for (pid_t pid : pids) { in WaitToBeReaped()
|
H A D | subcontext.h | 55 pid_t pid() const { return pid_; } in pid() 64 pid_t pid_; 72 bool SubcontextChildReap(pid_t pid);
|
/aosp14/frameworks/base/core/jni/ |
H A D | com_android_internal_os_KernelSingleProcessCpuThreadReader.cpp | 52 virtual bool startTrackingProcessCpuTimes(pid_t) = 0; 55 virtual bool startAggregatingTaskCpuTimes(pid_t, uint16_t) = 0; 64 getAggregatedTaskCpuFreqTimes(pid_t, const std::vector<uint16_t> &); 86 bool startTrackingProcessCpuTimes(pid_t tgid) { in startTrackingProcessCpuTimes() 90 bool startAggregatingTaskCpuTimes(pid_t pid, uint16_t aggregationKey) { in startAggregatingTaskCpuTimes() 95 getAggregatedTaskCpuFreqTimes(pid_t pid, const std::vector<uint16_t> &aggregationKeys) { in getAggregatedTaskCpuFreqTimes() 114 bool startTrackingProcessCpuTimes(pid_t tgid); 116 bool startAggregatingTaskCpuTimes(pid_t pid, uint16_t aggregationKey); 119 getAggregatedTaskCpuFreqTimes(pid_t tgid, const std::vector<uint16_t> &aggregationKeys); 270 bool MockCpuTimeInStateReader::startTrackingProcessCpuTimes(pid_t tgid) { in startTrackingProcessCpuTimes() [all …]
|
H A D | com_android_internal_os_KernelAllocationStats.cpp | 53 std::unordered_map<pid_t, std::set<ino_t>> pidToInodes; in KernelAllocationStats_getDmabufAllocations() 62 pid_t surfaceFlingerPid = -1; in KernelAllocationStats_getDmabufAllocations() 73 std::unordered_map<pid_t, PidDmaInfo> pidDmaInfos; in KernelAllocationStats_getDmabufAllocations() 75 pid_t pid = pidToInodeEntry.first; in KernelAllocationStats_getDmabufAllocations() 119 pid_t pid = pidDmaInfosEntry.first; in KernelAllocationStats_getDmabufAllocations()
|
/aosp14/system/core/debuggerd/libdebuggerd/ |
H A D | tombstone.cpp | 56 pid_t uid = getuid(); in engrave_tombstone_ucontext() 57 pid_t pid = getpid(); in engrave_tombstone_ucontext() 58 pid_t target_tid = gettid(); in engrave_tombstone_ucontext() 75 std::map<pid_t, ThreadInfo> threads; in engrave_tombstone_ucontext() 87 if (!iterate_tids(pid, [&threads, &thread, &target_tid](pid_t tid) { in engrave_tombstone_ucontext() 126 const std::map<pid_t, ThreadInfo>& threads, pid_t target_thread, in engrave_tombstone() argument
|
H A D | backtrace.cpp | 47 static void dump_process_header(log_t* log, pid_t pid, in dump_process_header() 57 static void dump_process_footer(log_t* log, pid_t pid) { in dump_process_footer() 80 const std::map<pid_t, ThreadInfo>& thread_info, pid_t target_thread) { in dump_backtrace() argument 108 pid_t pid = getpid(); in dump_backtrace_header()
|
/aosp14/frameworks/base/cmds/incidentd/src/ |
H A D | incidentd_util.h | 88 pid_t fork_execute_cmd(char* const argv[], Fpipe* input, Fpipe* output, int* status = nullptr); 98 pid_t fork_execute_cmd(char* const argv[], int in, int out, int* status = nullptr); 113 status_t kill_child(pid_t pid); 114 status_t wait_child(pid_t pid, int timeout_ms = 1000);
|
H A D | incidentd_util.cpp | 91 pid_t fork_execute_cmd(char* const argv[], Fpipe* input, Fpipe* output, int* status) { in fork_execute_cmd() 104 pid_t fork_execute_cmd(char* const argv[], int in, int out, int* status) { in fork_execute_cmd() 110 pid_t pid = vfork(); in fork_execute_cmd() 182 static bool waitpid_with_timeout(pid_t pid, int timeout_ms, int* status) { in waitpid_with_timeout() 194 pid_t child_pid = waitpid(pid, status, WNOHANG); in waitpid_with_timeout() 242 status_t kill_child(pid_t pid) { in kill_child() 249 status_t wait_child(pid_t pid, int timeout_ms) { in wait_child()
|
/aosp14/system/core/debuggerd/libdebuggerd/include/libdebuggerd/ |
H A D | tombstone.h | 55 const std::map<pid_t, ThreadInfo>& thread_info, pid_t target_thread, 63 const std::map<pid_t, ThreadInfo>& threads, pid_t target_thread,
|
H A D | types.h | 30 pid_t uid; 32 pid_t tid; 35 pid_t pid;
|
/aosp14/system/core/debuggerd/include/debuggerd/ |
H A 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,
|
/aosp14/frameworks/base/libs/hwui/renderthread/ |
H A D | HintSessionWrapper.h | 34 HintSessionWrapper(pid_t uiThreadId, pid_t renderThreadId); 52 pid_t mUiThreadId; 53 pid_t mRenderThreadId;
|
/aosp14/system/core/libutils/ |
H A D | ProcessCallStack.cpp | 44 static void dumpProcessHeader(Printer& printer, pid_t pid, const char* timeStr) { in dumpProcessHeader() 71 static void dumpProcessFooter(Printer& printer, pid_t pid) { in dumpProcessFooter() 77 static String8 getThreadName(pid_t tid) { in getThreadName() 137 pid_t selfPid = getpid(); in update() 156 pid_t tid = -1; in update() 212 pid_t tid = mThreadMap.keyAt(i); in printInternal()
|
/aosp14/system/core/debuggerd/tombstoned/ |
H A D | intercept_manager.h | 41 pid_t intercept_pid = -1; 49 std::unordered_map<pid_t, std::unique_ptr<Intercept>> intercepts; 56 bool GetIntercept(pid_t pid, DebuggerdDumpType dump_type, android::base::unique_fd* out_fd);
|
/aosp14/system/core/libprocessgroup/include/processgroup/ |
H A D | processgroup.h | 38 bool SetProcessProfiles(uid_t uid, pid_t pid, const std::vector<std::string>& profiles); 45 bool SetProcessProfiles(uid_t uid, pid_t pid, std::initializer_list<std::string_view> profiles); 49 bool SetProcessProfiles(uid_t uid, pid_t pid, std::span<const std::string_view> profiles); 56 bool SetProcessProfilesCached(uid_t uid, pid_t pid, const std::vector<std::string>& profiles);
|
/aosp14/system/core/llkd/ |
H A D | libllkd.cpp | 64 constexpr pid_t kernelPid = 0; 65 constexpr pid_t initPid = 1; 66 constexpr pid_t kthreaddPid = 2; 246 uid_t llkProcGetUid(pid_t tid) { in llkProcGetUid() 314 proc(pid_t tid, pid_t pid, pid_t ppid, const char* _comm, int time, char state, bool frozen) in proc() 460 int llkKillOneProcess(pid_t pid, char state, pid_t tid, const char* tcomm = nullptr, in llkKillOneProcess() 590 proc* llkTidLookup(pid_t tid) { in llkTidLookup() 598 void llkTidRemove(pid_t tid) { in llkTidRemove() 602 proc* llkTidAlloc(pid_t tid, pid_t pid, pid_t ppid, const char* comm, int time, char state, in llkTidAlloc() 739 bool llkSkipPid(pid_t pid) { in llkSkipPid() [all …]
|
/aosp14/system/core/debuggerd/handler/ |
H A D | debuggerd_fallback.cpp | 97 static bool forward_output(int src_fd, int dst_fd, pid_t expected_tid) { in forward_output() 108 pid_t tid; in forward_output() 142 static uint64_t pack_thread_fd(pid_t tid, int fd) { in pack_thread_fd() 150 static std::pair<pid_t, int> unpack_thread_fd(uint64_t value) { in unpack_thread_fd() 212 pid_t current_tid = gettid(); in trace_handler() 213 if (!iterate_tids(current_tid, [&output_fd, ¤t_tid](pid_t tid) { in trace_handler()
|
/aosp14/system/core/libbinderwrapper/include/binderwrapper/ |
H A D | stub_binder_wrapper.h | 81 void set_calling_pid(pid_t pid) { calling_pid_ = pid; } in set_calling_pid() 104 pid_t GetCallingPid() override; 126 pid_t calling_pid_;
|