<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/lib/cpu-notifier-error-inject.c, branch v3.0.82</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/lib/cpu-notifier-error-inject.c?h=v3.0.82</id>
<link rel='self' href='https://git.amat.us/linux/atom/lib/cpu-notifier-error-inject.c?h=v3.0.82'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2010-05-27T16:12:48Z</updated>
<entry>
<title>fault-injection: add CPU notifier error injection module</title>
<updated>2010-05-27T16:12:48Z</updated>
<author>
<name>Akinobu Mita</name>
<email>akinobu.mita@gmail.com</email>
</author>
<published>2010-05-26T21:43:36Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c9d221f86e43d9fb16260fe18a8cd6767f36c8a5'/>
<id>urn:sha1:c9d221f86e43d9fb16260fe18a8cd6767f36c8a5</id>
<content type='text'>
I used this module to test the series of modification to the cpu notifiers
code.

Example1: inject CPU offline error (-1 == -EPERM)

	# modprobe cpu-notifier-error-inject cpu_down_prepare_error=-1
	# echo 0 &gt; /sys/devices/system/cpu/cpu1/online
	bash: echo: write error: Operation not permitted

Example2: inject CPU online error (-2 == -ENOENT)

	# modprobe cpu-notifier-error-inject cpu_up_prepare_error=-2
	# echo 1 &gt; /sys/devices/system/cpu/cpu1/online
	bash: echo: write error: No such file or directory

[akpm@linux-foundation.org: fix Kconfig help text]
Signed-off-by: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
