]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/rc: capture dmesg when oom kills happen
authorDarrick J. Wong <djwong@kernel.org>
Tue, 26 Nov 2024 01:21:50 +0000 (17:21 -0800)
committerZorro Lang <zlang@kernel.org>
Thu, 28 Nov 2024 13:39:49 +0000 (21:39 +0800)
Capture the dmesg output if the OOM killer is invoked during fstests.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc

index e6c6047dcaaee3b3506414a837d17abcaa842c35..eef8d769676e3825447362414bf4da6095eeb778 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -4562,6 +4562,7 @@ _check_dmesg()
             -e "INFO: possible circular locking dependency detected" \
             -e "general protection fault:" \
             -e "BUG .* remaining" \
+            -e "oom-kill" \
             -e "UBSAN:" \
             $seqres.dmesg
        if [ $? -eq 0 ]; then