Lines Matching refs:log
69 void _LOG(log_t* log, enum logtype ltype, const char* fmt, ...) { in _LOG() argument
70 bool write_to_tombstone = (log->tfd != -1); in _LOG()
72 && log->crashed_tid != -1 in _LOG()
73 && log->current_tid != -1 in _LOG()
74 && (log->crashed_tid == log->current_tid); in _LOG()
86 TEMP_FAILURE_RETRY(write(log->tfd, msg.c_str(), msg.size())); in _LOG()
91 if (log->amfd_data != nullptr) { in _LOG()
92 *log->amfd_data += msg; in _LOG()
124 void dump_memory(log_t* log, unwindstack::Memory* memory, uint64_t addr, const std::string& label) { argument
141 _LOG(log, logtype::MEMORY, "\n%s:\n", label.c_str());
218 _LOG(log, logtype::MEMORY, "%s %s\n", logline.c_str(), ascii.c_str());
427 void log_backtrace(log_t* log, unwindstack::Unwinder* unwinder, const char* prefix) { argument
429 _LOG(log, logtype::BACKTRACE,
431 _LOG(log, logtype::BACKTRACE,
433 _LOG(log, logtype::BACKTRACE, "%sNOTE: found under the lib/ directory are readable.\n", prefix);
435 _LOG(log, logtype::BACKTRACE,
442 _LOG(log, logtype::BACKTRACE, "%s%s\n", prefix, unwinder->FormatFrame(i).c_str());