Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f44842e5 authored by Joel Fernandes's avatar Joel Fernandes Committed by Greg Hackmann
Browse files

ANDROID: lowmemorykiller: Add tgid to kill message



Bug: 33346201
Test: trigger LMK and verify tgid is there

Change-Id: I047abc3aa541522766d2a84ebb4c77caf57a18a3
Signed-off-by: default avatarJoel Fernandes <joelaf@google.com>
parent 5b07c2d2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -174,11 +174,11 @@ static unsigned long lowmem_scan(struct shrinker *s, struct shrink_control *sc)
			task_set_lmk_waiting(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,