/system/core/logd/ |
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, 46 const std::function<FilterResult(log_id_t log_id, pid_t pid, uint64_t sequence, 49 bool Clear(log_id_t id, uid_t uid) override; 50 unsigned long GetSize(log_id_t id) override; 51 int SetSize(log_id_t id, unsigned long size) override; 56 bool ShouldLog(log_id_t log_id, const char* msg, uint16_t len); 57 void MaybePrune(log_id_t log_id) REQUIRES(lock_); 58 bool Prune(log_id_t log_id, size_t bytes_to_free, uid_t uid) REQUIRES(lock_); 59 void KickReader(LogReaderThread* reader, log_id_t id, size_t bytes_to_free) 61 void NotifyReadersOfPrune(log_id_t log_id, const std::list<SerializedLogChunk>::iterator& chunk) [all …]
|
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, 40 const std::function<FilterResult(log_id_t log_id, pid_t pid, uint64_t sequence, 43 bool Clear(log_id_t id, uid_t uid) override; 44 unsigned long GetSize(log_id_t id) override; 45 int SetSize(log_id_t id, unsigned long size) override final; 50 virtual bool Prune(log_id_t id, unsigned long prune_rows, uid_t uid) REQUIRES(lock_); 55 std::list<LogBufferElement>::iterator GetOldest(log_id_t log_id) REQUIRES(lock_); 58 void KickReader(LogReaderThread* reader, log_id_t id, unsigned long prune_rows) 63 unsigned long max_size(log_id_t id) REQUIRES_SHARED(lock_) { return max_size_[id]; } in max_size() 69 bool ShouldLog(log_id_t log_id, const char* msg, uint16_t len); [all …]
|
D | SerializedFlushToState.h | 33 MinHeapElement(log_id_t log_id, const SerializedLogEntry* entry) in MinHeapElement() 35 log_id_t log_id; 75 void Prune(log_id_t log_id, const std::list<SerializedLogChunk>::iterator& buffer_it); 81 void AddMinHeapEntry(log_id_t log_id); 85 void CreateLogPosition(log_id_t log_id);
|
D | LogBuffer.h | 61 virtual int Log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, 67 const std::function<FilterResult(log_id_t log_id, pid_t pid, uint64_t sequence, 70 virtual bool Clear(log_id_t id, uid_t uid) = 0; 71 virtual unsigned long GetSize(log_id_t id) = 0; 72 virtual int SetSize(log_id_t id, unsigned long size) = 0;
|
D | SerializedLogBuffer.cpp | 49 bool SerializedLogBuffer::ShouldLog(log_id_t log_id, const char* msg, uint16_t len) { in ShouldLog() 71 int SerializedLogBuffer::Log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, in Log() 105 void SerializedLogBuffer::MaybePrune(log_id_t log_id) { in MaybePrune() 118 void SerializedLogBuffer::RemoveChunkFromStats(log_id_t log_id, SerializedLogChunk& chunk) { in RemoveChunkFromStats() 130 log_id_t log_id, const std::list<SerializedLogChunk>::iterator& chunk) { in NotifyReadersOfPrune() 137 bool SerializedLogBuffer::Prune(log_id_t log_id, size_t bytes_to_free, uid_t uid) { in Prune() 198 void SerializedLogBuffer::KickReader(LogReaderThread* reader, log_id_t id, size_t bytes_to_free) { in KickReader() 223 const std::function<FilterResult(log_id_t log_id, pid_t pid, uint64_t sequence, in FlushTo() 267 bool SerializedLogBuffer::Clear(log_id_t id, uid_t uid) { in Clear() 302 unsigned long SerializedLogBuffer::GetSizeUsed(log_id_t id) { in GetSizeUsed() [all …]
|
D | SimpleLogBuffer.cpp | 44 std::list<LogBufferElement>::iterator SimpleLogBuffer::GetOldest(log_id_t log_id) { in GetOldest() 58 bool SimpleLogBuffer::ShouldLog(log_id_t log_id, const char* msg, uint16_t len) { in ShouldLog() 80 int SimpleLogBuffer::Log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, in Log() 104 log_id_t log_id = elem.log_id(); in LogInternal() 136 const std::function<FilterResult(log_id_t log_id, pid_t pid, uint64_t sequence, in FlushTo() 215 bool SimpleLogBuffer::Clear(log_id_t id, uid_t uid) { in Clear() 250 unsigned long SimpleLogBuffer::GetSize(log_id_t id) { in GetSize() 257 int SimpleLogBuffer::SetSize(log_id_t id, unsigned long size) { in SetSize() 268 void SimpleLogBuffer::MaybePrune(log_id_t id) { in MaybePrune() 275 bool SimpleLogBuffer::Prune(log_id_t id, unsigned long prune_rows, uid_t caller_uid) { in Prune() [all …]
|
D | LogReaderThread.h | 45 void triggerSkip_Locked(log_id_t id, unsigned int skip) { skip_ahead_[id] = skip; } in triggerSkip_Locked() 55 bool IsWatching(log_id_t id) const { return flush_to_state_->log_mask() & (1 << id); } in IsWatching() 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);
|
D | LogBufferElement.h | 37 LogBufferElement(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, 50 log_id_t log_id() const { return static_cast<log_id_t>(log_id_); } in log_id()
|
D | LogStatistics.h | 44 for (log_id_t i = LOG_ID_MIN; (i) < LOG_ID_MAX; (i) = (log_id_t)((i) + 1)) 59 log_id_t log_id; 267 std::string formatHeader(const std::string& name, log_id_t id) const; 268 std::string format(const LogStatistics& stat, log_id_t id, uid_t uid) const; 317 std::string formatHeader(const std::string& name, log_id_t id) const; 318 std::string format(const LogStatistics& stat, log_id_t id, pid_t pid) const; 372 std::string formatHeader(const std::string& name, log_id_t id) const; 373 std::string format(const LogStatistics& stat, log_id_t id, pid_t pid) const; 401 std::string formatHeader(const std::string& name, log_id_t id) const; 402 std::string format(const LogStatistics& stat, log_id_t id, uint32_t) const; [all …]
|
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 | LogReaderThread.cpp | 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() argument 131 FilterResult LogReaderThread::FilterSecondPass(log_id_t log_id, pid_t pid, uint64_t, in FilterSecondPass()
|
D | LogUtils.h | 63 static inline bool IsBinary(log_id_t log_id) { in IsBinary() 76 static inline bool worstUidEnabledForLogid(log_id_t id) { in worstUidEnabledForLogid()
|
D | SerializedFlushToState.cpp | 39 void SerializedFlushToState::CreateLogPosition(log_id_t log_id) { in CreateLogPosition() 66 void SerializedFlushToState::AddMinHeapEntry(log_id_t log_id) { in AddMinHeapEntry() 129 void SerializedFlushToState::Prune(log_id_t log_id, in Prune()
|
/system/core/liblog/ |
D | logger_name.cpp | 36 const char* android_log_id_to_name(log_id_t log_id) { in android_log_id_to_name() 43 static_assert(std::is_same<std::underlying_type<log_id_t>::type, uint32_t>::value, 49 log_id_t android_name_to_log_id(const char* logName) { in android_name_to_log_id() 54 return static_cast<log_id_t>(LOG_ID_MAX); in android_name_to_log_id() 67 return static_cast<log_id_t>(ret); in android_name_to_log_id() 71 return static_cast<log_id_t>(LOG_ID_MAX); in android_name_to_log_id()
|
D | logger_read.cpp | 36 log_id_t android_logger_get_id(struct logger* logger) { in android_logger_get_id() 37 return static_cast<log_id_t>(reinterpret_cast<uintptr_t>(logger) & LOGGER_LOG_ID_MASK); in android_logger_get_id() 64 struct logger* android_logger_open(struct logger_list* logger_list, log_id_t logId) { in android_logger_open() 77 struct logger_list* android_logger_list_open(log_id_t logId, int mode, unsigned int tail, in android_logger_list_open()
|
/system/core/liblog/include/log/ |
D | log_read.h | 66 log_id_t id() { in id() 67 return static_cast<log_id_t>(entry.lid); in id() 82 log_id_t android_logger_get_id(struct logger* logger); 114 struct logger* android_logger_open(struct logger_list* logger_list, log_id_t id); 116 struct logger_list* android_logger_list_open(log_id_t id, int mode,
|
D | log_id.h | 28 log_id_t android_name_to_log_id(const char* logName); 29 const char* android_log_id_to_name(log_id_t log_id);
|
/system/core/liblog/include_vndk/log/ |
D | log_read.h | 66 log_id_t id() { in id() 67 return static_cast<log_id_t>(entry.lid); in id() 82 log_id_t android_logger_get_id(struct logger* logger); 114 struct logger* android_logger_open(struct logger_list* logger_list, log_id_t id); 116 struct logger_list* android_logger_list_open(log_id_t id, int mode,
|
D | log_id.h | 28 log_id_t android_name_to_log_id(const char* logName); 29 const char* android_log_id_to_name(log_id_t log_id);
|
/system/core/liblog/include/private/ |
D | android_logger.h | 125 ssize_t __android_log_pmsg_file_write(log_id_t logId, char prio, 129 #define LOG_ID_ANY ((log_id_t)-1) 133 typedef ssize_t (*__android_log_pmsg_file_read_fn)(log_id_t logId, char prio, 138 ssize_t __android_log_pmsg_file_read(log_id_t logId, char prio, 151 unsigned long __android_logger_get_buffer_size(log_id_t logId);
|
/system/core/include/private/ |
D | android_logger.h | 125 ssize_t __android_log_pmsg_file_write(log_id_t logId, char prio, 129 #define LOG_ID_ANY ((log_id_t)-1) 133 typedef ssize_t (*__android_log_pmsg_file_read_fn)(log_id_t logId, char prio, 138 ssize_t __android_log_pmsg_file_read(log_id_t logId, char prio, 151 unsigned long __android_logger_get_buffer_size(log_id_t logId);
|
/system/core/logd/fuzz/ |
D | log_buffer_log_fuzzer.cpp | 34 unsigned long __android_logger_get_buffer_size(log_id_t) { in __android_logger_get_buffer_size() argument 49 log_id_t log_id; 90 log_id_t log_id = static_cast<log_id_t>(unsigned(logInput->log_id) % (LOG_ID_MAX + 1)); in write_log_messages()
|
/system/core/liblog/tests/ |
D | log_read_test.cpp | 43 log_id_t id = static_cast<log_id_t>(i); in TEST()
|
/system/core/debuggerd/libdebuggerd/test/ |
D | log_fake.cpp | 72 extern "C" log_id_t android_name_to_log_id(const char*) { in android_name_to_log_id() 76 extern "C" struct logger_list* android_logger_list_open(log_id_t, int, unsigned int, pid_t) { in android_logger_list_open() argument
|
/system/core/libunwindstack/tests/ |
D | LogFake.cpp | 81 extern "C" log_id_t android_name_to_log_id(const char*) { in android_name_to_log_id() 85 extern "C" struct logger_list* android_logger_list_open(log_id_t, int, unsigned int, pid_t) { in android_logger_list_open() argument
|