Skip to contentSkip to conversation

module param for CPU_NOTIFIER_ERROR_INJECT

DISCUSSION Justin P. Mattock 2 participants 3 messages Aug 21, 2011 – Aug 23, 2011 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

hello,
I am playing around with CPU_NOTIFIER_ERROR_INJECT and am noticing that

example 2

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

is not working for me, or atleast is not showing me any info that it is working.

the other proceedure does work:

example 1

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

dmesg shows:

[ 2427.924405] Injecting error (-1) at cpu notifier
[ 2427.930569] _cpu_down: attempt to take down CPU 1 failed

any ideas on what I need to do or is this working, and am I not seeing anything in dmesg?

Justin P. Mattock

#1 lore raw

2011/8/22 Justin P. Mattock <[email protected]>:

Quoted 7 lines

example 2

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

is not working for me, or atleast is not showing me any info that it is working.

I suspect that cpu-notifier-error-inject module is already loaded and the module parameter is just ignored when you run above commands.

Please retry it after rmmod or change that parameter through /sys/module/cpu-error-inject/parameters/cpu_up_prepare_error.

#3 lore raw
In reply to a message not in the archive
Quoted 21 lines · Justin Mattock

Cool.. I will retry on this and let you know.

Quoted 1 line · On Aug 22, 2011 5:48 AM, "Akinobu Mita" <[email protected]…

2011/8/22 Justin P. Mattock <[email protected]

<mailto:[email protected]>>:

Quoted 14 lines
Quoted 8 lines

example 2

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

is not working for me, or atleast is not showing me any info that it is working.

I suspect that cpu-notifier-error-inject module is already loaded and the module parameter is just ignored when you run above commands.

Please retry it after rmmod or change that parameter through /sys/module/cpu-error-inject/parameters/cpu_up_prepare_error.

cool, Thanks for the help.. not sure if this is correct, but I had to shutdown one of the cores, then execute the cammand to get any response..:

echo 0 > /sys/devices/system/cpu/cpu1/online modprobe cpu-notifier-error-inject cpu_up_prepare_error=-2 echo 1 > /sys/devices/system/cpu/cpu1/online

[ 4205.955592] Injecting error (-2) at cpu notifier
[ 4205.955601] _cpu_up: attempt to bring up CPU 1 failed

so it is working!

Justin P. Mattock