test/scheduler: check the idle thread on the main core
check if the thread is moved to the main core after it becomes idle. Change-Id: I3ee38ee16d755cc9dea5fa10d9f8ba42507408ff Signed-off-by: Richael Zhuang <richael.zhuang@arm.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7853 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
642b89f496
commit
97f8a3b964
@ -121,6 +121,7 @@ interrupt() {
|
||||
((is_idle[cpu] == 1))
|
||||
reactor_framework=$(rpc_cmd framework_get_reactors | jq -r '.reactors[]')
|
||||
[[ -z $(jq -r "select(.lcore == $cpu) | .lw_threads[].id" <<< "$reactor_framework") ]]
|
||||
[[ -n $(jq -r "select(.lcore == $spdk_main_core) | .lw_threads[] | select(.name == \"thread$cpu\")" <<< "$reactor_framework") ]]
|
||||
done
|
||||
|
||||
for cpu in "${!threads[@]}"; do
|
||||
|
Loading…
Reference in New Issue
Block a user