Home
last modified time | relevance | path

Searched refs:CPU_TO_TEST (Results 1 – 7 of 7) sorted by relevance

/third_party/ltp/testcases/kernel/hotplug/cpu_hotplug/functional/
Dcpuhotplug07.sh46 CPU_TO_TEST=$OPTARG;;
70 if [ -z "${CPU_TO_TEST}" ]; then
76 if ! cpu_is_valid "${CPU_TO_TEST}" ; then
77 tst_brkm TCONF "cpu${CPU_TO_TEST} doesn't support hotplug"
80 if ! cpu_is_online ${CPU_TO_TEST}; then
81 if ! online_cpu ${CPU_TO_TEST}; then
82 tst_brkm TBROK "CPU${CPU_TO_TEST} cannot be onlined"
101 set_affinity ${KCOMPILE_LOOP_PID} ${CPU_TO_TEST}
103 offline_cpu ${CPU_TO_TEST}
105 echo "Offlining cpu${CPU_TO_TEST}: Return Code = ${RC}"
[all …]
Dcpuhotplug02.sh47 CPU_TO_TEST=$OPTARG;;
65 if [ -z "${CPU_TO_TEST}" ]; then
70 if ! cpu_is_valid "${CPU_TO_TEST}" ; then
71 tst_brkm TCONF "cpu${CPU_TO_TEST} doesn't support hotplug"
75 if ! cpu_is_online "${CPU_TO_TEST}" ; then
76 if ! online_cpu ${CPU_TO_TEST}; then
77 tst_brkm TBROK "CPU${CPU_TO_TEST} cannot be onlined"
90 set_affinity ${SPIN_LOOP_PID} ${CPU_TO_TEST}
93 offline_cpu ${CPU_TO_TEST}
98 if [ ${CPU_TO_TEST} = ${NEW_CPU} ]; then
[all …]
Dcpuhotplug05.sh39 online_cpu "$CPU_TO_TEST"
50 CPU_TO_TEST=$OPTARG;;
72 if [ -z "$CPU_TO_TEST" ]; then
77 if ! cpu_is_valid "${CPU_TO_TEST}" ; then
78 tst_brkm TCONF "cpu${CPU_TO_TEST} doesn't support hotplug"
82 if cpu_is_online "${CPU_TO_TEST}" ; then
83 if ! offline_cpu ${CPU_TO_TEST} ; then
84 tst_brkm TBROK "CPU${CPU_TO_TEST} cannot be offlined"
101 sar -P "$CPU_TO_TEST" 1 0 > "$LOG_FILE" &
103 sar -P "$CPU_TO_TEST" 1 > "$LOG_FILE" &
[all …]
Dcpuhotplug03.sh56 CPU_TO_TEST=$OPTARG;;
75 if [ -z $CPU_TO_TEST ]; then
80 if ! cpu_is_valid "${CPU_TO_TEST}" ; then
81 tst_brkm TCONF "cpu${CPU_TO_TEST} doesn't support hotplug"
99 if ! offline_cpu ${CPU_TO_TEST} ; then
100 tst_resm TBROK "CPU${CPU_TO_TEST} cannot be offlined"
118 tst_resm TINFO "Onlining CPU ${CPU_TO_TEST}"
119 if ! online_cpu ${CPU_TO_TEST}; then
120 tst_brkm TBROK "CPU${CPU_TO_TEST} cannot be onlined"
135 | sed -e "s/^ *//" | cut -d' ' -f 1 | grep "^${CPU_TO_TEST}$" \
[all …]
Dcpuhotplug06.sh42 CPU_TO_TEST=$OPTARG;;
64 if [ -z "$CPU_TO_TEST" ]; then
69 if ! cpu_is_valid "${CPU_TO_TEST}" ; then
70 tst_brkm TCONF "cpu${CPU_TO_TEST} doesn't support hotplug"
74 if ! cpu_is_online "${CPU_TO_TEST}" ; then
75 if ! online_cpu ${CPU_TO_TEST}; then
76 tst_brkm TBROK "CPU${CPU_TO_TEST} cannot be onlined"
89 if ! offline_cpu ${CPU_TO_TEST} ; then
90 tst_brkm TBROK "CPU${CPU_TO_TEST} cannot be offlined"
102 online_cpu ${CPU_TO_TEST}
Dcpuhotplug01.sh96 CPU_TO_TEST=$OPTARG;;
122 if [ -z "${CPU_TO_TEST}" ]; then
127 if ! cpu_is_valid "${CPU_TO_TEST}" ; then
128 tst_brkm TCONF "cpu${CPU_TO_TEST} doesn't support hotplug"
131 if ! cpu_is_online "${CPU_TO_TEST}" ; then
132 if ! online_cpu ${CPU_TO_TEST} ; then
133 tst_brkm TBROK "Could not online cpu $CPU_TO_TEST"
/third_party/ltp/testcases/kernel/hotplug/cpu_hotplug/include/
Dcpuhotplug_hotplug.sh56 MASK=$((1<<${CPU_TO_TEST}))