forked from util-linux/util-linux
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chrt: (tests) Add new cases for custom slice on SCHED_{OTHER,BATCH}
Adds two new test cases setting --sched-runtime for SCHED_{OTHER,BATCH}. The new custom slice tests are skipped for kernel versions < 6.12, which do not have the feature. The existing chrt tests for SCHED_{OTHER,BATCH} are skipped for kernel versions >= 6.12. This is for two reasons: - the default sched_runtime value depends on target platform - without custom slice support, the value of sched_runtime is always zero for SCHED_{OTHER,BATCH} Expected output with kernel version < 6.12: schedutils: chrt ... : batch ... OK : batch-custom-slice ... SKIPPED : other ... OK : other-custom-slice ... SKIPPED : deadline ... OK Expected output with kernel version >= 6.12: schedutils: chrt ... : batch ... SKIPPED : batch-custom-slice ... OK : other ... SKIPPED : other-custom-slice ... OK : deadline ... OK Signed-off-by: Petre Tudor <petre-ionut.tudor@arm.com>
- Loading branch information
1 parent
22ff43f
commit 96f3bac
Showing
4 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SCHED_BATCH | ||
0 | ||
<removed>'s current runtime parameter: 100000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SCHED_OTHER | ||
0 | ||
<removed>'s current runtime parameter: 100000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters