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
Makefile -rw-r--r-- 377 bytes
acl.c -rw-r--r-- 12.4 KB
acl.h -rw-r--r-- 1.7 KB
balloc.c -rw-r--r-- 52.9 KB
bitmap.c -rw-r--r-- 696 bytes
dir.c -rw-r--r-- 13.2 KB
file.c -rw-r--r-- 3.6 KB
fsync.c -rw-r--r-- 2.6 KB
hash.c -rw-r--r-- 3.1 KB
ialloc.c -rw-r--r-- 21.0 KB
inode.c -rw-r--r-- 93.5 KB
ioctl.c -rw-r--r-- 7.3 KB
namei.c -rw-r--r-- 64.4 KB
namei.h -rw-r--r-- 170 bytes
resize.c -rw-r--r-- 32.6 KB
super.c -rw-r--r-- 75.8 KB
symlink.c -rw-r--r-- 1.3 KB
xattr.c -rw-r--r-- 34.3 KB
xattr.h -rw-r--r-- 3.9 KB
xattr_security.c -rw-r--r-- 1.8 KB
xattr_trusted.c -rw-r--r-- 1.6 KB
xattr_user.c -rw-r--r-- 1.6 KB

back to top