Home
last modified time | relevance | path

Searched refs:logger_list (Results 1 – 18 of 18) sorted by relevance

/system/core/liblog/
Dlogger_read.c56 static int init_transport_context(struct android_log_logger_list* logger_list) { in init_transport_context() argument
60 if (!logger_list) { in init_transport_context()
64 if (list_empty(&logger_list->logger)) { in init_transport_context()
68 if (!list_empty(&logger_list->transport)) { in init_transport_context()
80 node = (logger_list->mode & ANDROID_LOG_PSTORE) in init_transport_context()
89 logger_for_each(logger, logger_list) { in init_transport_context()
107 transp->parent = logger_list; in init_transport_context()
111 list_add_tail(&logger_list->transport, &transp->node); in init_transport_context()
113 if (list_empty(&logger_list->transport)) { in init_transport_context()
176 #define LOGGER_LIST_FUNCTION(logger_list, def, func, args...) \ argument
[all …]
Dlogger.h67 void (*close)(struct android_log_logger_list* logger_list,
73 int (*read)(struct android_log_logger_list* logger_list,
77 int (*poll)(struct android_log_logger_list* logger_list,
89 ssize_t (*getPrune)(struct android_log_logger_list* logger_list,
92 ssize_t (*setPrune)(struct android_log_logger_list* logger_list,
95 ssize_t (*getStats)(struct android_log_logger_list* logger_list,
129 #define transport_context_for_each(transp, logger_list) \ argument
130 for ((transp) = node_to_item((logger_list)->transport.next, \
132 ((transp) != node_to_item(&(logger_list)->transport, \
134 ((transp)->parent == (logger_list)); \
[all …]
Dlogd_reader.c49 static int logdRead(struct android_log_logger_list* logger_list,
52 static int logdPoll(struct android_log_logger_list* logger_list,
54 static void logdClose(struct android_log_logger_list* logger_list,
409 static ssize_t logdGetStats(struct android_log_logger_list* logger_list, in logdGetStats() argument
422 logger_for_each(logger, logger_list) { in logdGetStats()
429 if (logger_list->pid) { in logdGetStats()
430 snprintf(cp, remaining, " pid=%u", logger_list->pid); in logdGetStats()
436 static ssize_t logdGetPrune(struct android_log_logger_list* logger_list __unused, in logdGetPrune()
442 static ssize_t logdSetPrune(struct android_log_logger_list* logger_list __unused, in logdSetPrune()
461 static int logdOpen(struct android_log_logger_list* logger_list, in logdOpen() argument
[all …]
Dlocal_logger.c60 static int writeToLocalRead(struct android_log_logger_list* logger_list,
63 static int writeToLocalPoll(struct android_log_logger_list* logger_list,
65 static void writeToLocalClose(struct android_log_logger_list* logger_list,
200 struct android_log_logger_list* logger_list; in LogBufferLog() local
206 logger_list_for_each(logger_list) { in LogBufferLog()
209 transport_context_for_each(transp, logger_list) { in LogBufferLog()
347 struct android_log_logger_list* logger_list, in writeToLocalNode() argument
358 if (!logger_list->tail) { in writeToLocalNode()
363 tail = logger_list->tail; in writeToLocalNode()
380 static int writeToLocalRead(struct android_log_logger_list* logger_list, in writeToLocalRead() argument
[all …]
Dpmsg_reader.c34 static int pmsgRead(struct android_log_logger_list* logger_list,
37 static void pmsgClose(struct android_log_logger_list* logger_list,
132 static int pmsgRead(struct android_log_logger_list* logger_list, in pmsgRead() argument
202 ((!logger_list->start.tv_sec && !logger_list->start.tv_nsec) || in pmsgRead()
203 ((logger_list->start.tv_sec <= buf.l.realtime.tv_sec) && in pmsgRead()
204 ((logger_list->start.tv_sec != buf.l.realtime.tv_sec) || in pmsgRead()
205 (logger_list->start.tv_nsec <= buf.l.realtime.tv_nsec)))) && in pmsgRead()
206 (!logger_list->pid || (logger_list->pid == buf.p.pid))) { in pmsgRead()
264 static void pmsgClose(struct android_log_logger_list* logger_list __unused, in pmsgClose()
276 struct android_log_logger_list logger_list; in __android_log_pmsg_file_read() local
[all …]
DREADME73 struct logger_list *android_logger_list_alloc(int mode,
76 struct logger *android_logger_open(struct logger_list *logger_list,
78 struct logger_list *android_logger_list_open(log_id_t id, int mode,
81 int android_logger_list_read(struct logger_list *logger_list,
83 void android_logger_list_free(struct logger_list *logger_list)
/system/core/liblog/tests/
Dlog_wrap_test.cpp39 struct logger_list* logger_list = in read_with_wrap() local
42 ASSERT_NE(logger_list, nullptr); in read_with_wrap()
45 int ret = android_logger_list_read(logger_list, &log_msg); in read_with_wrap()
46 android_logger_list_close(logger_list); in read_with_wrap()
52 logger_list = in read_with_wrap()
54 ASSERT_NE(logger_list, nullptr); in read_with_wrap()
56 struct logger* logger = android_logger_open(logger_list, LOG_ID_MAIN); in read_with_wrap()
59 android_logger_list_read(logger_list, &log_msg); in read_with_wrap()
62 android_logger_list_close(logger_list); in read_with_wrap()
Dlog_read_test.cpp36 struct logger_list* logger_list; in TEST() local
39 (logger_list = android_logger_list_open( in TEST()
59 if (android_logger_list_read(logger_list, &log_msg) <= 0) break; in TEST()
72 android_logger_list_close(logger_list); in TEST()
85 struct logger_list* logger_list = in TEST() local
96 EXPECT_TRUE(NULL != (logger = android_logger_open(logger_list, id))); in TEST()
126 android_logger_list_close(logger_list); in TEST()
Dliblog_test.cpp181 struct logger_list* logger_list; in TEST() local
186 (logger_list = android_logger_list_open( in TEST()
236 if (android_logger_list_read(logger_list, &log_msg) <= 0) { in TEST()
265 android_logger_list_close(logger_list); in TEST()
340 struct logger_list* logger_list; in TEST() local
342 (logger_list = android_logger_list_open( in TEST()
355 if (android_logger_list_read(logger_list, &log_msg) <= 0) { in TEST()
379 android_logger_list_close(logger_list); in TEST()
414 struct logger_list* logger_list; in bswrite_test() local
419 (logger_list = android_logger_list_open( in bswrite_test()
[all …]
Dliblog_benchmark.cpp683 struct logger_list* logger_list = in BM_log_latency() local
686 if (!logger_list) { in BM_log_latency()
702 int ret = android_logger_list_read(logger_list, &log_msg); in BM_log_latency()
739 android_logger_list_free(logger_list); in BM_log_latency()
758 struct logger_list* logger_list = in BM_log_delay() local
761 if (!logger_list) { in BM_log_delay()
776 int ret = android_logger_list_read(logger_list, &log_msg); in BM_log_delay()
810 android_logger_list_free(logger_list); in BM_log_delay()
/system/core/liblog/include_vndk/log/
Dlog_read.h226 struct logger_list;
229 ssize_t android_logger_get_statistics(struct logger_list* logger_list,
231 ssize_t android_logger_get_prune_list(struct logger_list* logger_list,
233 int android_logger_set_prune_list(struct logger_list* logger_list, char* buf,
254 struct logger_list* android_logger_list_alloc(int mode, unsigned int tail,
256 struct logger_list* android_logger_list_alloc_time(int mode, log_time start,
258 void android_logger_list_free(struct logger_list* logger_list);
260 int android_logger_list_read(struct logger_list* logger_list,
264 struct logger* android_logger_open(struct logger_list* logger_list, log_id_t id);
267 struct logger_list* android_logger_list_open(log_id_t id, int mode,
/system/core/liblog/include/log/
Dlog_read.h226 struct logger_list;
229 ssize_t android_logger_get_statistics(struct logger_list* logger_list,
231 ssize_t android_logger_get_prune_list(struct logger_list* logger_list,
233 int android_logger_set_prune_list(struct logger_list* logger_list, char* buf,
254 struct logger_list* android_logger_list_alloc(int mode, unsigned int tail,
256 struct logger_list* android_logger_list_alloc_time(int mode, log_time start,
258 void android_logger_list_free(struct logger_list* logger_list);
260 int android_logger_list_read(struct logger_list* logger_list,
264 struct logger* android_logger_open(struct logger_list* logger_list, log_id_t id);
267 struct logger_list* android_logger_list_open(log_id_t id, int mode,
/system/core/debuggerd/libdebuggerd/test/
Dlog_fake.cpp76 extern "C" struct logger_list* android_logger_list_open(log_id_t, int, unsigned int, pid_t) { in android_logger_list_open()
81 extern "C" int android_logger_list_read(struct logger_list*, struct log_msg*) { in android_logger_list_read() argument
95 extern "C" void android_logger_list_free(struct logger_list*) { in android_logger_list_free() argument
/system/core/libunwindstack/tests/
DLogFake.cpp85 extern "C" struct logger_list* android_logger_list_open(log_id_t, int, unsigned int, pid_t) { in android_logger_list_open()
90 extern "C" int android_logger_list_read(struct logger_list*, struct log_msg*) { in android_logger_list_read() argument
104 extern "C" void android_logger_list_free(struct logger_list*) { in android_logger_list_free() argument
/system/core/logcat/
Dlogcat.cpp64 struct logger_list* logger_list; member
75 logger_list = nullptr; in log_device_t()
744 struct logger_list* logger_list; in __logcat() local
1436 logger_list = android_logger_list_alloc_time(mode, tail_time, pid); in __logcat()
1438 logger_list = android_logger_list_alloc(mode, tail_lines, pid); in __logcat()
1443 dev->logger_list = logger_list; in __logcat()
1444 dev->logger = android_logger_open(logger_list, in __logcat()
1548 if (android_logger_set_prune_list(logger_list, buf, bLen)) { in __logcat()
1567 android_logger_get_prune_list(logger_list, buf, len); in __logcat()
1569 android_logger_get_statistics(logger_list, buf, len); in __logcat()
[all …]
/system/core/logd/tests/
Dlogd_test.cpp982 struct logger_list* logger_list; in __android_log_btwrite_multiple__helper() local
984 (logger_list = android_logger_list_open( in __android_log_btwrite_multiple__helper()
1001 if (android_logger_list_read(logger_list, &log_msg) <= 0) break; in __android_log_btwrite_multiple__helper()
1040 android_logger_list_close(logger_list); in __android_log_btwrite_multiple__helper()
1140 struct logger_list* logger_list = in count_avc() local
1148 if (!logger_list) return count; in count_avc()
1149 struct logger* logger = android_logger_open(logger_list, LOG_ID_EVENTS); in count_avc()
1151 android_logger_list_close(logger_list); in count_avc()
1157 if (android_logger_list_read(logger_list, &log_msg) <= 0) break; in count_avc()
1179 android_logger_list_close(logger_list); in count_avc()
/system/core/logd/
DLogTags.cpp289 struct logger_list* logger_list = android_logger_list_alloc( in ReadPersistEventLogTags() local
292 if (!logger_list) return; in ReadPersistEventLogTags()
294 struct logger* e = android_logger_open(logger_list, LOG_ID_EVENTS); in ReadPersistEventLogTags()
295 struct logger* s = android_logger_open(logger_list, LOG_ID_SECURITY); in ReadPersistEventLogTags()
297 android_logger_list_free(logger_list); in ReadPersistEventLogTags()
303 int ret = android_logger_list_read(logger_list, &log_msg); in ReadPersistEventLogTags()
345 android_logger_list_free(logger_list); in ReadPersistEventLogTags()
/system/core/debuggerd/libdebuggerd/
Dtombstone.cpp461 struct logger_list* logger_list; in dump_log_file() local
467 logger_list = android_logger_list_open( in dump_log_file()
470 if (!logger_list) { in dump_log_file()
478 ssize_t actual = android_logger_list_read(logger_list, &log_entry); in dump_log_file()
572 android_logger_list_free(logger_list); in dump_log_file()