Home
last modified time | relevance | path

Searched refs:log_ctx (Results 1 – 2 of 2) sorted by relevance

/system/core/lmkd/
Dstatslog.h44 static inline void statslog_init(android_log_context* log_ctx, bool* enable_stats_log) { in statslog_init() argument
45 assert(log_ctx != NULL); in statslog_init()
50 *log_ctx = create_android_logger(kStatsEventTag); in statslog_init()
54 static inline void statslog_destroy(android_log_context* log_ctx) { in statslog_destroy() argument
55 assert(log_ctx != NULL); in statslog_destroy()
56 if (*log_ctx) { in statslog_destroy()
57 android_log_destroy(log_ctx); in statslog_destroy()
Dlmkd.c338 static android_log_context log_ctx; variable
1389 stats_write_lmk_kill_occurred(log_ctx, LMK_KILL_OCCURRED, uid, taskname, in kill_one_process()
1394 stats_write_lmk_kill_occurred(log_ctx, LMK_KILL_OCCURRED, uid, taskname, procp->oomadj, in kill_one_process()
1438 stats_write_lmk_state_changed(log_ctx, LMK_STATE_CHANGED, in find_and_kill_process()
1452 stats_write_lmk_state_changed(log_ctx, LMK_STATE_CHANGED, LMK_STATE_CHANGE_STOP); in find_and_kill_process()
2061 statslog_init(&log_ctx, &enable_stats_log); in main()
2092 statslog_destroy(&log_ctx); in main()