/system/core/liblog/include/log/ |
D | log_time.h | 35 struct log_time { struct 42 log_time() {} in log_time() argument 43 explicit log_time(const timespec& T) in log_time() function 45 explicit log_time(uint32_t sec, uint32_t nsec = 0) 49 explicit log_time(clockid_t id) { in log_time() function 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/core/logd/ |
D | SerializedLogChunkTest.cpp | 38 log_time time(CLOCK_REALTIME); in TEST() 64 EXPECT_NE(nullptr, chunk.Log(1, log_time(), 1000, 1, 1, log_message, sizeof(log_message))); in TEST() 67 EXPECT_NE(nullptr, chunk.Log(2, log_time(), 1000, 2, 1, log_message, sizeof(log_message))); in TEST() 70 EXPECT_NE(nullptr, chunk.Log(3, log_time(), 1000, 3, 1, log_message, sizeof(log_message))); in TEST() 79 chunk.Log(2, log_time(0x1234, 0x5678), 0x111, 0x222, 0x333, "initial message", in TEST() 81 chunk.Log(3, log_time(0x2345, 0x6789), 0x444, 0x555, 0x666, "second message", in TEST() 85 chunk.Log(uint64_t_max, log_time(uint32_t_max, uint32_t_max), uint32_t_max, uint32_t_max, in TEST() 169 chunk.Log(1, log_time(), kOtherUid, 1, 2, msg, sizeof(msg)); in TEST_P() 184 chunk.Log(1, log_time(), kUidToClear, 1, 2, msg, sizeof(msg)); in TEST_P() 195 chunk.Log(2, log_time(), kUidToClear, 1, 2, msg, sizeof(msg)); in TEST_P() [all …]
|
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 | 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 | LogReaderThread.cpp | 31 log_time start_time, uint64_t start, in LogReaderThread() 72 [this](log_id_t log_id, pid_t pid, uint64_t sequence, log_time realtime) { in ThreadFunction() 78 [this](log_id_t log_id, pid_t pid, uint64_t sequence, log_time realtime) { in ThreadFunction() 120 FilterResult LogReaderThread::FilterFirstPass(log_id_t, pid_t pid, uint64_t, log_time realtime) { in FilterFirstPass() 123 if ((!pid_ || pid_ == pid) && (start_time_ == log_time::EPOCH || start_time_ <= realtime)) { in FilterFirstPass() 132 log_time realtime) { in FilterSecondPass() 149 if (start_time_ != log_time::EPOCH && realtime <= start_time_) { in FilterSecondPass()
|
D | LogReaderThread.h | 41 LogMask log_mask, pid_t pid, log_time start_time, uint64_t sequence, 68 FilterResult FilterFirstPass(log_id_t log_id, pid_t pid, uint64_t sequence, log_time realtime); 69 FilterResult FilterSecondPass(log_id_t log_id, pid_t pid, uint64_t sequence, log_time realtime); 101 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 | 108 log_time start(log_time::EPOCH); in onDataAvailable() 171 if (start != log_time::EPOCH) { in onDataAvailable() 176 log_time element_realtime) -> FilterResult { in onDataAvailable() 211 if (start == log_time::EPOCH) { in onDataAvailable()
|
D | LogBuffer.h | 61 virtual int Log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, 68 log_time realtime)>& filter) = 0;
|
D | ReplayMessages.cpp | 110 static log_time GetFirstTimeStamp(const MappedFile& recorded_messages) { in GetFirstTimeStamp() 151 PrintInteresting(log_time first_log_timestamp) in PrintInteresting() 232 SingleBufferOperation(log_time first_log_timestamp, const char* buffer) { in SingleBufferOperation() 275 PrintMemory(log_time first_log_timestamp, const char* buffer) in PrintMemory() 291 PrintLogs(log_time first_log_timestamp, const char* buffer, const char* buffers, in PrintLogs() 345 PrintLatency(log_time first_log_timestamp, const char* buffer) in PrintLatency() 406 log_time first_log_timestamp = GetFirstTimeStamp(*recorded_messages); in main()
|
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 | 42 int Log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, const char* msg, 47 log_time realtime)>& filter) override;
|
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, 41 log_time realtime)>& filter) override;
|
/system/core/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()
|
D | liblog_benchmark.cpp | 664 log_time ts; in BM_log_latency() 665 LOG_FAILURE_RETRY((ts = log_time(CLOCK_REALTIME), in BM_log_latency() 687 log_time* tx = reinterpret_cast<log_time*>(eventData + 4 + 1); in BM_log_latency() 737 log_time ts(CLOCK_REALTIME); in BM_log_delay() 760 log_time* tx = reinterpret_cast<log_time*>(eventData + 4 + 1); in BM_log_delay() 960 log_time now(CLOCK_MONOTONIC); in BM_lookupEventTagNum_logd_new()
|
/system/core/liblog/include_vndk/log/ |
D | log_time.h | 40 typedef struct log_time { struct 43 } __attribute__((__packed__)) log_time; argument
|
/system/core/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;
|
D | README.protocol.md | 25 log_time realtime; 28 struct log_time {
|
/system/core/logcat/ |
D | logcat.cpp | 440 static char* parseTime(log_time& t, const char* cp) { in parseTime() 449 static log_time lastLogTime(const char* outputFileName) { in lastLogTime() 450 log_time retval(log_time::EPOCH); in lastLogTime() 467 log_time now(CLOCK_REALTIME); in lastLogTime() 470 log_time modulo(0, NS_PER_SEC); in lastLogTime() 488 log_time t(log_time::EPOCH); in lastLogTime() 510 if (retval == log_time::EPOCH) return retval; in lastLogTime() 539 log_time tail_time(log_time::EPOCH); in Run() 761 if ((tail_time == log_time::EPOCH) && !tail_lines) { in Run() 1030 if (tail_time != log_time::EPOCH) { in Run()
|