Lines Matching refs:ls
228 static enum logger_parse_entry_ret logger_thread_parse_entry(logentry *e, struct logger_stats *ls, in logger_thread_parse_entry() argument
261 static void logger_thread_write_entry(logentry *e, struct logger_stats *ls, in logger_thread_write_entry() argument
285 ls->watcher_skipped++; in logger_thread_write_entry()
294 ls->watcher_skipped++; in logger_thread_write_entry()
302 ls->watcher_sent++; in logger_thread_write_entry()
324 static int logger_thread_read(logger *l, struct logger_stats *ls) { in logger_thread_read() argument
344 ret = logger_thread_parse_entry(e, ls, scratch, &scratch_len); in logger_thread_read()
349 logger_thread_write_entry(e, ls, scratch, scratch_len); in logger_thread_read()
357 ls->worker_written += l->written; in logger_thread_read()
358 ls->worker_dropped += l->dropped; in logger_thread_read()
475 static void logger_thread_sum_stats(struct logger_stats *ls) { in logger_thread_sum_stats() argument
477 stats.log_worker_dropped += ls->worker_dropped; in logger_thread_sum_stats()
478 stats.log_worker_written += ls->worker_written; in logger_thread_sum_stats()
479 stats.log_watcher_skipped += ls->watcher_skipped; in logger_thread_sum_stats()
480 stats.log_watcher_sent += ls->watcher_sent; in logger_thread_sum_stats()
494 struct logger_stats ls; in logger_thread() local
495 memset(&ls, 0, sizeof(struct logger_stats)); in logger_thread()
503 found_logs += logger_thread_read(l, &ls); in logger_thread()
518 logger_thread_sum_stats(&ls); in logger_thread()