https://github.com/torvalds/linux
Revision b918f6e62cd46774f9fc0a3fbba6bd10ad85ee14 authored by Rafael J. Wysocki on 03 November 2006, 06:07:19 UTC, committed by Linus Torvalds on 03 November 2006, 20:27:58 UTC
Add a swsusp debugging mode.  This does everything that's needed for a suspend
except for actually suspending.  So we can look in the log messages and work
out a) what code is being slow and b) which drivers are misbehaving.

(1)
# echo testproc > /sys/power/disk
# echo disk > /sys/power/state

This should turn off the non-boot CPU, freeze all processes, wait for 5
seconds and then thaw the processes and the CPU.

(2)
# echo test > /sys/power/disk
# echo disk > /sys/power/state

This should turn off the non-boot CPU, freeze all processes, shrink
memory, suspend all devices, wait for 5 seconds, resume the devices etc.

Cc: Pavel Machek <pavel@ucw.cz>
Cc: Stefan Seyfried <seife@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 90d5390
History
Tip revision: b918f6e62cd46774f9fc0a3fbba6bd10ad85ee14 authored by Rafael J. Wysocki on 03 November 2006, 06:07:19 UTC
[PATCH] swsusp: debugging
Tip revision: b918f6e
File Mode Size
Kconfig -rw-r--r-- 1.7 KB
Kconfig.iosched -rw-r--r-- 1.9 KB
Makefile -rw-r--r-- 347 bytes
as-iosched.c -rw-r--r-- 37.9 KB
blktrace.c -rw-r--r-- 11.9 KB
cfq-iosched.c -rw-r--r-- 51.2 KB
deadline-iosched.c -rw-r--r-- 11.6 KB
elevator.c -rw-r--r-- 24.4 KB
genhd.c -rw-r--r-- 16.7 KB
ioctl.c -rw-r--r-- 7.4 KB
ll_rw_blk.c -rw-r--r-- 99.6 KB
noop-iosched.c -rw-r--r-- 2.6 KB
scsi_ioctl.c -rw-r--r-- 16.4 KB

back to top