Home
last modified time | relevance | path

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

/system/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, in GetProcessInfoFromProcPidFd() argument
106 process_info->name = std::move(name); in GetProcessInfoFromProcPidFd()
110 process_info->pid = atoi(tab + 1); in GetProcessInfoFromProcPidFd()
113 process_info->tid = 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()
180 process_info->state = parse_state(state); in GetProcessInfoFromProcPidFd()
[all …]
Dprocess_test.cpp45 TEST(process_info, process_info_smoke) { in TEST() argument
55 TEST(process_info, process_info_proc_pid_fd_smoke) { in TEST() argument
71 TEST(process_info, process_tids_smoke) { in TEST() argument
92 TEST(process_info, process_state) { in TEST() argument
131 TEST(process_info, process_start_time) { in TEST() argument
164 TEST(process_info, GetProcessInfoFromProcPidFd_set_error) { in TEST() argument
/system/core/debuggerd/
Dcrash_dump.cpp81 android::procinfo::ProcessInfo process_info; in get_tracer() local
82 if (android::procinfo::GetProcessInfo(tracee, &process_info)) { in get_tracer()
83 return process_info.tracer; in get_tracer()
269 std::unique_ptr<unwindstack::Regs>* regs, ProcessInfo* process_info) { in ReadCrashInfo() argument
301 process_info->fdsan_table_address = crash_info->data.d.fdsan_table_address; in ReadCrashInfo()
302 process_info->gwp_asan_state = crash_info->data.d.gwp_asan_state; in ReadCrashInfo()
303 process_info->gwp_asan_metadata = crash_info->data.d.gwp_asan_metadata; in ReadCrashInfo()
304 process_info->scudo_stack_depot = crash_info->data.d.scudo_stack_depot; in ReadCrashInfo()
305 process_info->scudo_region_info = crash_info->data.d.scudo_region_info; in ReadCrashInfo()
306 process_info->scudo_ring_buffer = crash_info->data.d.scudo_ring_buffer; in ReadCrashInfo()
[all …]
/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/libdebuggerd/
Dtombstone.cpp154 const ProcessInfo& process_info, unwindstack::Memory* process_memory) { in dump_signal_info() argument
156 if (process_info.has_fault_address) { in dump_signal_info()
159 size_t addr = process_info.maybe_tagged_fault_address; in dump_signal_info()
381 const ProcessInfo& process_info, bool primary_thread) { in dump_thread() argument
389 dump_signal_info(log, thread_info, process_info, unwinder->GetProcessMemory().get()); in dump_thread()
396 process_info, thread_info); in dump_thread()
398 std::make_unique<ScudoCrashData>(unwinder->GetProcessMemory().get(), process_info); in dump_thread()
408 dump_abort_message(log, unwinder->GetProcessMemory().get(), process_info.abort_msg_address); in dump_thread()
444 if (process_info.has_fault_address) { in dump_thread()
445 addr = process_info.untagged_fault_address; in dump_thread()
[all …]
Dscudo.cpp38 const ProcessInfo& process_info) { in ScudoCrashData() argument
39 if (!process_info.has_fault_address) { in ScudoCrashData()
43 auto stack_depot = AllocAndReadFully(process_memory, process_info.scudo_stack_depot, in ScudoCrashData()
45 auto region_info = AllocAndReadFully(process_memory, process_info.scudo_region_info, in ScudoCrashData()
47 auto ring_buffer = AllocAndReadFully(process_memory, process_info.scudo_ring_buffer, in ScudoCrashData()
50 untagged_fault_addr_ = process_info.untagged_fault_address; in ScudoCrashData()
73 __scudo_get_error_info(&error_info_, process_info.maybe_tagged_fault_address, stack_depot.get(), in ScudoCrashData()
Dgwp_asan.cpp69 const ProcessInfo& process_info, const ThreadInfo& thread_info) { in GwpAsanCrashData() argument
70 if (!process_memory || !process_info.gwp_asan_metadata || !process_info.gwp_asan_state) return; in GwpAsanCrashData()
72 if (!retrieve_gwp_asan_state(process_memory, process_info.gwp_asan_state, &state_)) return; in GwpAsanCrashData()
73 …metadata_.reset(retrieve_gwp_asan_metadata(process_memory, state_, process_info.gwp_asan_metadata)… in GwpAsanCrashData()
78 if (process_info.has_fault_address) { in GwpAsanCrashData()
79 crash_address_ = process_info.untagged_fault_address; in GwpAsanCrashData()
Dtombstone_proto.cpp187 const ProcessInfo& process_info, const ThreadInfo& main_thread) { in dump_probable_cause() argument
188 ScudoCrashData scudo_crash_data(unwinder->GetProcessMemory().get(), process_info); in dump_probable_cause()
194 GwpAsanCrashData gwp_asan_crash_data(unwinder->GetProcessMemory().get(), process_info, in dump_probable_cause()
241 const ProcessInfo& process_info) { in dump_abort_message() argument
243 uintptr_t address = process_info.abort_msg_address; in dump_abort_message()
602 const ProcessInfo& process_info, const OpenFilesList* open_files) { in engrave_tombstone_proto() argument
653 if (process_info.has_fault_address) { in engrave_tombstone_proto()
655 uintptr_t fault_addr = process_info.maybe_tagged_fault_address; in engrave_tombstone_proto()
662 dump_abort_message(&result, unwinder, process_info); in engrave_tombstone_proto()
672 dump_probable_cause(&result, unwinder, process_info, main_thread); in engrave_tombstone_proto()
/system/core/debuggerd/handler/
Ddebuggerd_handler.cpp299 debugger_process_info process_info; member
353 if (thread_info->process_info.fdsan_table) { in debuggerd_dispatch_pseudothread()
359 iovs[3] = {.iov_base = &thread_info->process_info, in debuggerd_dispatch_pseudothread()
360 .iov_len = sizeof(thread_info->process_info)}; in debuggerd_dispatch_pseudothread()
366 iovs[3] = {.iov_base = &thread_info->process_info.abort_msg, .iov_len = sizeof(uintptr_t)}; in debuggerd_dispatch_pseudothread()
508 debugger_process_info process_info = {}; in debuggerd_signal_handler() local
515 process_info.abort_msg = reinterpret_cast<void*>(si_val & ~1); in debuggerd_signal_handler()
520 process_info = g_callbacks.get_process_info(); in debuggerd_signal_handler()
533 debuggerd_fallback_handler(info, ucontext, process_info.abort_msg); in debuggerd_signal_handler()
552 .process_info = process_info, in debuggerd_signal_handler()
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/
Dtombstone.h57 const ProcessInfo& process_info, OpenFilesList* open_files,
65 const ProcessInfo& process_info, const OpenFilesList* open_files);
Dscudo.h33 ScudoCrashData(unwindstack::Memory* process_memory, const ProcessInfo& process_info);
Dgwp_asan.h44 GwpAsanCrashData(unwindstack::Memory* process_memory, const ProcessInfo& process_info,
/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/libprocinfo/include/procinfo/
Dprocess.h63 bool GetProcessInfo(pid_t tid, ProcessInfo* process_info, std::string* error = nullptr);
67 bool GetProcessInfoFromProcPidFd(int fd, ProcessInfo* process_info, std::string* error = nullptr);