diff options
Diffstat (limited to 'lmkd/statslog.c')
-rw-r--r-- | lmkd/statslog.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lmkd/statslog.c b/lmkd/statslog.c index 66d11647b..689e8aebe 100644 --- a/lmkd/statslog.c +++ b/lmkd/statslog.c @@ -65,7 +65,7 @@ int stats_write_lmk_kill_occurred(android_log_context ctx, int32_t code, int32_t uid, char const* process_name, int32_t oom_score, int64_t pgfault, int64_t pgmajfault, int64_t rss_in_bytes, int64_t cache_in_bytes, - int64_t swap_in_bytes) { + int64_t swap_in_bytes, int64_t process_start_time_ns) { assert(ctx != NULL); int ret = -EINVAL; if (!ctx) { @@ -113,5 +113,9 @@ stats_write_lmk_kill_occurred(android_log_context ctx, int32_t code, int32_t uid return ret; } + if ((ret = android_log_write_int64(ctx, process_start_time_ns)) < 0) { + return ret; + } + return write_to_logger(ctx, LOG_ID_STATS); } |