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:
Joel Fernandes
2020-12-12 22:46:08 +01:00
committed by Francescodario Cuzzocrea
parent 513c36b38a
commit 7bf565ace0
+2 -2
View File
@@ -492,7 +492,7 @@ static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc)
p->comm, p->pid, oom_score_adj, tasksize);
}
if (selected) {
lowmem_print(1, "Killing '%s' (%d), adj %d,\n" \
lowmem_print(1, "Killing '%s' (%d), (tgid %d), adj %d,\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" \
@@ -505,7 +505,7 @@ static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc)
" Slab UnReclaimable is %ldkB\n" \
" Total Slab is %ldkB\n" \
" GFP mask is 0x%x\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,