Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BM: fix the issue of yogini parameter error #382

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions BM/workload-xsave/start_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ fi
# mode1: test workloads in specific break_reason
test_single () {
echo "trace-cmd record -e x86_fpu -F ./yogini -b $break_reason -r $repeat $option"
trace-cmd record -e x86_fpu -F ./yogini -b $break_reason -r $repeat $option
if [ $? -ne 0 ]; then
if ! trace-cmd record -e x86_fpu -F ./yogini -b $break_reason -r $repeat $option; then
echo "Failed to execute trace-cmd record."
exit 1
fi
Expand All @@ -32,9 +31,9 @@ test_single () {

# mode2: test workloads in all break_reason
test_all () {
for ((i=1; i<=5; i++))
break_reasons=("yield" "sleep" "trap" "signal" "futex")
for break_reason in "${break_reasons[@]}";
do
break_reason=$i
test_single
done
}
Expand Down
Loading