Skip to content

sched_{g,s}etattr01: Add missing policies

Petr Vorel ltp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 10 repliesIn review

Changes in v2 from the cover letter

3 new commits

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4lapi/sched.h: Add include <sched.h>include/lapi/sched.h testcases/kernel/syscalls/kcmp/kcmp03.c testcases/kernel/syscalls/sched_getattr/sched_getattr01.c +2 more+2 -73 replies
2/4lapi: Move SCHED_DEADLINE definition from testsinclude/lapi/sched.h testcases/kernel/syscalls/sched_getattr/sched_getattr01.c testcases/kernel/syscalls/sched_setattr/sched_setattr01.c+9 -61 reply
3/4sched_get_priority_min01: Add missing policiestestcases/kernel/syscalls/sched_get_priority_min/sched_get_priority_min01.c+9 -43 replies
4/4sched_get_priority_max01: Add missing policiestestcases/kernel/syscalls/sched_get_priority_max/sched_get_priority_max01.c+9 -41 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchCyril Hrubis
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [LTP] [PATCH v2 0/4] sched_{g,s}etattr01: Add missing policies

Hi,

changes v1->v2:
3 new commits

sched_getattr and sched_setattr are 99% identical (2 values are different). I was thinking to use the same approach from e197796f22 ("sethostname: Convert to new API"), but not sure if it's a good approach.

Do we want to reduce files needed to be updated after new policy is added? If yes, shouldn't there be just a single directory? (what name should be using to show 2 syscalls are in sources in this directory?)

Also docparse expect source file to be just for one binary, thus not sure whether it should just document both binaries (and thus also rename source file to show 2 syscalls are for this source?)

Kind regards,
Petr

Petr Vorel (4):
lapi/sched.h: Add include <sched.h>
lapi: Move SCHED_DEADLINE definition from tests
sched_get_priority_min01: Add missing policies
sched_get_priority_max01: Add missing policies

 include/lapi/sched.h                             | 16 +++++++++++-----
 testcases/kernel/syscalls/kcmp/kcmp03.c          |  1 -
 .../sched_get_priority_max01.c                   | 13 +++++++++----
 .../sched_get_priority_min01.c                   | 13 +++++++++----
 .../syscalls/sched_getattr/sched_getattr01.c     |  3 ---
 .../syscalls/sched_getattr/sched_getattr02.c     |  2 --
 .../syscalls/sched_setattr/sched_setattr01.c     |  2 --
 7 files changed, 29 insertions(+), 21 deletions(-)
Signature · 5 lines
2.34.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp