Home
last modified time | relevance | path

Searched refs:pid_t (Results 1 – 25 of 331) sorted by relevance

12345678910>>...14

/system/unwinding/libbacktrace/
DThreadEntry.h26 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_;
Dbacktrace_read_benchmarks.cpp39 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()
DUnwindStack.h33 UnwindStackCurrent(pid_t pid, pid_t tid, BacktraceMap* map);
43 UnwindStackPtrace(pid_t pid, pid_t tid, BacktraceMap* map);
/system/extras/iotop/
Dtasklist.cpp40 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) { pid_list.push_back(pid); }); in ScanPid()
Dtasklist.h23 static bool Scan(std::map<pid_t, std::vector<pid_t>>&);
27 static bool ScanPid(pid_t pid, std::vector<pid_t>&);
/system/memory/libmeminfo/libdmabufinfo/include/dmabufinfo/
Ddmabufinfo.h41 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/memory/libmemunreachable/
DThreadCapture.cpp55 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 …]
DThreadCapture.h27 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/
Denvironment.h65 bool GetThreadMmapsInProcess(pid_t pid, std::vector<ThreadMmap>* thread_mmaps);
73 bool IsThreadAlive(pid_t tid);
74 std::vector<pid_t> GetAllProcesses();
75 std::vector<pid_t> GetThreadsInProcess(pid_t pid);
76 bool ReadThreadNameAndPid(pid_t tid, std::string* comm, pid_t* pid);
77 bool GetProcessForThread(pid_t tid, pid_t* pid);
78 bool GetThreadName(pid_t tid, std::string* name);
92 std::set<pid_t> WaitForAppProcesses(const std::string& package_name);
134 std::string GetCompleteProcessName(pid_t pid);
151 std::optional<uid_t> GetProcessUid(pid_t pid);
DRecordFilter.h52 std::set<pid_t> pids;
53 std::set<pid_t> tids;
66 void AddPids(const std::set<pid_t>& pids, bool exclude);
67 void AddTids(const std::set<pid_t>& tids, bool exclude);
83 std::optional<uid_t> GetUidForProcess(pid_t pid);
88 std::unordered_map<pid_t, std::optional<uid_t>> pid_to_uid_map_;
/system/libprocinfo/include/procinfo/
Dprocess.h51 pid_t tid;
52 pid_t pid;
53 pid_t ppid;
54 pid_t tracer;
63 bool GetProcessInfo(pid_t tid, ProcessInfo* process_info, std::string* error = nullptr);
73 typename std::enable_if<sizeof(typename Collection::value_type) >= sizeof(pid_t), bool>::type {
88 pid_t tid;
89 if (!android::base::ParseInt(dent->d_name, &tid, 1, std::numeric_limits<pid_t>::max())) {
104 auto GetProcessTids(pid_t pid, Collection* out, std::string* error = nullptr) ->
105 typename std::enable_if<sizeof(typename Collection::value_type) >= sizeof(pid_t), bool>::type {
/system/hwservicemanager/
DHidlService.h44 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{};
113pid_t mPid = static_cast<pid_t>(IServiceManager::PidConstant::NO_P…
/system/unwinding/libunwindstack/tests/
DTestUtils.h30 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/libbase/include/android-base/
Dprocess.h41 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/
Dlmkd_service.h33 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
Dsnapuserd_transition.h39 SnapuserdSelinuxHelper(std::unique_ptr<SnapshotManager>&& sm, pid_t old_pid);
57 pid_t old_pid_;
67 void KillFirstStageSnapuserd(pid_t pid);
77 std::optional<pid_t> GetSnapuserdFirstStagePid();
/system/logging/logd/
DPruneList.h29 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_;
DRecordingLogBuffer.h34 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,
/system/core/debuggerd/
Dcrash_dump.cpp73 static bool pid_contains_tid(int pid_proc_fd, pid_t tid) { in pid_contains_tid()
79 static pid_t get_tracer(pid_t tracee) { in get_tracer()
89 static bool ptrace_seize_thread(int pid_proc_fd, pid_t tid, std::string* error, int flags = 0) { in ptrace_seize_thread()
92 pid_t tracer = get_tracer(tid); in ptrace_seize_thread()
116 static bool wait_for_stop(pid_t tid, int* received_signal) { in wait_for_stop()
119 pid_t result = waitpid(tid, &status, __WALL); in wait_for_stop()
137 static bool ptrace_interrupt(pid_t tid, int* received_signal) { in ptrace_interrupt()
146 static bool activity_manager_notify(pid_t pid, int signal, const std::string& amfd_data) { in activity_manager_notify()
194 static pid_t g_target_thread = -1;
238 static void ParseArgs(int argc, char** argv, pid_t* pseudothread_tid, DebuggerdDumpType* dump_type)… in ParseArgs()
[all …]
Dutil.h25 std::vector<std::string> get_command_line(pid_t pid);
26 std::string get_process_name(pid_t pid);
27 std::string get_thread_name(pid_t tid);
/system/unwinding/libunwindstack/
DThreadEntry.h38 static ThreadEntry* Get(pid_t tid, bool create = true);
61 ThreadEntry(pid_t tid);
64 pid_t tid_;
73 static std::map<pid_t, ThreadEntry*> entries_;
/system/extras/memory_replay/
DThreads.h31 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/
DThreadCapture_test.cpp98 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/unwinding/libbacktrace/include/backtrace/
DBacktrace.h127 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/
Dclient.h29 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,

12345678910>>...14