-
Notifications
You must be signed in to change notification settings - Fork 126
test+kernel(sched): align scheduler family syscalls with Linux behavior #962
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
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f15ef44
test: init repo
invalid-email-address 7c1756b
fix(sched): fix kernel scheduling syscall bugs and pass full sched-fa…
invalid-email-address d80d152
Merge branch 'rcore-os:dev' into test-sched-family
04megumi 9bbb3e1
test(sched): pass scheduler family tests on x86_64, aarch64, riscv64 …
invalid-email-address e696895
test(sched): add extended syscall test cases for scheduler family
invalid-email-address 173cf72
Merge branch 'rcore-os:dev' into test-sched-family
04megumi d23a9c9
sched: support SCHED_RESET_ON_FORK and fix sched_getparam permission …
invalid-email-address e1615e1
test(sched): fix invalid sched_param initialization in SCHED_RESET_ON…
invalid-email-address File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
9 changes: 9 additions & 0 deletions
9
test-suit/starryos/normal/qemu-smp4/test-sched-family/c/CMakeLists.txt
This file contains hidden or 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,9 @@ | ||
| cmake_minimum_required(VERSION 3.20) | ||
| project(test-sched-family C) | ||
| set(CMAKE_C_STANDARD 11) | ||
| set(CMAKE_C_STANDARD_REQUIRED ON) | ||
| set(CMAKE_C_EXTENSIONS OFF) | ||
| add_executable(test-sched-family src/main.c) | ||
| target_include_directories(test-sched-family PRIVATE src) | ||
| target_compile_options(test-sched-family PRIVATE -Wall -Wextra -Werror) | ||
| install(TARGETS test-sched-family RUNTIME DESTINATION usr/bin) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 建议:
sched_setscheduler未处理SCHED_RESET_ON_FORK标志位Linux 允许在
policy参数中 OR 上SCHED_RESET_ON_FORK(0x40000000)标志。当前实现直接将_policy as u32与SCHED_NORMAL等常量比较,会导致带该标志的合法调用被误判为 EINVAL。建议在策略校验前先剥离该标志:
然后在设置任务时存储
reset_on_fork状态(或在当前阶段先忽略其语义,只做标志剥离以避免 EINVAL 误判)。