Lines Matching full:echo
14 echo $msg must be run as root >&2
21 echo $msg sysfs is not mounted >&2
26 echo $msg memory hotplug is not supported >&2
31 echo $msg no hot-pluggable memory >&2
46 echo ${memory##/*/memory}
73 echo online > $SYSFS/devices/system/memory/memory$1/state
78 echo offline > $SYSFS/devices/system/memory/memory$1/state
86 echo $FUNCNAME $memory: unexpected fail >&2
89 echo $FUNCNAME $memory: unexpected offline >&2
100 echo $FUNCNAME $memory: unexpected success >&2
103 echo $FUNCNAME $memory: unexpected online >&2
114 echo $FUNCNAME $memory: unexpected fail >&2
117 echo $FUNCNAME $memory: unexpected offline >&2
128 echo $FUNCNAME $memory: unexpected success >&2
131 echo $FUNCNAME $memory: unexpected offline >&2
158 echo "Usage $0 [ -e errno ] [ -p notifier-priority ] [ -r percent-of-memory-to-offline ]"
167 echo "The percentage should be an integer within 0~100 range"
175 echo "error code must be -4095 <= errno < 0" >&2
181 echo "Test scope: $ratio% hotplug memory"
187 echo -e "\t online all hot-pluggable memory in offline state:"
190 echo "offline->online memory$memory"
196 echo -e "\t\t SKIPPED - no hot-pluggable memory in offline state"
203 target=`echo "a=$hotpluggable_num*$ratio; if ( a%100 ) a/100+1 else a/100" | bc`
204 echo -e "\t offline $ratio% hot-pluggable memory in online state"
205 echo -e "\t trying to offline $target out of $hotpluggable_num memory block(s):"
208 echo "online->offline memory$memory"
211 echo "-> Success"
213 echo "-> Failure"
219 echo -e "\t\t FAILED - unable to offline some memory blocks, device busy?"
226 echo -e "\t online all hot-pluggable memory in offline state:"
229 echo "offline->online memory$memory"
235 echo -e "\t\t SKIPPED - no hot-pluggable memory in offline state"
253 echo $msg debugfs is not mounted >&2
258 echo $msg memory-notifier-error-inject module is not available >&2
263 echo -e "\t Test with memory notifier error injection"
269 echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_OFFLINE/error
279 echo $error > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_ONLINE/error
289 echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_ONLINE/error
295 echo $error > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_OFFLINE/error
304 echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_OFFLINE/error