Merge "Additional LMK diagnostic information" am: f3aeac8f09 am: 6a6ad9af99 am: 17af4e9b9b am: 6c3d76a967
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1424810 Change-Id: Ia3d101e8c05dd664cc83561e59b51423b29d1c6e
This commit is contained in:
@@ -3863,6 +3863,17 @@ message LmkStateChanged {
|
|||||||
* system/core/lmkd/lmkd.c
|
* system/core/lmkd/lmkd.c
|
||||||
*/
|
*/
|
||||||
message LmkKillOccurred {
|
message LmkKillOccurred {
|
||||||
|
enum Reason {
|
||||||
|
UNKNOWN = 0;
|
||||||
|
PRESSURE_AFTER_KILL = 1;
|
||||||
|
NOT_RESPONDING = 2;
|
||||||
|
LOW_SWAP_AND_THRASHING = 3;
|
||||||
|
LOW_MEM_AND_SWAP = 4;
|
||||||
|
LOW_MEM_AND_THRASHING = 5;
|
||||||
|
DIRECT_RECL_AND_THRASHING = 6;
|
||||||
|
LOW_MEM_AND_SWAP_UTIL = 7;
|
||||||
|
}
|
||||||
|
|
||||||
// The uid if available. -1 means not available.
|
// The uid if available. -1 means not available.
|
||||||
optional int32 uid = 1 [(is_uid) = true];
|
optional int32 uid = 1 [(is_uid) = true];
|
||||||
|
|
||||||
@@ -3892,6 +3903,15 @@ message LmkKillOccurred {
|
|||||||
|
|
||||||
// Min oom adj score considered by lmkd.
|
// Min oom adj score considered by lmkd.
|
||||||
optional int32 min_oom_score = 10;
|
optional int32 min_oom_score = 10;
|
||||||
|
|
||||||
|
// Free physical memory on device at LMK time.
|
||||||
|
optional int32 free_mem_kb = 11;
|
||||||
|
|
||||||
|
// Free swap on device at LMK time.
|
||||||
|
optional int32 free_swap_kb = 12;
|
||||||
|
|
||||||
|
// What triggered the LMK event.
|
||||||
|
optional Reason reason = 13;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user