Home
last modified time | relevance | path

Searched refs:log_id_t (Results 1 – 22 of 22) sorted by relevance

/system/core/logd/
DLogBuffer.h57 int log(log_id_t log_id, log_time realtime,
65 void clear(log_id_t id, uid_t uid = AID_ROOT);
66 unsigned long getSize(log_id_t id);
67 int setSize(log_id_t id, unsigned long size);
68 unsigned long getSizeUsed(log_id_t id);
88 void maybePrune(log_id_t id);
89 void prune(log_id_t id, unsigned long pruneRows, uid_t uid = AID_ROOT);
DLogBufferElement.h45 static inline bool worstUidEnabledForLogid(log_id_t id) { in worstUidEnabledForLogid()
58 const log_id_t mLogId;
76 LogBufferElement(log_id_t log_id, log_time realtime,
81 log_id_t getLogId() const { return mLogId; } in getLogId()
DLogTimes.h73 void triggerSkip_Locked(log_id_t id, unsigned int skip) { skipAhead[id] = skip; } in triggerSkip_Locked()
106 bool isWatching(log_id_t id) { return (mLogMask & (1<<id)) != 0; } in isWatching()
DLogStatistics.h31 for (log_id_t i = LOG_ID_MIN; i < LOG_ID_MAX; i = (log_id_t) (i + 1))
329 size_t sizes(log_id_t id) const { return mSizes[id]; } in sizes()
330 size_t elements(log_id_t id) const { return mElements[id]; } in elements()
331 size_t sizesTotal(log_id_t id) const { return mSizesTotal[id]; } in sizesTotal()
332 size_t elementsTotal(log_id_t id) const { return mElementsTotal[id]; } in elementsTotal()
DCommandListener.cpp98 mBuf.clear((log_id_t) id, uid); in runCommand()
122 unsigned long size = mBuf.getSize((log_id_t) id); in runCommand()
154 if (mBuf.setSize((log_id_t) id, size)) { in runCommand()
182 unsigned long size = mBuf.getSizeUsed((log_id_t) id); in runCommand()
DLogBuffer.cpp137 int LogBuffer::log(log_id_t log_id, log_time realtime, in log()
223 void LogBuffer::maybePrune(log_id_t id) { in maybePrune()
244 log_id_t id = e->getLogId(); in erase()
377 void LogBuffer::prune(log_id_t id, unsigned long pruneRows, uid_t caller_uid) { in prune()
655 void LogBuffer::clear(log_id_t id, uid_t uid) { in clear()
662 unsigned long LogBuffer::getSizeUsed(log_id_t id) { in getSizeUsed()
670 int LogBuffer::setSize(log_id_t id, unsigned long size) { in setSize()
682 unsigned long LogBuffer::getSize(log_id_t id) { in getSize()
DLogTimes.cpp260 for (log_id_t i = LOG_ID_MIN; i < LOG_ID_MAX; i = (log_id_t) (i + 1)) { in cleanSkip_Locked()
DLogListener.cpp101 if (logbuf->log((log_id_t)header->id, header->realtime, in onDataAvailable()
DLogStatistics.cpp67 log_id_t log_id = e->getLogId(); in add()
95 log_id_t log_id = e->getLogId(); in subtract()
122 log_id_t log_id = e->getLogId(); in drop()
DLogBufferElement.cpp35 LogBufferElement::LogBufferElement(log_id_t log_id, log_time realtime, in LogBufferElement()
/system/core/include/log/
Dlogger.h123 log_id_t id() in id()
125 return (log_id_t) entry.lid; in id()
140 log_id_t android_logger_get_id(struct logger *logger);
177 log_id_t id);
180 struct logger_list *android_logger_list_open(log_id_t id,
189 log_id_t android_name_to_log_id(const char *logName);
190 const char *android_log_id_to_name(log_id_t log_id);
Dlog.h611 } log_id_t; typedef
/system/core/debuggerd/test/
Dlog_fake.cpp68 extern "C" log_id_t android_name_to_log_id(const char*) { in android_name_to_log_id()
72 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/liblog/
Dlogd_write_kern.c46 static int __write_to_log_init(log_id_t, struct iovec *vec, size_t nr);
47 static int (*write_to_log)(log_id_t, struct iovec *vec, size_t nr) = __write_to_log_init;
77 static int __write_to_log_null(log_id_t log_fd __unused, struct iovec *vec __unused, in __write_to_log_null()
83 static int __write_to_log_kernel(log_id_t log_id, struct iovec *vec, size_t nr) in __write_to_log_kernel()
107 static int __write_to_log_init(log_id_t log_id, struct iovec *vec, size_t nr) in __write_to_log_init()
Dlogd_write.c55 static int __write_to_log_init(log_id_t, struct iovec *vec, size_t nr);
56 static int (*write_to_log)(log_id_t, struct iovec *vec, size_t nr) = __write_to_log_init;
136 static int __write_to_log_daemon(log_id_t log_id, struct iovec *vec, size_t nr) in __write_to_log_daemon()
317 const char *android_log_id_to_name(log_id_t log_id) in android_log_id_to_name()
326 static int __write_to_log_init(log_id_t log_id, struct iovec *vec, size_t nr) in __write_to_log_init()
Dlog_read_kern.c69 const char *android_log_id_to_name(log_id_t log_id) in android_log_id_to_name()
105 log_id_t android_name_to_log_id(const char *logName) in android_name_to_log_id()
158 log_id_t id;
190 log_id_t android_logger_get_id(struct logger *logger) in android_logger_get_id()
320 log_id_t id) in android_logger_open()
370 struct logger_list *android_logger_list_open(log_id_t id, in android_logger_list_open()
DREADME63 log_id_t android_logger_get_id(struct logger *logger)
72 log_id_t id)
73 struct logger_list *android_logger_list_open(log_id_t id, int mode,
81 log_id_t android_name_to_log_id(const char *logName)
82 const char *android_log_id_to_name(log_id_t log_id)
Dlog_read.c214 const char *android_log_id_to_name(log_id_t log_id) in android_log_id_to_name()
222 log_id_t android_name_to_log_id(const char *logName) in android_name_to_log_id()
258 log_id_t id;
277 log_id_t android_logger_get_id(struct logger *logger) in android_logger_get_id()
576 log_id_t id) in android_logger_open()
607 struct logger_list *android_logger_list_open(log_id_t id, in android_logger_list_open()
/system/core/liblog/tests/
Dlibc_test.cpp27 typedef unsigned char log_id_t; // log_id_t missing as a result typedef
102 (log_id_t)LOG_ID_CRASH, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, 1000, pid))); in TEST()
Dliblog_test.cpp605 log_id_t id = static_cast<log_id_t>(i); in TEST()
/system/core/logcat/
Dlogcat.cpp611 const char *name = android_log_id_to_name((log_id_t)i); in main()
612 log_id_t log_id = android_name_to_log_id(name); in main()
614 if (log_id != (log_id_t)i) { in main()
/system/core/logcat/tests/
Dlogcat_test.cpp62 log_id_t id = android_name_to_log_id(buffer + sizeof(begin) - 1); in TEST()