Home
last modified time | relevance | path

Searched refs:log (Results 1 – 25 of 43) sorted by relevance

12

/system/security/keystore/
Dtest-keystore20 log_file=$prefix.log
28 function log() { function
61 log "comparing $baseline_file and $log_file"
62 diff $baseline_file $log_file || (log $tag FAILED && exit 1)
70 log "reset keystore as system user"
78 log "root does not have permission to run test"
82 log "but system user does"
87 log "password is now bar"
93 log "no error implies initialized and unlocked"
97 log "saw with no argument"
[all …]
/system/core/debuggerd/x86_64/
Dmachine.cpp28 void dump_memory_and_code(log_t* log, Backtrace* backtrace) { in dump_memory_and_code() argument
31 _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); in dump_memory_and_code()
35 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rax), "memory near rax:"); in dump_memory_and_code()
36 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rbx), "memory near rbx:"); in dump_memory_and_code()
37 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rcx), "memory near rcx:"); in dump_memory_and_code()
38 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rdx), "memory near rdx:"); in dump_memory_and_code()
39 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rsi), "memory near rsi:"); in dump_memory_and_code()
40 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rdi), "memory near rdi:"); in dump_memory_and_code()
42 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rip), "code around rip:"); in dump_memory_and_code()
45 void dump_registers(log_t* log, pid_t tid) { in dump_registers() argument
[all …]
/system/core/debuggerd/x86/
Dmachine.cpp27 void dump_memory_and_code(log_t* log, Backtrace* backtrace) { in dump_memory_and_code() argument
30 _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); in dump_memory_and_code()
34 dump_memory(log, backtrace, static_cast<uintptr_t>(r.eax), "memory near eax:"); in dump_memory_and_code()
35 dump_memory(log, backtrace, static_cast<uintptr_t>(r.ebx), "memory near ebx:"); in dump_memory_and_code()
36 dump_memory(log, backtrace, static_cast<uintptr_t>(r.ecx), "memory near ecx:"); in dump_memory_and_code()
37 dump_memory(log, backtrace, static_cast<uintptr_t>(r.edx), "memory near edx:"); in dump_memory_and_code()
38 dump_memory(log, backtrace, static_cast<uintptr_t>(r.esi), "memory near esi:"); in dump_memory_and_code()
39 dump_memory(log, backtrace, static_cast<uintptr_t>(r.edi), "memory near edi:"); in dump_memory_and_code()
41 dump_memory(log, backtrace, static_cast<uintptr_t>(r.eip), "code around eip:"); in dump_memory_and_code()
44 void dump_registers(log_t* log, pid_t tid) { in dump_registers() argument
[all …]
/system/core/debuggerd/
Dtombstone.cpp167 static void dump_header_info(log_t* log) { in dump_header_info() argument
174 _LOG(log, logtype::HEADER, "Build fingerprint: '%s'\n", fingerprint); in dump_header_info()
175 _LOG(log, logtype::HEADER, "Revision: '%s'\n", revision); in dump_header_info()
176 _LOG(log, logtype::HEADER, "ABI: '%s'\n", ABI_STRING); in dump_header_info()
179 static void dump_signal_info(log_t* log, pid_t tid, int signal, int si_code) { in dump_signal_info() argument
183 _LOG(log, logtype::HEADER, "cannot get siginfo: %s\n", strerror(errno)); in dump_signal_info()
197 _LOG(log, logtype::HEADER, "signal %d (%s), code %d (%s), fault addr %s\n", in dump_signal_info()
201 static void dump_thread_info(log_t* log, pid_t pid, pid_t tid) { in dump_thread_info() argument
222 log->should_retrieve_logcat = false; in dump_thread_info()
234 _LOG(log, logtype::HEADER, "pid: %d, tid: %d, name: %s >>> %s <<<\n", pid, tid, in dump_thread_info()
[all …]
Dbacktrace.cpp41 static void dump_process_header(log_t* log, pid_t pid) { in dump_process_header() argument
58 _LOG(log, logtype::BACKTRACE, "\n\n----- pid %d at %s -----\n", pid, timestr); in dump_process_header()
61 _LOG(log, logtype::BACKTRACE, "Cmd line: %s\n", procname); in dump_process_header()
63 _LOG(log, logtype::BACKTRACE, "ABI: '%s'\n", ABI_STRING); in dump_process_header()
66 static void dump_process_footer(log_t* log, pid_t pid) { in dump_process_footer() argument
67 _LOG(log, logtype::BACKTRACE, "\n----- end %d -----\n", pid); in dump_process_footer()
71 log_t* log, pid_t tid, bool attached, bool* detach_failed, int* total_sleep_time_usec) { in dump_thread() argument
89 _LOG(log, logtype::BACKTRACE, "\n\"%s\" sysTid=%d\n", threadname ? threadname : "<unknown>", tid); in dump_thread()
92 _LOG(log, logtype::BACKTRACE, "Could not attach to thread: %s\n", strerror(errno)); in dump_thread()
102 dump_backtrace_to_log(backtrace.get(), log, " "); in dump_thread()
[all …]
Dutility.cpp47 void _LOG(log_t* log, enum logtype ltype, const char* fmt, ...) { in _LOG() argument
48 bool write_to_tombstone = (log->tfd != -1); in _LOG()
50 && log->crashed_tid != -1 in _LOG()
51 && log->current_tid != -1 in _LOG()
52 && (log->crashed_tid == log->current_tid); in _LOG()
53 bool write_to_activitymanager = (log->amfd != -1); in _LOG()
67 TEMP_FAILURE_RETRY(write(log->tfd, buf, len)); in _LOG()
73 if (!android::base::WriteFully(log->amfd, buf, len)) { in _LOG()
76 log->amfd = -1; in _LOG()
125 void dump_memory(log_t* log, Backtrace* backtrace, uintptr_t addr, const char* fmt, ...) { argument
[all …]
Dmachine.h26 void dump_memory_and_code(log_t* log, Backtrace* backtrace);
27 void dump_registers(log_t* log, pid_t tid);
Dutility.h75 void _LOG(log_t* log, logtype ltype, const char *fmt, ...)
80 void dump_memory(log_t* log, Backtrace* backtrace, uintptr_t addr, const char* fmt, ...);
Dbacktrace.h32 void dump_backtrace_to_log(Backtrace* backtrace, log_t* log, const char* prefix);
/system/core/debuggerd/arm/
Dmachine.cpp28 void dump_memory_and_code(log_t* log, Backtrace* backtrace) { in dump_memory_and_code() argument
31 _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); in dump_memory_and_code()
38 dump_memory(log, backtrace, regs.uregs[reg], "memory near %.2s:", &reg_names[reg * 2]); in dump_memory_and_code()
41 dump_memory(log, backtrace, static_cast<uintptr_t>(regs.ARM_pc), "code around pc:"); in dump_memory_and_code()
44 dump_memory(log, backtrace, static_cast<uintptr_t>(regs.ARM_lr), "code around lr:"); in dump_memory_and_code()
48 void dump_registers(log_t* log, pid_t tid) { in dump_registers() argument
51 _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); in dump_registers()
55 _LOG(log, logtype::REGISTERS, " r0 %08x r1 %08x r2 %08x r3 %08x\n", in dump_registers()
58 _LOG(log, logtype::REGISTERS, " r4 %08x r5 %08x r6 %08x r7 %08x\n", in dump_registers()
61 _LOG(log, logtype::REGISTERS, " r8 %08x r9 %08x sl %08x fp %08x\n", in dump_registers()
[all …]
/system/core/debuggerd/arm64/
Dmachine.cpp30 void dump_memory_and_code(log_t* log, Backtrace* backtrace) { in dump_memory_and_code() argument
37 _LOG(log, logtype::ERROR, "%s: ptrace failed to get registers: %s", in dump_memory_and_code()
43 dump_memory(log, backtrace, regs.regs[reg], "memory near x%d:", reg); in dump_memory_and_code()
46 dump_memory(log, backtrace, static_cast<uintptr_t>(regs.pc), "code around pc:"); in dump_memory_and_code()
49 dump_memory(log, backtrace, static_cast<uintptr_t>(regs.sp), "code around sp:"); in dump_memory_and_code()
53 void dump_registers(log_t* log, pid_t tid) { in dump_registers() argument
60 _LOG(log, logtype::ERROR, "ptrace error: %s\n", strerror(errno)); in dump_registers()
65 _LOG(log, logtype::REGISTERS, in dump_registers()
73 _LOG(log, logtype::REGISTERS, " x28 %016llx x29 %016llx x30 %016llx\n", in dump_registers()
76 _LOG(log, logtype::REGISTERS, " sp %016llx pc %016llx pstate %016llx\n", in dump_registers()
[all …]
/system/core/debuggerd/mips64/
Dmachine.cpp32 void dump_memory_and_code(log_t* log, Backtrace* backtrace) { in dump_memory_and_code() argument
35 _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); in dump_memory_and_code()
50 dump_memory(log, backtrace, R(r.regs[reg]), "memory near %.2s:", &reg_names[reg * 2]); in dump_memory_and_code()
55 dump_memory(log, backtrace, pc, "code around pc:"); in dump_memory_and_code()
57 dump_memory(log, backtrace, ra, "code around ra:"); in dump_memory_and_code()
61 void dump_registers(log_t* log, pid_t tid) { in dump_registers() argument
64 _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); in dump_registers()
68 _LOG(log, logtype::REGISTERS, " zr %016" PRIxPTR " at %016" PRIxPTR in dump_registers()
71 _LOG(log, logtype::REGISTERS, " a0 %016" PRIxPTR " a1 %016" PRIxPTR in dump_registers()
74 _LOG(log, logtype::REGISTERS, " a4 %016" PRIxPTR " a5 %016" PRIxPTR in dump_registers()
[all …]
/system/core/debuggerd/mips/
Dmachine.cpp32 void dump_memory_and_code(log_t* log, Backtrace* backtrace) { in dump_memory_and_code() argument
35 _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); in dump_memory_and_code()
50 dump_memory(log, backtrace, R(r.regs[reg]), "memory near %.2s:", &reg_names[reg * 2]); in dump_memory_and_code()
55 dump_memory(log, backtrace, pc, "code around pc:"); in dump_memory_and_code()
57 dump_memory(log, backtrace, ra, "code around ra:"); in dump_memory_and_code()
61 void dump_registers(log_t* log, pid_t tid) { in dump_registers() argument
64 _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); in dump_registers()
68 _LOG(log, logtype::REGISTERS, " zr %08" PRIxPTR " at %08" PRIxPTR in dump_registers()
71 _LOG(log, logtype::REGISTERS, " a0 %08" PRIxPTR " a1 %08" PRIxPTR in dump_registers()
74 _LOG(log, logtype::REGISTERS, " t0 %08" PRIxPTR " t1 %08" PRIxPTR in dump_registers()
[all …]
/system/core/logd/
DREADME.property6 sent on to dmesg log
16 log ids at initial startup, at runtime
18 persist.logd.size.main number 256K Size of the buffer for the main log
19 persist.logd.size.system number 256K Size of the buffer for the system log
20 persist.logd.size.radio number 256K Size of the buffer for the radio log
21 persist.logd.size.event number 256K Size of the buffer for the event log
22 persist.logd.size.crash number 256K Size of the buffer for the crash log
26 to between 64K and 256M for log buffer sizes. Individual logs override the
Devent.logtags1 # The entries in this file map a sparse set of log tag numbers to tag names.
9 # impacts log readability, the latter makes regex searches more annoying).
DLogAudit.h31 int log(char *buf);
DLogAudit.cpp170 rc = logbuf->log(LOG_ID_EVENTS, now, uid, pid, tid, in logPrint()
220 rc = logbuf->log(LOG_ID_MAIN, now, uid, pid, tid, newstr, in logPrint()
242 int LogAudit::log(char *buf) { in log() function in LogAudit
/system/core/liblog/
DREADME9 #include <log/log.h>
61 #include <log/logger.h>
89 writing or reading logs. The log buffers are divided up in Main, Sys‐
94 cation or library. [ASR]LOG[VDIWE] calls are used to log to BAsic,
104 sub-log.
106 The log reading interfaces permit opening the logs either singly or
107 multiply, retrieving a log entry at a time in time sorted order,
108 optionally limited to a specific pid and tail of the log(s) and finally
109 a call closing the logs. A single log can be opened with android_log‐
111 ger_list_alloc, calling in turn the android_logger_open for each log
[all …]
Devent.logtags1 # The entries in this file map a sparse set of log tag numbers to tag names.
9 # impacts log readability, the latter makes regex searches more annoying).
/system/core/init/
Dbootchart.cpp102 static void do_log_uptime(FILE* log) { in do_log_uptime() argument
103 fprintf(log, "%lld\n", get_uptime_jiffies()); in do_log_uptime()
106 static void do_log_file(FILE* log, const char* procfile) { in do_log_file() argument
107 do_log_uptime(log); in do_log_file()
111 fprintf(log, "%s\n", content.c_str()); in do_log_file()
115 static void do_log_procs(FILE* log) { in do_log_procs() argument
116 do_log_uptime(log); in do_log_procs()
146 fputs(stat.c_str(), log); in do_log_procs()
151 fputc('\n', log); in do_log_procs()
/system/core/rootdir/
Dueventd.rc17 # group, then they'll only see log entries for their UID.
18 /dev/log/* 0666 root log
19 /dev/pmsg0 0222 root log
92 /sys/devices/platform/trusty.* trusty_version 0440 root log
/system/core/libutils/
DCallStack.cpp34 this->log(logtag); in CallStack()
52 void CallStack::log(const char* logtag, android_LogPriority priority, const char* prefix) const { in log() function in android::CallStack
/system/extras/perfprofd/tests/
DREADME.txt23 +-----------+ operations such as sleep, log, etc
56 simply log the fact that they are called; the test driver can
57 then examine the log to make sure that the daemon is doing
/system/bt/conf/
Dbt_stack.conf6 BtSnoopFileName=/sdcard/btsnoop_hci.log
/system/extras/f2fs_utils/
DAndroid.mk77 system/core/include/log
85 system/core/include/log

12