• Home
  • Raw
  • Download

Lines Matching refs:logger_list

40 static struct logger_list* android_logger_list_alloc_internal(int mode, unsigned int tail,  in android_logger_list_alloc_internal()
42 auto* logger_list = static_cast<struct logger_list*>(calloc(1, sizeof(struct logger_list))); in android_logger_list_alloc_internal() local
43 if (!logger_list) { in android_logger_list_alloc_internal()
47 logger_list->mode = mode; in android_logger_list_alloc_internal()
48 logger_list->start = start; in android_logger_list_alloc_internal()
49 logger_list->tail = tail; in android_logger_list_alloc_internal()
50 logger_list->pid = pid; in android_logger_list_alloc_internal()
52 return logger_list; in android_logger_list_alloc_internal()
55 struct logger_list* android_logger_list_alloc(int mode, unsigned int tail, pid_t pid) { in android_logger_list_alloc()
59 struct logger_list* android_logger_list_alloc_time(int mode, log_time start, pid_t pid) { in android_logger_list_alloc_time()
64 struct logger* android_logger_open(struct logger_list* logger_list, log_id_t logId) { in android_logger_open() argument
65 if (!logger_list || (logId >= LOG_ID_MAX)) { in android_logger_open()
69 logger_list->log_mask |= 1 << logId; in android_logger_open()
72 logger |= (logger_list->mode & ANDROID_LOG_PSTORE) ? LOGGER_PMSG : LOGGER_LOGD; 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()
79 struct logger_list* logger_list = android_logger_list_alloc(mode, tail, pid); in android_logger_list_open() local
81 if (!logger_list) { in android_logger_list_open()
85 if (!android_logger_open(logger_list, logId)) { in android_logger_list_open()
86 android_logger_list_free(logger_list); in android_logger_list_open()
90 return logger_list; in android_logger_list_open()
93 int android_logger_list_read(struct logger_list* logger_list, struct log_msg* log_msg) { in android_logger_list_read() argument
94 if (logger_list == nullptr || logger_list->log_mask == 0) { in android_logger_list_read()
101 if (logger_list->mode & ANDROID_LOG_PSTORE) { in android_logger_list_read()
102 ret = PmsgRead(logger_list, log_msg); in android_logger_list_read()
104 ret = LogdRead(logger_list, log_msg); in android_logger_list_read()
135 void android_logger_list_free(struct logger_list* logger_list) { in android_logger_list_free() argument
136 if (logger_list == NULL) { in android_logger_list_free()
141 if (logger_list->mode & ANDROID_LOG_PSTORE) { in android_logger_list_free()
142 PmsgClose(logger_list); in android_logger_list_free()
144 LogdClose(logger_list); in android_logger_list_free()
148 free(logger_list); in android_logger_list_free()