Home
last modified time | relevance | path

Searched refs:process_info (Results 1 – 13 of 13) sorted by relevance

/system/core/libprocinfo/
Dprocess.cpp34 bool GetProcessInfo(pid_t tid, ProcessInfo* process_info, std::string* error) { in GetProcessInfo() argument
46 return GetProcessInfoFromProcPidFd(dirfd.get(), process_info, error); in GetProcessInfo()
66 bool GetProcessInfoFromProcPidFd(int fd, ProcessInfo* process_info, std::string* error) { in GetProcessInfoFromProcPidFd() argument
103 process_info->name = std::move(name); in GetProcessInfoFromProcPidFd()
107 process_info->tid = atoi(tab + 1); in GetProcessInfoFromProcPidFd()
110 process_info->pid = atoi(tab + 1); in GetProcessInfoFromProcPidFd()
113 process_info->ppid = atoi(tab + 1); in GetProcessInfoFromProcPidFd()
116 process_info->tracer = atoi(tab + 1); in GetProcessInfoFromProcPidFd()
119 process_info->uid = atoi(tab + 1); in GetProcessInfoFromProcPidFd()
122 process_info->gid = atoi(tab + 1); in GetProcessInfoFromProcPidFd()
[all …]
Dprocess_test.cpp42 TEST(process_info, process_info_smoke) { in TEST() argument
52 TEST(process_info, process_info_proc_pid_fd_smoke) { in TEST() argument
68 TEST(process_info, process_tids_smoke) { in TEST() argument
89 TEST(process_info, process_state) { in TEST() argument
/system/core/debuggerd/
Dcrash_dump.cpp80 android::procinfo::ProcessInfo process_info; in get_tracer() local
81 if (android::procinfo::GetProcessInfo(tracee, &process_info)) { in get_tracer()
82 return process_info.tracer; in get_tracer()
257 std::unique_ptr<unwindstack::Regs>* regs, ProcessInfo* process_info) { in ReadCrashInfo() argument
289 process_info->fdsan_table_address = crash_info->data.d.fdsan_table_address; in ReadCrashInfo()
290 process_info->gwp_asan_state = crash_info->data.d.gwp_asan_state; in ReadCrashInfo()
291 process_info->gwp_asan_metadata = crash_info->data.d.gwp_asan_metadata; in ReadCrashInfo()
292 process_info->scudo_stack_depot = crash_info->data.d.scudo_stack_depot; in ReadCrashInfo()
293 process_info->scudo_region_info = crash_info->data.d.scudo_region_info; in ReadCrashInfo()
298 process_info->abort_msg_address = crash_info->data.s.abort_msg_address; in ReadCrashInfo()
[all …]
/system/core/debuggerd/libdebuggerd/
Dscudo.cpp37 const ProcessInfo& process_info) { in ScudoCrashData() argument
38 if (!process_info.has_fault_address) { in ScudoCrashData()
42 auto stack_depot = AllocAndReadFully(process_memory, process_info.scudo_stack_depot, in ScudoCrashData()
44 auto region_info = AllocAndReadFully(process_memory, process_info.scudo_region_info, in ScudoCrashData()
47 untagged_fault_addr_ = untag_address(process_info.fault_address); in ScudoCrashData()
70 __scudo_get_error_info(&error_info_, process_info.fault_address, stack_depot.get(), in ScudoCrashData()
Dtombstone.cpp151 const ProcessInfo& process_info, unwindstack::Memory* process_memory) { in dump_signal_info() argument
153 if (process_info.has_fault_address) { in dump_signal_info()
154 size_t addr = process_info.fault_address; in dump_signal_info()
373 const ProcessInfo& process_info, bool primary_thread) { in dump_thread() argument
381 dump_signal_info(log, thread_info, process_info, unwinder->GetProcessMemory().get()); in dump_thread()
388 process_info, thread_info); in dump_thread()
390 std::make_unique<ScudoCrashData>(unwinder->GetProcessMemory().get(), process_info); in dump_thread()
401 dump_abort_message(log, unwinder->GetProcessMemory().get(), process_info.abort_msg_address); in dump_thread()
587 ProcessInfo process_info; in engrave_tombstone_ucontext() local
588 process_info.abort_msg_address = abort_msg_address; in engrave_tombstone_ucontext()
[all …]
Dgwp_asan.cpp66 const ProcessInfo& process_info, const ThreadInfo& thread_info) { in GwpAsanCrashData() argument
67 if (!process_memory || !process_info.gwp_asan_metadata || !process_info.gwp_asan_state) return; in GwpAsanCrashData()
69 if (!retrieve_gwp_asan_state(process_memory, process_info.gwp_asan_state, &state_)) return; in GwpAsanCrashData()
70 …metadata_.reset(retrieve_gwp_asan_metadata(process_memory, state_, process_info.gwp_asan_metadata)… in GwpAsanCrashData()
/system/extras/libfec/
Dfec_process.cpp19 struct process_info { struct
33 process_info *p = static_cast<process_info *>(cookie); in __process() argument
80 process_info info[threads]; in process()
120 process_info *p = NULL; in process()
/system/core/debuggerd/handler/
Ddebuggerd_handler.cpp301 debugger_process_info process_info; member
355 if (thread_info->process_info.fdsan_table) { in debuggerd_dispatch_pseudothread()
361 iovs[3] = {.iov_base = &thread_info->process_info, in debuggerd_dispatch_pseudothread()
362 .iov_len = sizeof(thread_info->process_info)}; in debuggerd_dispatch_pseudothread()
368 iovs[3] = {.iov_base = &thread_info->process_info.abort_msg, .iov_len = sizeof(uintptr_t)}; in debuggerd_dispatch_pseudothread()
510 debugger_process_info process_info = {}; in debuggerd_signal_handler() local
517 process_info.abort_msg = reinterpret_cast<void*>(si_val & ~1); in debuggerd_signal_handler()
522 process_info = g_callbacks.get_process_info(); in debuggerd_signal_handler()
535 debuggerd_fallback_handler(info, ucontext, process_info.abort_msg); in debuggerd_signal_handler()
554 .process_info = process_info, in debuggerd_signal_handler()
/system/extras/memtrack/
Dmemtrack.cpp142 cur_process_info_t process_info; in getInformation() local
144 process_info.pss_kb = 0; in getInformation()
146 process_info.pss_kb += pss_kb; in getInformation()
150 cur_[cmd_name_] = process_info; in getInformation()
152 cur_[cmd_name_].pss_kb += process_info.pss_kb; in getInformation()
/system/core/libprocinfo/include/procinfo/
Dprocess.h59 bool GetProcessInfo(pid_t tid, ProcessInfo* process_info, std::string* error = nullptr);
63 bool GetProcessInfoFromProcPidFd(int fd, ProcessInfo* process_info, std::string* error = nullptr);
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/
Dscudo.h30 ScudoCrashData(unwindstack::Memory* process_memory, const ProcessInfo& process_info);
Dtombstone.h49 const ProcessInfo& process_info, OpenFilesList* open_files,
Dgwp_asan.h41 GwpAsanCrashData(unwindstack::Memory* process_memory, const ProcessInfo& process_info,