]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: oom_kill: add trace logs in process_mrelease() system call
authorCharan Teja Kalla <quic_charante@quicinc.com>
Tue, 16 Aug 2022 06:00:17 +0000 (11:30 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Aug 2022 05:02:58 +0000 (22:02 -0700)
commit16fd5d00425ddbc6e4a93b63db688a0173c4c10b
tree8f5de66e8d98a1e0985e7b938ab5d05df670f83f
parent64d6802cb23b20fb97328d75f7e5f83234cd691c
mm: oom_kill: add trace logs in process_mrelease() system call

The process_mrelease() system call is used to release the memory of a
dying process from the context of the caller, which is similar to and uses
the functions of the oom reaper logic.  There exist trace logs for a
process when reaped by the oom reaper.  Just extend the same to when done
by the process_mrelease() system call.

This patch provides information on how much memory is freed from a process
which is being reaped.  Adding trace events in the process_mrelease() path
when process is being reaped would enable more holistic debug as it
happens in oom_reap_task_mm() currently.

This extends the debug functionality for the events as described in [1] to
the process_mrelease() system call.  Now the coverage of trace events is
complete.

[1] https://lore.kernel.org/all/20170530185231.GA13412@castle/T/#u

Link: https://lkml.kernel.org/r/20220816060017.17996-1-pbrahma@qti.qualcomm.com
Signed-off-by: Charan Teja Kalla <quic_charante@quicinc.com>
Signed-off-by: Pratyush Brahma <quic_pbrahma@quicinc.com>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/oom_kill.c