mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-11 07:28:10 +09:00
ANDROID: lowmemorykiller: Add tgid to kill message
Bug: 33346201 Test: trigger LMK and verify tgid is there Change-Id: I047abc3aa541522766d2a84ebb4c77caf57a18a3 Signed-off-by: Joel Fernandes <joelaf@google.com>
This commit is contained in:
committed by
Amit Pundir
parent
d09bf7f8c7
commit
eeff7028fc
@@ -177,11 +177,11 @@ static unsigned long lowmem_scan(struct shrinker *s, struct shrink_control *sc)
|
||||
mark_oom_victim(selected);
|
||||
task_unlock(selected);
|
||||
trace_lowmemory_kill(selected, cache_size, cache_limit, free);
|
||||
lowmem_print(1, "Killing '%s' (%d), adj %hd,\n" \
|
||||
lowmem_print(1, "Killing '%s' (%d) (tgid %d), adj %hd,\n" \
|
||||
" to free %ldkB on behalf of '%s' (%d) because\n" \
|
||||
" cache %ldkB is below limit %ldkB for oom_score_adj %hd\n" \
|
||||
" Free memory is %ldkB above reserved\n",
|
||||
selected->comm, selected->pid,
|
||||
selected->comm, selected->pid, selected->tgid,
|
||||
selected_oom_score_adj,
|
||||
selected_tasksize * (long)(PAGE_SIZE / 1024),
|
||||
current->comm, current->pid,
|
||||
|
||||
Reference in New Issue
Block a user