mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 15:41:58 +00:00
5484f03344
general: - add battery charge data before and after test - remove special s0i3 handling - remove melding of dmesg & ftrace data in old kernels, use one only - updates to various kprobes in trace (ksys_sync, etc) - enable pm_debug_messages during the test - instrument more subsystems with dev functions (phy0) error handling: - return codes for tool show the status of the test run - 0: success, 1: general error (no timeline), 2: fail (suspend aborted) - monitor output of /sys/power/state, mark as failure if exception occurs - add signal handler when using -result to catch tool exceptions display control - add -x commands for testing xset with mode settings and status - allow display setting to on, off, suspend, standby - add display mode change info to the log, along with a warning on fail s2idle (freeze) - remove fixed 10-phase dependency, allow any phase order & any count - multiple phase occurences show as phase_nameN e.g. suspend_noirq3 - if multiple freezes occur, print multiple time values in header summary: - add new columns to summary output: issues, worst suspend/resume devices - worst device: includes summation of all phases of suspend or resume - issues: includes WARNING/ERROR/BUG from dmesg log, and other issues - s2idle: multiple freezes show as FREEZExN in the issues column Signed-off-by: Todd Brandt <todd.e.brandt@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
48 lines
2.0 KiB
Makefile
48 lines
2.0 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
PREFIX ?= /usr
|
|
DESTDIR ?=
|
|
|
|
all:
|
|
@echo "Nothing to build"
|
|
|
|
install : uninstall
|
|
install -d $(DESTDIR)$(PREFIX)/lib/pm-graph
|
|
install sleepgraph.py $(DESTDIR)$(PREFIX)/lib/pm-graph
|
|
install bootgraph.py $(DESTDIR)$(PREFIX)/lib/pm-graph
|
|
install -d $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/cgskip.txt $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/freeze-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/freeze.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/freeze-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/standby-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/standby.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/standby-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/suspend-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/suspend.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/suspend-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/suspend-x2-proc.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
|
|
install -d $(DESTDIR)$(PREFIX)/bin
|
|
ln -s ../lib/pm-graph/bootgraph.py $(DESTDIR)$(PREFIX)/bin/bootgraph
|
|
ln -s ../lib/pm-graph/sleepgraph.py $(DESTDIR)$(PREFIX)/bin/sleepgraph
|
|
|
|
install -d $(DESTDIR)$(PREFIX)/share/man/man8
|
|
install bootgraph.8 $(DESTDIR)$(PREFIX)/share/man/man8
|
|
install sleepgraph.8 $(DESTDIR)$(PREFIX)/share/man/man8
|
|
|
|
uninstall :
|
|
rm -f $(DESTDIR)$(PREFIX)/share/man/man8/bootgraph.8
|
|
rm -f $(DESTDIR)$(PREFIX)/share/man/man8/sleepgraph.8
|
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/bootgraph
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/sleepgraph
|
|
|
|
rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/config/*
|
|
if [ -d $(DESTDIR)$(PREFIX)/lib/pm-graph/config ] ; then \
|
|
rmdir $(DESTDIR)$(PREFIX)/lib/pm-graph/config; \
|
|
fi;
|
|
rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/*
|
|
if [ -d $(DESTDIR)$(PREFIX)/lib/pm-graph ] ; then \
|
|
rmdir $(DESTDIR)$(PREFIX)/lib/pm-graph; \
|
|
fi;
|