• Home
  • Raw
  • Download

Lines Matching refs:logger_list

31 int PmsgRead(struct logger_list* logger_list, struct log_msg* log_msg) {  in PmsgRead()  argument
43 if (atomic_load(&logger_list->fd) <= 0) { in PmsgRead()
56 i = atomic_exchange(&logger_list->fd, fd); in PmsgRead()
67 fd = atomic_load(&logger_list->fd); in PmsgRead()
93 if ((logger_list->log_mask & (1 << buf.l.id)) && in PmsgRead()
94 ((!logger_list->start.tv_sec && !logger_list->start.tv_nsec) || in PmsgRead()
95 ((logger_list->start.tv_sec <= buf.l.realtime.tv_sec) && in PmsgRead()
96 ((logger_list->start.tv_sec != buf.l.realtime.tv_sec) || in PmsgRead()
97 (logger_list->start.tv_nsec <= buf.l.realtime.tv_nsec)))) && in PmsgRead()
98 (!logger_list->pid || (logger_list->pid == buf.p.pid))) { in PmsgRead()
101 fd = atomic_load(&logger_list->fd); in PmsgRead()
125 fd = atomic_load(&logger_list->fd); in PmsgRead()
133 fd = atomic_load(&logger_list->fd); in PmsgRead()
147 void PmsgClose(struct logger_list* logger_list) { in PmsgClose() argument
148 int fd = atomic_exchange(&logger_list->fd, 0); in PmsgClose()
165 struct logger_list logger_list; in __android_log_pmsg_file_read() local
186 memset(&logger_list, 0, sizeof(logger_list)); in __android_log_pmsg_file_read()
188 logger_list.mode = ANDROID_LOG_PSTORE | ANDROID_LOG_NONBLOCK; in __android_log_pmsg_file_read()
189 logger_list.log_mask = (unsigned)-1; in __android_log_pmsg_file_read()
191 logger_list.log_mask = (1 << logId); in __android_log_pmsg_file_read()
193 logger_list.log_mask &= ~((1 << LOG_ID_KERNEL) | (1 << LOG_ID_EVENTS) | (1 << LOG_ID_SECURITY)); in __android_log_pmsg_file_read()
194 if (!logger_list.log_mask) { in __android_log_pmsg_file_read()
220 while (PmsgRead(&logger_list, &log_msg) > 0) { in __android_log_pmsg_file_read()
378 PmsgClose(&logger_list); in __android_log_pmsg_file_read()