-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Todd Brandt
authored and
Rafael J. Wysocki
committed
Mar 27, 2023
1 parent
197b6b6
commit 0417552
Showing
3 changed files
with
75 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters