diff options
author | Xie XiuQi <xiexiuqi@huawei.com> | 2013-03-29 09:43:47 +0800 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2013-04-02 09:39:55 -0700 |
commit | 83d435dd6e24b17955f91480f633bb39f0a7c2b4 (patch) | |
tree | 7adb2be99f14f9bb6caf05bac55e0158fa2d4c06 /lib/ts_fsm.c | |
parent | eee46b3de715c9a2a25ebf3c135b88a1d73d92c2 (diff) | |
download | op-kernel-dev-83d435dd6e24b17955f91480f633bb39f0a7c2b4.zip op-kernel-dev-83d435dd6e24b17955f91480f633bb39f0a7c2b4.tar.gz |
Fix example error_injection_tool
I got a "sched_setaffinity:: Invalid argument" error when using
err_injection_tool to inject error on a system with over 32 cpus.
Error information when injecting an error on a system with over 32 cpus:
$ ./err_injection_tool -i
/sys/devices/system/cpu/cpu0/err_inject//err_type_info
Begine at Tue Mar 26 11:20:08 2013
Configurations:
On cpu32: loop=10, interval=5(s) err_type_info=4101,err_struct_info=95
Error sched_setaffinity:: Invalid argument
All done
This because there is overflow when calculating the cpumask: the
type of (1<<k) is int, while mask[j] is unsigned long. When k > 31,
(1<<k) is truncated to ZERO, resulting in a unexpected cpumask.
Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'lib/ts_fsm.c')
0 files changed, 0 insertions, 0 deletions