Home
last modified time | relevance | path

Searched refs:si (Results 1 – 15 of 15) sorted by relevance

/system/core/debuggerd/libdebuggerd/
Dutility.cpp266 bool signal_has_si_addr(const siginfo_t* si) { in signal_has_si_addr() argument
268 if (si->si_code == SI_USER || si->si_code == SI_QUEUE || si->si_code == SI_TKILL) { in signal_has_si_addr()
272 switch (si->si_signo) { in signal_has_si_addr()
279 return si->si_code != SEGV_MTEAERR; in signal_has_si_addr()
285 bool signal_has_sender(const siginfo_t* si, pid_t caller_pid) { in signal_has_sender() argument
286 return SI_FROMUSER(si) && (si->si_pid != 0) && (si->si_pid != caller_pid); in signal_has_sender()
289 void get_signal_sender(char* buf, size_t n, const siginfo_t* si) { in get_signal_sender() argument
290 snprintf(buf, n, " from pid %d, uid %d", si->si_pid, si->si_uid); in get_signal_sender()
293 const char* get_signame(const siginfo_t* si) { in get_signame() argument
294 switch (si->si_signo) { in get_signame()
[all …]
Dtombstone_proto.cpp215 const siginfo *si = main_thread.siginfo; in dump_probable_cause() local
216 auto fault_addr = reinterpret_cast<uint64_t>(si->si_addr); in dump_probable_cause()
220 if (si->si_signo == SIGSEGV && si->si_code == SEGV_MAPERR) { in dump_probable_cause()
236 } else if (si->si_signo == SIGSEGV && si->si_code == SEGV_ACCERR) { in dump_probable_cause()
243 } else if (si->si_signo == SIGSYS && si->si_code == SYS_SECCOMP) { in dump_probable_cause()
245 si->si_syscall); in dump_probable_cause()
637 struct sysinfo si; in engrave_tombstone_proto() local
638 sysinfo(&si); in engrave_tombstone_proto()
643 result.set_process_uptime(si.uptime - starttime); in engrave_tombstone_proto()
/system/memory/libmemunreachable/
DScopedSignalHandler.h53 SignalFn([=](int signal, siginfo_t* si, void* uctx) { f(*this, signal, si, uctx); }); in install()
56 act.sa_sigaction = [](int signal, siginfo_t* si, void* uctx) { in install()
57 ((*handler_map_)[signal])(signal, si, uctx); in install()
DHeapWalker.cpp207 void HeapWalker::HandleSegFault(ScopedSignalHandler& handler, int signal, siginfo_t* si, in HandleSegFault() argument
209 uintptr_t addr = reinterpret_cast<uintptr_t>(si->si_addr); in HandleSegFault()
215 MEM_ALOGW("failed to read page at %p, signal %d", si->si_addr, signal); in HandleSegFault()
223 if (!MapOverPage(si->si_addr)) { in HandleSegFault()
/system/core/fastboot/
Dfs.cpp40 STARTUPINFO si; in exec_cmd() local
44 ZeroMemory(&si, sizeof(si)); in exec_cmd()
45 si.cb = sizeof(si); in exec_cmd()
64 &si, // Pointer to STARTUPINFO structure in exec_cmd()
/system/core/debuggerd/handler/
Ddebuggerd_handler.cpp190 static void log_signal_summary(const siginfo_t* si) { in log_signal_summary() argument
196 if (si->si_signo == BIONIC_SIGNAL_DEBUGGER) { in log_signal_summary()
205 if (signal_has_sender(si, self_pid)) { in log_signal_summary()
206 get_signal_sender(sender_desc, sizeof(sender_desc), si); in log_signal_summary()
209 if (si->si_signo == SIGSYS && si->si_code == SYS_SECCOMP) { in log_signal_summary()
210 async_safe_format_buffer(extra_desc, sizeof(extra_desc), ", syscall %d", si->si_syscall); in log_signal_summary()
211 } else if (signal_has_si_addr(si)) { in log_signal_summary()
212 async_safe_format_buffer(extra_desc, sizeof(extra_desc), ", fault addr %p", si->si_addr); in log_signal_summary()
226 si->si_signo, get_signame(si), si->si_code, get_sigcode(si), sender_desc, in log_signal_summary()
/system/memory/libion/tests/
Dallocate_test.cpp94 struct sysinfo si; in TEST_F() local
95 ASSERT_TRUE(sysinfo(&si) != -1); in TEST_F()
97 auto totalRamSize = si.totalram * si.mem_unit; in TEST_F()
/system/libbase/
Dmapped_file.cpp30 SYSTEM_INFO si; in InitPageSize() local
31 GetSystemInfo(&si); in InitPageSize()
32 return si.dwAllocationGranularity; in InitPageSize()
/system/unwinding/libunwindstack/tools/
Dunwind.cpp49 siginfo_t si; in Attach() local
50 if (ptrace(PTRACE_GETSIGINFO, pid, 0, &si) == 0) { in Attach()
/system/unwinding/libunwindstack/utils/
DPidUtils.cpp48 siginfo_t si; in Quiesce() local
51 if (ptrace(PTRACE_GETSIGINFO, pid, 0, &si) == 0) { in Quiesce()
/system/core/libutils/
DFileMap.cpp144 SYSTEM_INFO si; in create() local
146 GetSystemInfo( &si ); in create()
147 mPageSize = si.dwAllocationGranularity; in create()
/system/core/storaged/tests/
Dstoraged_test.cpp374 storage_info_t si; in TEST() local
397 si.day_start_tp = {}; in TEST()
402 si.update_perf_history((i + 1) * 5, stp); in TEST()
405 vector<int> history = si.get_perf_history(); in TEST()
433 storage_info_t si; in TEST() local
434 si.day_start_tp = {}; in TEST()
439 si.load_perf_history_proto(proto); in TEST()
444 si.update_perf_history(100, stp); in TEST()
446 vector<int> history = si.get_perf_history(); in TEST()
/system/security/keystore/
Dkeystore_attestation_id.cpp242 for (auto si : signature_digests) { in build_attestation_application_id() local
249 if (!ASN1_OCTET_STRING_set(asn1_item.get(), si.data(), si.size())) { in build_attestation_application_id()
/system/timezone/output_data/android/
Dtzids.prototxt1576 isoCode: "si"
/system/timezone/input_data/android/
Dcountryzones.txt3012 isoCode:"si"