/system/core/liblog/ |
D | local_logger.c | 43 static int writeToLocalAvailable(log_id_t logId); 45 static int writeToLocalWrite(log_id_t logId, struct timespec* ts, 97 log_id_t logId; member 187 log_id_t logId = element->logId; in LogBufferLog() local 190 log->number[logId]++; in LogBufferLog() 191 log->size[logId] += element->len; in LogBufferLog() 192 log->totalSize[logId] += element->len; in LogBufferLog() 194 if (log->last[logId] == &log->head) { in LogBufferLog() 195 log->last[logId] = list_tail(&log->head); in LogBufferLog() 197 while (log->size[logId] > log->maxSize[logId]) { in LogBufferLog() [all …]
|
D | pmsg_writer.c | 39 static int pmsgAvailable(log_id_t logId); 40 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, 75 static int pmsgAvailable(log_id_t logId) { in pmsgAvailable() argument 76 if (logId > LOG_ID_SECURITY) { in pmsgAvailable() 79 if ((logId != LOG_ID_SECURITY) && (logId != LOG_ID_EVENTS) && in pmsgAvailable() 99 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, in pmsgWrite() argument 108 if ((logId == LOG_ID_EVENTS) && !__android_log_is_debuggable()) { in pmsgWrite() 147 header.id = logId; in pmsgWrite() 206 LIBLOG_ABI_PRIVATE ssize_t __android_log_pmsg_file_write(log_id_t logId, in __android_log_pmsg_file_write() argument 219 if ((logId == LOG_ID_KERNEL) || /* Verbotten */ in __android_log_pmsg_file_write() [all …]
|
D | stderr_write.c | 47 static int stderrAvailable(log_id_t logId); 48 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, 143 static int stderrAvailable(log_id_t logId) { in stderrAvailable() argument 144 if ((logId >= LOG_ID_MAX) || (logId == LOG_ID_KERNEL)) { in stderrAvailable() 150 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, in stderrWrite() argument 172 log_msg.entry.lid = logId; in stderrWrite() 185 if ((logId == LOG_ID_EVENTS) || (logId == LOG_ID_SECURITY)) { in stderrWrite()
|
D | logger_read.c | 53 return ((struct android_log_logger*)logger)->logId; in android_logger_get_id() 90 log_id_t logId = logger->logId; in init_transport_context() local 92 if ((logId == LOG_ID_SECURITY) && (__android_log_uid() != AID_SYSTEM)) { in init_transport_context() 96 (!transport->available || (transport->available(logId) >= 0))) { in init_transport_context() 97 logMask |= 1 << logId; in init_transport_context() 135 if ((transp->logMask & (1 << logger_internal->logId)) && \ 272 struct logger_list* logger_list, log_id_t logId) { in android_logger_open() argument 277 if (!logger_list_internal || (logId >= LOG_ID_MAX)) { in android_logger_open() 282 if (logger->logId == logId) { in android_logger_open() 292 logger->logId = logId; in android_logger_open() [all …]
|
D | logd_writer.c | 48 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, 114 static int logdAvailable(log_id_t logId) { in logdAvailable() argument 115 if (logId >= LOG_ID_MAX || logId == LOG_ID_KERNEL) { in logdAvailable() 127 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, in logdWrite() argument 224 header.id = logId; in logdWrite() 284 if (logId == LOG_ID_SECURITY) { in logdWrite()
|
D | logger.h | 46 int (*available)(log_id_t logId); /* Does not cause resources to be taken */ 50 int (*write)(log_id_t logId, struct timespec* ts, struct iovec* vec, 63 int (*available)(log_id_t logId); 114 log_id_t logId; member
|
D | logd_reader.c | 92 static int logdAvailable(log_id_t logId) { in logdAvailable() argument 93 if (logId >= LOG_ID_MAX) { in logdAvailable() 96 if (logId == LOG_ID_SECURITY) { in logdAvailable() 271 snprintf(buf, buf_size, msg, logger ? logger->logId : (unsigned)-1); in send_log_msg() 371 snprintf(buf, sizeof(buf), "setLogSize %d %zu", logger->logId, size); in logdSetSize() 423 n = snprintf(cp, remaining, " %d", logger->logId); in logdGetStats() 504 ret = snprintf(cp, remaining, "%c%u", c, logger->logId); in logdOpen()
|
D | pmsg_reader.c | 31 static int pmsgAvailable(log_id_t logId); 59 static int pmsgAvailable(log_id_t logId) { in pmsgAvailable() argument 60 if (logId > LOG_ID_SECURITY) { in pmsgAvailable() 273 __android_log_pmsg_file_read(log_id_t logId, char prio, const char* prefix, in __android_log_pmsg_file_read() argument 310 if (logId != LOG_ID_ANY) { in __android_log_pmsg_file_read() 311 transp.logMask = (1 << logId); in __android_log_pmsg_file_read()
|
D | properties.c | 600 LIBLOG_ABI_PRIVATE unsigned long __android_logger_get_buffer_size(log_id_t logId) { in __android_logger_get_buffer_size() argument 632 android_log_id_to_name(logId)); in __android_logger_get_buffer_size() 634 android_log_id_to_name(logId)); in __android_logger_get_buffer_size()
|
/system/core/include/private/ |
D | android_logger.h | 116 ssize_t __android_log_pmsg_file_write(log_id_t logId, char prio, 124 typedef ssize_t (*__android_log_pmsg_file_read_fn)(log_id_t logId, char prio, 129 ssize_t __android_log_pmsg_file_read(log_id_t logId, char prio, 150 unsigned long __android_logger_get_buffer_size(log_id_t logId);
|
/system/core/liblog/include/private/ |
D | android_logger.h | 116 ssize_t __android_log_pmsg_file_write(log_id_t logId, char prio, 124 typedef ssize_t (*__android_log_pmsg_file_read_fn)(log_id_t logId, char prio, 129 ssize_t __android_log_pmsg_file_read(log_id_t logId, char prio, 150 unsigned long __android_logger_get_buffer_size(log_id_t logId);
|
/system/core/liblog/tests/ |
D | liblog_test.cpp | 3099 static ssize_t __pmsg_fn(log_id_t logId, char prio, const char* filename, in __pmsg_fn() argument 3102 EXPECT_EQ(LOG_ID_CRASH, logId); in __pmsg_fn() 3112 return arg || (LOG_ID_CRASH != logId) || (ANDROID_LOG_VERBOSE != prio) || in __pmsg_fn()
|