Skip to content

Commit

Permalink
Add missing bash script
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Fingerhut <[email protected]>
  • Loading branch information
jafingerhut committed Jan 18, 2025
1 parent bb17008 commit b588508
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions show-build-logs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#! /bin/bash

# Copyright (C) 2025 Andy Fingerhut
# SPDX-License-Identifier: Apache-2.0

# Basic system info
uname -a
nproc
cat /proc/meminfo

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 "------------------------------------------------------------"
sudo dmesg -T | egrep -i 'killed process'

echo "------------------------------------------------------------"
echo "Full output of command: dmesg -T"
echo "------------------------------------------------------------"
sudo dmesg -T

for f in p4studio/logs/*
do
echo "------------------------------------------------------------"
echo "Contents of log file: $f"
echo "------------------------------------------------------------"
cat $f
done

0 comments on commit b588508

Please sign in to comment.