From 3c6a9f3eada7a85d19d88e2ed35223aba6842e0b Mon Sep 17 00:00:00 2001 From: Andy Fingerhut Date: Sat, 18 Jan 2025 17:50:37 +0000 Subject: [PATCH] Additions to post-build script Signed-off-by: Andy Fingerhut --- show-build-logs.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/show-build-logs.sh b/show-build-logs.sh index fde255920..c0c07d76a 100755 --- a/show-build-logs.sh +++ b/show-build-logs.sh @@ -4,22 +4,36 @@ # SPDX-License-Identifier: Apache-2.0 # Basic system info +set -x uname -a nproc cat /proc/meminfo +gcc --version +set +x +for f in p4studio/logs/* +do + set -x + wc $f + set +x +done +set +x echo "------------------------------------------------------------" echo "Occurrences of 'killed process' in dmesg logs are a likely sign" echo "that a process was killed by the kernel due to the system running" echo "our of memory, leading to unpredictable build failures." echo "------------------------------------------------------------" +set -x sudo dmesg -T | egrep -i 'killed process' +set +x echo "------------------------------------------------------------" echo "Full output of command: dmesg -T" echo "------------------------------------------------------------" +set -x sudo dmesg -T +set +x for f in p4studio/logs/* do echo "------------------------------------------------------------"