Home
last modified time | relevance | path

Searched refs:logId (Results 1 – 12 of 12) sorted by relevance

/system/core/liblog/
Dpmsg_writer.cpp40 static int pmsgAvailable(log_id_t logId);
41 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
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) && !__android_log_is_debuggable()) { in pmsgAvailable()
98 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in pmsgWrite() argument
106 if ((logId == LOG_ID_EVENTS) && !__android_log_is_debuggable()) { in pmsgWrite()
145 header.id = logId; in pmsgWrite()
203 ssize_t __android_log_pmsg_file_write(log_id_t logId, char prio, const char* filename, in __android_log_pmsg_file_write() argument
213 if ((logId == LOG_ID_KERNEL) || /* Verbotten */ in __android_log_pmsg_file_write()
[all …]
Dstderr_write.cpp47 static int stderrAvailable(log_id_t logId);
48 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
142 static int stderrAvailable(log_id_t logId) { in stderrAvailable() argument
143 if ((logId >= LOG_ID_MAX) || (logId == LOG_ID_KERNEL)) { in stderrAvailable()
149 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in stderrWrite() argument
170 log_msg.entry.lid = logId; in stderrWrite()
183 if ((logId == LOG_ID_EVENTS) || (logId == LOG_ID_SECURITY)) { in stderrWrite()
Dlogger_read.cpp54 return ((struct android_log_logger*)logger)->logId; in android_logger_get_id()
89 log_id_t logId = logger->logId; in init_transport_context() local
91 if ((logId == LOG_ID_SECURITY) && (__android_log_uid() != AID_SYSTEM)) { in init_transport_context()
94 if (transport->read && (!transport->available || (transport->available(logId) >= 0))) { in init_transport_context()
95 logMask |= 1 << logId; in init_transport_context()
132 if ((transp->logMask & (1 << logger_internal->logId)) && transp->transport && \
244 struct logger* android_logger_open(struct logger_list* logger_list, log_id_t logId) { in android_logger_open() argument
249 if (!logger_list_internal || (logId >= LOG_ID_MAX)) { in android_logger_open()
254 if (logger->logId == logId) { in android_logger_open()
264 logger->logId = logId; in android_logger_open()
[all …]
Dlogd_writer.cpp49 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
113 static int logdAvailable(log_id_t logId) { in logdAvailable() argument
114 if (logId >= LOG_ID_MAX || logId == LOG_ID_KERNEL) { in logdAvailable()
126 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in logdWrite() argument
219 header.id = logId; in logdWrite()
278 if (logId == LOG_ID_SECURITY) { in logdWrite()
Dlogger.h45 int (*available)(log_id_t logId); /* Does not cause resources to be taken */
49 int (*write)(log_id_t logId, struct timespec* ts, struct iovec* vec,
62 int (*available)(log_id_t logId);
112 log_id_t logId; member
Dlogd_reader.cpp87 static int logdAvailable(log_id_t logId) { in logdAvailable() argument
88 if (logId >= LOG_ID_MAX) { in logdAvailable()
91 if (logId == LOG_ID_SECURITY) { in logdAvailable()
140 snprintf(buf, buf_size, msg, logger ? logger->logId : (unsigned)-1); in send_log_msg()
238 snprintf(buf, sizeof(buf), "setLogSize %d %zu", logger->logId, size); in logdSetSize()
289 n = snprintf(cp, remaining, " %d", logger->logId); in logdGetStats()
366 ret = snprintf(cp, remaining, "%c%u", c, logger->logId); in logdOpen()
Dpmsg_reader.cpp31 static int pmsgAvailable(log_id_t logId);
58 static int pmsgAvailable(log_id_t logId) { in pmsgAvailable() argument
59 if (logId > LOG_ID_SECURITY) { in pmsgAvailable()
273 ssize_t __android_log_pmsg_file_read(log_id_t logId, char prio, const char* prefix, in __android_log_pmsg_file_read() argument
309 if (logId != LOG_ID_ANY) { in __android_log_pmsg_file_read()
310 transp.logMask = (1 << logId); in __android_log_pmsg_file_read()
Dproperties.cpp585 unsigned long __android_logger_get_buffer_size(log_id_t logId) { in __android_logger_get_buffer_size() argument
616 android_log_id_to_name(logId)); in __android_logger_get_buffer_size()
617 snprintf(key_ro, sizeof(key_ro), "%s.%s", global_default, android_log_id_to_name(logId)); in __android_logger_get_buffer_size()
/system/core/logd/
DLogListener.cpp97 log_id_t logId = static_cast<log_id_t>(header->id); in onDataAvailable() local
98 if (/* logId < LOG_ID_MIN || */ logId >= LOG_ID_MAX || in onDataAvailable()
99 logId == LOG_ID_KERNEL) { in onDataAvailable()
103 if ((logId == LOG_ID_SECURITY) && in onDataAvailable()
138 logId, header->realtime, cred->uid, cred->pid, header->tid, msg, in onDataAvailable()
141 reader->notifyNewLog(static_cast<log_mask_t>(1 << logId)); in onDataAvailable()
/system/core/liblog/include/private/
Dandroid_logger.h113 ssize_t __android_log_pmsg_file_write(log_id_t logId, char prio,
121 typedef ssize_t (*__android_log_pmsg_file_read_fn)(log_id_t logId, char prio,
126 ssize_t __android_log_pmsg_file_read(log_id_t logId, char prio,
147 unsigned long __android_logger_get_buffer_size(log_id_t logId);
/system/core/include/private/
Dandroid_logger.h113 ssize_t __android_log_pmsg_file_write(log_id_t logId, char prio,
121 typedef ssize_t (*__android_log_pmsg_file_read_fn)(log_id_t logId, char prio,
126 ssize_t __android_log_pmsg_file_read(log_id_t logId, char prio,
147 unsigned long __android_logger_get_buffer_size(log_id_t logId);
/system/core/liblog/tests/
Dliblog_test.cpp3095 static ssize_t __pmsg_fn(log_id_t logId, char prio, const char* filename, in __pmsg_fn() argument
3098 EXPECT_EQ(LOG_ID_CRASH, logId); in __pmsg_fn()
3108 return arg || (LOG_ID_CRASH != logId) || (ANDROID_LOG_VERBOSE != prio) || in __pmsg_fn()