/system/logging/liblog/include/log/ |
D | log_time.h | 35 struct log_time { struct 42 log_time() {} in log_time() function 43 explicit log_time(const timespec& T) in log_time() argument 45 explicit log_time(uint32_t sec, uint32_t nsec = 0) 49 explicit log_time(clockid_t id) { in log_time() argument 82 bool operator==(const log_time& T) const { 85 bool operator!=(const log_time& T) const { 88 bool operator<(const log_time& T) const { 92 bool operator>=(const log_time& T) const { 95 bool operator>(const log_time& T) const { [all …]
|
/system/logging/logd/ |
D | LogKlog.h | 27 const log_time signature; 37 static log_time correction; 43 static void convertMonotonicToReal(log_time& real) { real += correction; } in convertMonotonicToReal() 46 log_time sniffTime(const char*& buf, ssize_t len, bool reverse); 48 void calculateCorrection(const log_time& monotonic, const char* real_string, ssize_t len);
|
D | SerializedLogBufferTest.cpp | 44 log_buffer.Log(LOG_ID_MAIN, log_time(0, 1), kNonClearUid, 1, 1, kDontClearMessage.data(), in TEST() 52 log_buffer.Log(LOG_ID_MAIN, log_time(1, size_written), kClearUid, 1, 1, in TEST() 60 log_buffer.Log(LOG_ID_MAIN, log_time(0, 2), kNonClearUid, 1, 1, kDontClearMessage.data(), in TEST() 69 log_time realtime; 151 .realtime = log_time(0, 1), in TEST() 195 .realtime = log_time(0, 1), in TEST() 201 .realtime = log_time(0, 1), in TEST() 226 .realtime = log_time(0, 1), in TEST() 232 .realtime = log_time(0, 1), in TEST() 260 .realtime = log_time(0, 1), in TEST() [all …]
|
D | LogKlog.cpp | 200 log_time LogKlog::correction = (log_time(CLOCK_REALTIME) < log_time(CLOCK_MONOTONIC)) 201 ? log_time(log_time::EPOCH) 202 : (log_time(CLOCK_REALTIME) - log_time(CLOCK_MONOTONIC)); 264 void LogKlog::calculateCorrection(const log_time& monotonic, in calculateCorrection() 269 log_time real(log_time::EPOCH); in calculateCorrection() 271 if (!ep || (ep > &real_string[len]) || (real > log_time(CLOCK_REALTIME))) { in calculateCorrection() 283 real = log_time(log_time::EPOCH); in calculateCorrection() 288 correction = log_time(log_time::EPOCH); in calculateCorrection() 294 log_time LogKlog::sniffTime(const char*& buf, ssize_t len, bool reverse) { in sniffTime() 295 log_time now(log_time::EPOCH); in sniffTime() [all …]
|
D | SerializedLogChunkTest.cpp | 41 log_time time(CLOCK_REALTIME); in TEST() 67 EXPECT_NE(nullptr, chunk.Log(1, log_time(), 1000, 1, 1, log_message, sizeof(log_message))); in TEST() 70 EXPECT_NE(nullptr, chunk.Log(2, log_time(), 1000, 2, 1, log_message, sizeof(log_message))); in TEST() 73 EXPECT_NE(nullptr, chunk.Log(3, log_time(), 1000, 3, 1, log_message, sizeof(log_message))); in TEST() 82 chunk.Log(2, log_time(0x1234, 0x5678), 0x111, 0x222, 0x333, "initial message", in TEST() 84 chunk.Log(3, log_time(0x2345, 0x6789), 0x444, 0x555, 0x666, "second message", in TEST() 88 chunk.Log(uint64_t_max, log_time(uint32_t_max, uint32_t_max), uint32_t_max, uint32_t_max, in TEST()
|
D | LogReaderThread.cpp | 32 log_time start_time, uint64_t start, in LogReaderThread() 72 log_time realtime) REQUIRES(logd_lock) { in ThreadFunction() 78 [this](log_id_t log_id, pid_t pid, uint64_t sequence, log_time realtime) REQUIRES( in ThreadFunction() 117 FilterResult LogReaderThread::FilterFirstPass(log_id_t, pid_t pid, uint64_t, log_time realtime) { in FilterFirstPass() 118 if ((!pid_ || pid_ == pid) && (start_time_ == log_time::EPOCH || start_time_ <= realtime)) { in FilterFirstPass() 127 log_time realtime) { in FilterSecondPass() 142 if (start_time_ != log_time::EPOCH && realtime <= start_time_) { in FilterSecondPass()
|
D | LogReaderThread.h | 42 LogMask log_mask, pid_t pid, log_time start_time, uint64_t sequence, 71 FilterResult FilterFirstPass(log_id_t log_id, pid_t pid, uint64_t sequence, log_time realtime) 73 FilterResult FilterSecondPass(log_id_t log_id, pid_t pid, uint64_t sequence, log_time realtime) 106 log_time start_time_;
|
D | LogBufferElement.h | 37 LogBufferElement(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, 57 log_time realtime() const { return realtime_; } in realtime() 69 log_time realtime_;
|
D | RecordingLogBuffer.h | 34 int Log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, const char* msg, 38 void RecordLogMessage(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid,
|
D | SerializedLogEntry.h | 36 SerializedLogEntry(uid_t uid, pid_t pid, pid_t tid, uint64_t sequence, log_time realtime, in SerializedLogEntry() 86 log_time realtime() const { return realtime_; } in realtime() 97 const log_time realtime_;
|
D | LogReader.cpp | 109 log_time start(log_time::EPOCH); in onDataAvailable() 172 if (start != log_time::EPOCH) { in onDataAvailable() 177 log_time element_realtime) -> FilterResult { in onDataAvailable() 213 if (start == log_time::EPOCH) { in onDataAvailable()
|
D | ReplayMessages.cpp | 99 static log_time GetFirstTimeStamp(const MappedFile& recorded_messages) { in GetFirstTimeStamp() 162 PrintInteresting(log_time first_log_timestamp) in PrintInteresting() 243 SingleBufferOperation(log_time first_log_timestamp, const char* buffer) { in SingleBufferOperation() 286 PrintMemory(log_time first_log_timestamp, const char* buffer) in PrintMemory() 302 PrintLogs(log_time first_log_timestamp, const char* buffer, const char* buffers, in PrintLogs() 340 PrintLatency(log_time first_log_timestamp, const char* buffer) in PrintLatency() 373 PrintAllLogs(log_time first_log_timestamp, const char* buffer, const char* buffers) in PrintAllLogs() 439 log_time first_log_timestamp = GetFirstTimeStamp(*recorded_messages); in main()
|
D | LogBuffer.h | 64 virtual int Log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, 72 log_time realtime)>& filter) REQUIRES(logd_lock) = 0;
|
D | RecordingLogBuffer.cpp | 26 void RecordingLogBuffer::RecordLogMessage(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, in RecordLogMessage() 58 int RecordingLogBuffer::Log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, in Log()
|
D | RecordedLogMessage.h | 27 log_time realtime;
|
D | SerializedLogBuffer.h | 45 int Log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, const char* msg, 51 log_time realtime)>& filter)
|
D | SimpleLogBuffer.h | 36 int Log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, const char* msg, 42 log_time realtime)>& filter)
|
D | SerializedFlushToStateTest.cpp | 157 chunk.Log(sequence, log_time(), 0, 1, 1, message.c_str(), message.size() + 1); in AddChunkWithMessages() 298 chunk.Log(1, log_time(), 0, 1, 1, "abc", 3); in TEST() 299 chunk.Log(2, log_time(), 0, 1, 1, "abc", 3); in TEST() 300 chunk.Log(3, log_time(), 0, 1, 1, "abc", 3); in TEST()
|
/system/logging/liblog/tests/ |
D | log_time_test.cpp | 23 TEST(liblog, log_time) { in TEST() argument 26 log_time tl(ts); in TEST()
|
D | log_wrap_test.cpp | 46 log_time start(log_msg.entry.sec, log_msg.entry.nsec); in read_with_wrap() 47 ASSERT_NE(start, log_time()); in read_with_wrap()
|
/system/logging/liblog/include_vndk/log/ |
D | log_time.h | 40 typedef struct log_time { struct 43 } __attribute__((__packed__)) log_time; argument
|
/system/logging/liblog/ |
D | log_time.cpp | 25 char* log_time::strptime(const char* s, const char* format) { in strptime() 28 *this = log_time(CLOCK_REALTIME); in strptime() 122 *this = log_time(CLOCK_REALTIME); in strptime()
|
D | logger_read.cpp | 41 log_time start, pid_t pid) { in android_logger_list_alloc_internal() 56 return android_logger_list_alloc_internal(mode, tail, log_time(0, 0), pid); in android_logger_list_alloc() 59 struct logger_list* android_logger_list_alloc_time(int mode, log_time start, pid_t pid) { in android_logger_list_alloc_time()
|
D | logger.h | 32 log_time start;
|
/system/logging/logcat/ |
D | logcat.cpp | 444 static char* parseTime(log_time& t, const char* cp) { in parseTime() 453 static log_time lastLogTime(const char* outputFileName) { in lastLogTime() 454 log_time retval(log_time::EPOCH); in lastLogTime() 471 log_time now(CLOCK_REALTIME); in lastLogTime() 474 log_time modulo(0, NS_PER_SEC); in lastLogTime() 492 log_time t(log_time::EPOCH); in lastLogTime() 514 if (retval == log_time::EPOCH) return retval; in lastLogTime() 542 log_time tail_time(log_time::EPOCH); in Run() 764 if ((tail_time == log_time::EPOCH) && !tail_lines) { in Run() 947 if (tail_time != log_time::EPOCH) { in Run()
|