Home
last modified time | relevance | path

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

/system/core/debuggerd/libdebuggerd/
Dutility.cpp268 bool signal_has_si_addr(const siginfo_t* si) { in signal_has_si_addr() argument
270 if (si->si_code == SI_USER || si->si_code == SI_QUEUE || si->si_code == SI_TKILL) { in signal_has_si_addr()
274 switch (si->si_signo) { in signal_has_si_addr()
286 bool signal_has_sender(const siginfo_t* si, pid_t caller_pid) { in signal_has_sender() argument
287 return SI_FROMUSER(si) && (si->si_pid != 0) && (si->si_pid != caller_pid); in signal_has_sender()
290 void get_signal_sender(char* buf, size_t n, const siginfo_t* si) { in get_signal_sender() argument
291 snprintf(buf, n, " from pid %d, uid %d", si->si_pid, si->si_uid); in get_signal_sender()
294 const char* get_signame(const siginfo_t* si) { in get_signame() argument
295 switch (si->si_signo) { in get_signame()
311 const char* get_sigcode(const siginfo_t* si) { in get_sigcode() argument
[all …]
Dtombstone.cpp118 static void dump_probable_cause(log_t* log, const siginfo_t* si, unwindstack::Maps* maps, in dump_probable_cause() argument
121 if (si->si_signo == SIGSEGV && si->si_code == SEGV_MAPERR) { in dump_probable_cause()
122 if (si->si_addr < reinterpret_cast<void*>(4096)) { in dump_probable_cause()
124 } else if (si->si_addr == reinterpret_cast<void*>(0xffff0ffc)) { in dump_probable_cause()
126 } else if (si->si_addr == reinterpret_cast<void*>(0xffff0fe0)) { in dump_probable_cause()
128 } else if (si->si_addr == reinterpret_cast<void*>(0xffff0fc0)) { in dump_probable_cause()
130 } else if (si->si_addr == reinterpret_cast<void*>(0xffff0fa0)) { in dump_probable_cause()
132 } else if (si->si_addr == reinterpret_cast<void*>(0xffff0f60)) { in dump_probable_cause()
135 cause = get_stack_overflow_cause(reinterpret_cast<uint64_t>(si->si_addr), regs->sp(), maps); in dump_probable_cause()
137 } else if (si->si_signo == SIGSEGV && si->si_code == SEGV_ACCERR) { in dump_probable_cause()
[all …]
Dtombstone_proto.cpp201 const siginfo *si = main_thread.siginfo; in dump_probable_cause() local
202 auto fault_addr = reinterpret_cast<uint64_t>(si->si_addr); in dump_probable_cause()
206 if (si->si_signo == SIGSEGV && si->si_code == SEGV_MAPERR) { in dump_probable_cause()
222 } else if (si->si_signo == SIGSEGV && si->si_code == SEGV_ACCERR) { in dump_probable_cause()
229 } else if (si->si_signo == SIGSYS && si->si_code == SYS_SECCOMP) { in dump_probable_cause()
231 si->si_syscall); in dump_probable_cause()
/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/bt/bta/jv/
Dbta_jv_api.cc442 uint32_t si = BTA_JV_RFC_HDL_TO_SIDX(handle); in BTA_JvRfcommClose() local
447 si >= BTA_JV_MAX_RFC_SR_SESSION || !bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) in BTA_JvRfcommClose()
523 uint32_t si = BTA_JV_RFC_HDL_TO_SIDX(handle); in BTA_JvRfcommGetPortHdl() local
525 if (hi < BTA_JV_MAX_RFC_CONN && si < BTA_JV_MAX_RFC_SR_SESSION && in BTA_JvRfcommGetPortHdl()
526 bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) in BTA_JvRfcommGetPortHdl()
527 return bta_jv_cb.port_cb[bta_jv_cb.rfc_cb[hi].rfc_hdl[si] - 1].port_handle; in BTA_JvRfcommGetPortHdl()
544 uint32_t si = BTA_JV_RFC_HDL_TO_SIDX(handle); in BTA_JvRfcommWrite() local
549 << ", si=" << si; in BTA_JvRfcommWrite()
551 si >= BTA_JV_MAX_RFC_SR_SESSION || !bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) { in BTA_JvRfcommWrite()
559 &bta_jv_cb.port_cb[p_cb->rfc_hdl[si] - 1])); in BTA_JvRfcommWrite()
Dbta_jv_act.cc284 int si = BTA_JV_RFC_HDL_TO_SIDX(p_pcb->handle); in bta_jv_free_rfc_cb() local
285 if (0 <= si && si < BTA_JV_MAX_RFC_SR_SESSION) p_cb->rfc_hdl[si] = 0; in bta_jv_free_rfc_cb()
397 uint32_t si = BTA_JV_RFC_HDL_TO_SIDX(jv_handle); in bta_jv_free_set_pm_profile_cb() local
399 si < BTA_JV_MAX_RFC_SR_SESSION && in bta_jv_free_set_pm_profile_cb()
400 bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) { in bta_jv_free_set_pm_profile_cb()
402 bta_jv_rfc_port_to_pcb(bta_jv_cb.rfc_cb[hi].rfc_hdl[si]); in bta_jv_free_set_pm_profile_cb()
1498 uint32_t si = 0; in bta_jv_add_rfc_port() local
1522 } else if (si == 0) { in bta_jv_add_rfc_port()
1523 si = i + 1; in bta_jv_add_rfc_port()
1529 << ", si=" << si; in bta_jv_add_rfc_port()
[all …]
/system/unwinding/libunwindstack/tests/
DTestUtils.h41 siginfo_t si; in TestQuiescePid() local
45 if (ptrace(PTRACE_GETSIGINFO, pid, 0, &si) == 0) { in TestQuiescePid()
/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/unwinding/libunwindstack/tools/
Dunwind.cpp49 siginfo_t si; in Attach() local
50 if (ptrace(PTRACE_GETSIGINFO, pid, 0, &si) == 0) { in Attach()
Dunwind_for_offline.cpp66 siginfo_t si; in Attach() local
67 if (ptrace(PTRACE_GETSIGINFO, pid, 0, &si) == 0) { in Attach()
/system/libbase/
Dmapped_file.cpp30 SYSTEM_INFO si; in InitPageSize() local
31 GetSystemInfo(&si); in InitPageSize()
32 return si.dwAllocationGranularity; in InitPageSize()
/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.cpp361 storage_info_t si; in TEST() local
384 si.day_start_tp = {}; in TEST()
389 si.update_perf_history((i + 1) * 5, stp); in TEST()
392 vector<int> history = si.get_perf_history(); in TEST()
420 storage_info_t si; in TEST() local
421 si.day_start_tp = {}; in TEST()
426 si.load_perf_history_proto(proto); in TEST()
431 si.update_perf_history(100, stp); in TEST()
433 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/unwinding/libbacktrace/
Dbacktrace_read_benchmarks.cpp45 siginfo_t si; in Attach() local
48 if (ptrace(PTRACE_GETSIGINFO, pid, 0, &si) == 0) { in Attach()
Dbacktrace_test.cpp138 siginfo_t si; in WaitForStop() local
139 while (ptrace(PTRACE_GETSIGINFO, pid, 0, &si) < 0 && (errno == EINTR || errno == ESRCH)) { in WaitForStop()
/system/timezone/output_data/android/
Dtzids.prototxt1568 isoCode: "si"
/system/timezone/input_data/android/
Dcountryzones.txt2909 isoCode:"si"