• Home
  • Raw
  • Download

Lines Matching refs:console

563 bool readPstoreConsole(std::string& console) {  in readPstoreConsole()  argument
564 if (android::base::ReadFileToString("/sys/fs/pstore/console-ramoops-0", &console)) { in readPstoreConsole()
567 return android::base::ReadFileToString("/sys/fs/pstore/console-ramoops", &console); in readPstoreConsole()
575 const std::string& console; member in __anonabd3ca300111::pstoreConsole
592 const char* l = console.c_str() + pos; in numError()
614 explicit pstoreConsole(const std::string& console) : console(console) {} in pstoreConsole() argument
616 explicit pstoreConsole(const std::string&& console) = delete;
617 explicit pstoreConsole(std::string&& console) = delete;
621 size_t pos = console.rfind(needle); // exact match? in rfind()
625 pos = console.length(); in rfind()
640 if (needle.length() > console.length()) return std::string::npos; in find()
641 const size_t last_pos = console.length() - needle.length(); in find()
649 operator const std::string&() const { return console; } in operator const std::string&()
657 const pstoreConsole console(reason); in correctForBitError() local
660 pos = console.find(needle, pos); in correctForBitError()
823 bool addKernelPanicSubReason(const pstoreConsole& console, std::string& ret) { in addKernelPanicSubReason() argument
825 if ((console.rfind("SysRq : Trigger a crash") != std::string::npos) || in addKernelPanicSubReason()
826 (console.rfind("PC is at sysrq_handle_crash+") != std::string::npos)) { in addKernelPanicSubReason()
831 auto pos = console.rfind(sysrqSubreason); in addKernelPanicSubReason()
833 ret += "," + getSubreason(console, pos + strlen(sysrqSubreason), /* quoted */ true); in addKernelPanicSubReason()
837 if (console.rfind("Unable to handle kernel NULL pointer dereference at virtual address") != in addKernelPanicSubReason()
842 if (console.rfind("Kernel BUG at ") != std::string::npos) { in addKernelPanicSubReason()
848 auto pos = console.rfind(panic); in addKernelPanicSubReason()
876 if (console.find(panic + s.first, pos) != std::string::npos) { in addKernelPanicSubReason()
881 auto reason = getSubreason(console, pos + panic.length(), /* newline */ false); in addKernelPanicSubReason()
1041 const pstoreConsole console(content); in BootReasonStrToReason() local
1044 if (console.rfind("reboot: Power down") != std::string::npos) { in BootReasonStrToReason()
1053 size_t pos = console.rfind(cmd); in BootReasonStrToReason()
1072 if (!addKernelPanicSubReason(console, ret) && in BootReasonStrToReason()
1074 ((console.rfind("Power held for ") != std::string::npos) || in BootReasonStrToReason()
1075 (console.rfind("charger: [") != std::string::npos))) { in BootReasonStrToReason()