You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get Ztress to work. Here is what I assumed given the documentation + we are running 3 threads using ZTRESS_EXECUTE macro:
a THREAD will be marked as passed once both exec & preempt spec are met
if passed, a THREAD will keep running until others are passed too
an EXECUTION will complete & then stop all THREADs at the same time, once all are passed
What I experienced:
a THREAD is marked as pass once either exec OR preempt spec is met
once marked as passed, a THREAD stops executing
an EXECUTION completes when no THREADs is running anymore
Hopefully I'm wrong in my understanding, but I don't get how one can get a overview of CPU load if THREADs stop executing one after another.
How to reproduce ? Execute the test located at tests\ztest\ztress, modify the ZTEST test_repeat_completion and instead of using repeat variable replace with weird values such as 1, 2 or 1000, also set preempt cnt, see below:
And results:
Any help much appreciated, I'm either super wrong in my understand on how to use Ztress or it does not work as expected.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to get Ztress to work. Here is what I assumed given the documentation + we are running 3 threads using ZTRESS_EXECUTE macro:
What I experienced:
Hopefully I'm wrong in my understanding, but I don't get how one can get a overview of CPU load if THREADs stop executing one after another.
How to reproduce ? Execute the test located at

tests\ztest\ztress
, modify the ZTESTtest_repeat_completion
and instead of using repeat variable replace with weird values such as 1, 2 or 1000, also set preempt cnt, see below:And results:

Any help much appreciated, I'm either super wrong in my understand on how to use Ztress or it does not work as expected.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions