Skip to content

Commit

Permalink
ifs: skip ATOM offline CPU and scan sibling CPU tests and add interva…
Browse files Browse the repository at this point in the history
…l time

1. Skip ATOM offline CPU and scan sibling CPU tests, because ATOM CPU doesn't
have sibling CPU.
2. Add the interval time as spec mentioned.

Signed-off-by: Pengfei Xu <[email protected]>
  • Loading branch information
xupengfe committed Nov 6, 2023
1 parent 4d58651 commit 5ffe129
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ifs/ifs_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,8 @@ ifs_scan_loop() {
for ((i=1; i<=times; i++)); do
test_print_trc "Scan loop times:$i"
# SPEC: Target 100ms at lowest frequency for all test content on a given core.
sleep 0.1
# If there is bin app, execute the app in target CPU
[[ -n "$bin" ]] && {
taskset -c "$cpu_num" "$bin" &
Expand Down
8 changes: 4 additions & 4 deletions ifs/ifs_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ run_ifs_tests() {
;;
legacy_twice_run)
online_all_cpu
modprobe -r "$IFS_NAME"
enable_ifs_trace
do_cmd "echo $BATCH_NUM > ${IFS_PATH}/${BATCH}"
# Need to wait after boot up 1800s, then could test ifs
Expand Down Expand Up @@ -132,13 +133,12 @@ run_ifs_tests() {
;;
"$IFS_OFFLINE")
online_all_cpu
enable_ifs_trace
is_atom
[[ "$IS_ATOM" == "$TRUE" ]] && {
if [[ "$BATCH_NUM" -eq 3 ]]; then
skip_test "It's an atom CPU, no sibling CPU for ifs testing."
fi
skip_test "It's an atom CPU, no sibling CPU for ifs testing."
}
modprobe -r "$IFS_NAME"
enable_ifs_trace
do_cmd "echo $BATCH_NUM > ${IFS_PATH}/${BATCH}"
init_log "${NAME}_${BATCH_NUM}"

Expand Down

0 comments on commit 5ffe129

Please sign in to comment.