• Home
  • Raw
  • Download

Lines Matching refs:logger_list

232 ssize_t android_logger_get_statistics(struct logger_list* logger_list, char* buf, size_t len) {  in android_logger_get_statistics()  argument
233 if (logger_list->mode & ANDROID_LOG_PSTORE) { in android_logger_get_statistics()
247 if ((1 << log_id) & logger_list->log_mask) { in android_logger_get_statistics()
255 if (logger_list->pid) { in android_logger_get_statistics()
256 snprintf(cp, remaining, " pid=%u", logger_list->pid); in android_logger_get_statistics()
261 ssize_t android_logger_get_prune_list(struct logger_list* logger_list, char* buf, size_t len) { in android_logger_get_prune_list() argument
262 if (logger_list->mode & ANDROID_LOG_PSTORE) { in android_logger_get_prune_list()
270 int android_logger_set_prune_list(struct logger_list* logger_list, const char* buf, size_t len) { in android_logger_set_prune_list() argument
271 if (logger_list->mode & ANDROID_LOG_PSTORE) { in android_logger_set_prune_list()
280 static int logdOpen(struct logger_list* logger_list) { in logdOpen() argument
284 sock = atomic_load(&logger_list->fd); in logdOpen()
297 strcpy(buffer, (logger_list->mode & ANDROID_LOG_NONBLOCK) ? "dumpAndClose" : "stream"); in logdOpen()
306 if ((1 << log_id) & logger_list->log_mask) { in logdOpen()
315 if (logger_list->tail) { in logdOpen()
316 ret = snprintf(cp, remaining, " tail=%u", logger_list->tail); in logdOpen()
322 if (logger_list->start.tv_sec || logger_list->start.tv_nsec) { in logdOpen()
323 if (logger_list->mode & ANDROID_LOG_WRAP) { in logdOpen()
330 ret = snprintf(cp, remaining, " start=%" PRIu32 ".%09" PRIu32, logger_list->start.tv_sec, in logdOpen()
331 logger_list->start.tv_nsec); in logdOpen()
337 if (logger_list->pid) { in logdOpen()
338 ret = snprintf(cp, remaining, " pid=%u", logger_list->pid); in logdOpen()
357 ret = atomic_exchange(&logger_list->fd, sock); in logdOpen()
365 int LogdRead(struct logger_list* logger_list, struct log_msg* log_msg) { in LogdRead() argument
366 int ret = logdOpen(logger_list); in LogdRead()
373 if ((logger_list->mode & ANDROID_LOG_NONBLOCK) && ret == 0) { in LogdRead()
384 void LogdClose(struct logger_list* logger_list) { in LogdClose() argument
385 int sock = atomic_exchange(&logger_list->fd, -1); in LogdClose()