/system/core/include/log/ |
D | log_read.h | 31 struct log_time { struct 39 log_time(const timespec &T) in log_time() argument 44 log_time(uint32_t sec, uint32_t nsec) in log_time() function 50 log_time() in log_time() argument 53 log_time(clockid_t id) in log_time() argument 60 log_time(const char *T) in log_time() argument 97 log_time operator-= (const timespec &T); 98 log_time operator- (const timespec &T) const 100 log_time local(*this); 103 log_time operator+= (const timespec &T); [all …]
|
D | logger.h | 187 log_time start,
|
/system/core/liblog/ |
D | log_time.cpp | 26 LIBLOG_ABI_PRIVATE const char log_time::default_format[] = "%m-%d %H:%M:%S.%q"; 27 LIBLOG_ABI_PRIVATE const timespec log_time::EPOCH = { 0, 0 }; 31 LIBLOG_ABI_PRIVATE char *log_time::strptime(const char *s, const char *format) { in strptime() 34 *this = log_time(CLOCK_REALTIME); in strptime() 128 *this = log_time(CLOCK_REALTIME); in strptime() 137 LIBLOG_ABI_PRIVATE log_time log_time::operator-= (const timespec &T) { in operator -=() 154 LIBLOG_ABI_PRIVATE log_time log_time::operator+= (const timespec &T) { in operator +=() 165 LIBLOG_ABI_PRIVATE log_time log_time::operator-= (const log_time &T) { in operator -=() 182 LIBLOG_ABI_PRIVATE log_time log_time::operator+= (const log_time &T) { in operator +=()
|
D | Android.mk | 33 liblog_target_sources += config_read.c log_time.cpp log_is_loggable.c logprint.c
|
D | logger.h | 103 log_time start;
|
D | Android.bp | 33 "log_time.cpp",
|
D | logger_read.c | 255 log_time start, in android_logger_list_alloc_time()
|
/system/core/logd/ |
D | LogKlog.h | 31 const log_time signature; 41 static log_time correction; 49 static void convertMonotonicToReal(log_time &real) { real += correction; } in convertMonotonicToReal() 50 static void convertRealToMonotonic(log_time &real) { real -= correction; } in convertRealToMonotonic() 53 void sniffTime(log_time &now, const char **buf, size_t len, bool reverse); 55 void calculateCorrection(const log_time &monotonic,
|
D | LogKlog.cpp | 213 log_time LogKlog::correction = 214 (log_time(CLOCK_REALTIME) < log_time(CLOCK_MONOTONIC)) 215 ? log_time::EPOCH 216 : (log_time(CLOCK_REALTIME) - log_time(CLOCK_MONOTONIC)); 277 void LogKlog::calculateCorrection(const log_time &monotonic, in calculateCorrection() 280 log_time real; in calculateCorrection() 282 if (!ep || (ep > &real_string[len]) || (real > log_time(CLOCK_REALTIME))) { in calculateCorrection() 294 real = log_time::EPOCH; in calculateCorrection() 299 correction = log_time::EPOCH; in calculateCorrection() 330 void LogKlog::sniffTime(log_time &now, in sniffTime() [all …]
|
D | LogReader.cpp | 66 log_time start(log_time::EPOCH); in onDataAvailable() 79 log_time(CLOCK_REALTIME).nsec(); in onDataAvailable() 121 if (start != log_time::EPOCH) { in onDataAvailable() 126 log_time &start; in onDataAvailable() 132 … LogFindStart(unsigned logMask, pid_t pid, log_time &start, uint64_t &sequence, bool isMonotonic) : in onDataAvailable()
|
D | LogBufferElement.h | 50 log_time mRealTime; 58 LogBufferElement(log_id_t log_id, log_time realtime, 78 log_time getRealTime(void) const { return mRealTime; } in getRealTime()
|
D | LogBuffer.h | 44 static bool isMonotonic(const log_time &mono) { in isMonotonic() 52 log_time now(CLOCK_REALTIME); in isMonotonic() 64 log_time cpu(CLOCK_MONOTONIC); in isMonotonic() 110 int log(log_id_t log_id, log_time realtime,
|
D | LogAudit.cpp | 120 log_time now; in logPrint() 139 now = log_time(CLOCK_MONOTONIC); in logPrint() 141 now = log_time(CLOCK_REALTIME); in logPrint()
|
D | LogListener.cpp | 47 char buffer[sizeof_log_id_t + sizeof(uint16_t) + sizeof(log_time) in onDataAvailable()
|
D | LogBufferElement.cpp | 37 LogBufferElement::LogBufferElement(log_id_t log_id, log_time realtime, in LogBufferElement()
|
D | LogBuffer.cpp | 202 int LogBuffer::log(log_id_t log_id, log_time realtime, in log()
|
/system/core/logcat/ |
D | logcat.cpp | 432 static char *parseTime(log_time &t, const char *cp) { in parseTime() 446 static log_time lastLogTime(char *outputFileName) { in lastLogTime() 447 log_time retval(log_time::EPOCH); in lastLogTime() 471 log_time now(clock_type); in lastLogTime() 475 log_time modulo(0, NS_PER_SEC); in lastLogTime() 501 log_time t(log_time::EPOCH); in lastLogTime() 527 if (retval == log_time::EPOCH) { in lastLogTime() 557 log_time tail_time(log_time::EPOCH); in main() 831 if ((tail_time == log_time::EPOCH) && (tail_lines == 0)) { in main() 1015 if (tail_time != log_time::EPOCH) { in main()
|
/system/core/liblog/tests/ |
D | liblog_benchmark.cpp | 524 log_time ts; in BM_log_latency() 526 ts = log_time(CLOCK_REALTIME), in BM_log_latency() 548 log_time tx(eventData + 4 + 1); in BM_log_latency() 604 log_time ts(CLOCK_REALTIME); in BM_log_delay() 628 log_time tx(eventData + 4 + 1); in BM_log_delay()
|
D | liblog_test.cpp | 136 log_time ts(CLOCK_MONOTONIC); in TEST() 140 log_time ts1(CLOCK_MONOTONIC); in TEST() 166 log_time tx(eventData + 4 + 1); in TEST() 194 log_time ts(android_log_clockid()); in TEST() 255 log_time ts(android_log_clockid()); in TEST() 372 log_time ts(CLOCK_MONOTONIC); in TEST() 414 log_time ts(CLOCK_MONOTONIC); in TEST() 431 log_time ts(CLOCK_MONOTONIC); in TEST() 460 log_time tx(eventData + 4 + 1); in TEST() 482 static log_time signal_time; [all …]
|
/system/core/include/private/ |
D | android_logger.h | 44 log_time realtime;
|
/system/core/logd/tests/ |
D | logd_test.cpp | 628 log_time now(android_log_clockid()); in TEST() 683 log_time msg(msg_timeout.entry.sec, msg_timeout.entry.nsec); in TEST() 688 msg = log_time(android_log_clockid()); in TEST()
|
/system/core/logcat/tests/ |
D | logcat_test.cpp | 309 log_time ts(CLOCK_MONOTONIC); in TEST() 331 log_time tx((const char *) &t); in TEST()
|