0417552730
install_latest_from_github.sh: - Added a new script which allows users to install the latest pm-graph from the upstream github repo. This is useful if the kernel source version has issues that have already been fixed in github. sleepgraph.py: - Updated all the dmesg suspend/resume PM print formats to be able to process recent timelines using dmesg only. - Added ethtool output to the log for the system's ethernet device id the ethtool exists. This helps in debugging network issues. - Made the tool more robustly handle events where mangled dmesg or ftrace outputs do not include all the requisite data. The tool fails gracefully instead of creating a garbled timeline. Signed-off-by: Todd Brandt <todd.e.brandt@intel.com> [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
39 lines
703 B
Bash
Executable File
39 lines
703 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Script which clones and installs the latest pm-graph
|
|
# from http://github.com/intel/pm-graph.git
|
|
|
|
OUT=`mktemp -d 2>/dev/null`
|
|
if [ -z "$OUT" -o ! -e $OUT ]; then
|
|
echo "ERROR: mktemp failed to create folder"
|
|
exit
|
|
fi
|
|
|
|
cleanup() {
|
|
if [ -e "$OUT" ]; then
|
|
cd $OUT
|
|
rm -rf pm-graph
|
|
cd /tmp
|
|
rmdir $OUT
|
|
fi
|
|
}
|
|
|
|
git clone http://github.com/intel/pm-graph.git $OUT/pm-graph
|
|
if [ ! -e "$OUT/pm-graph/sleepgraph.py" ]; then
|
|
echo "ERROR: pm-graph github repo failed to clone"
|
|
cleanup
|
|
exit
|
|
fi
|
|
|
|
cd $OUT/pm-graph
|
|
echo "INSTALLING PM-GRAPH"
|
|
sudo make install
|
|
if [ $? -eq 0 ]; then
|
|
echo "INSTALL SUCCESS"
|
|
sleepgraph -v
|
|
else
|
|
echo "INSTALL FAILED"
|
|
fi
|
|
cleanup
|