Skip to content

syscalls/sched_*: convert to new API and handle ENOSYS errno

Cyril Hrubis ltp 1 version New

Get series with b4
b4 am YPbNQ4AebDiUMxVz@yuki

Versions newest first

  1. v1 Latest0 of 16 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 16 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [LTP] [PATCH 00/16] syscalls/sched_*: convert to new API and handle ENOSYS errno

Hi!

Quoted 3 lines

The patch-set introduced new tst_sched_* wrappers to handle ENOSYS error that can be returned by libc (musl [1]). In that particular case the wrapper uses syscall directly to test the kernel anyway.

Can't we use the test_variants to test both the kernel and libc calls instead?

Quoted 47 lines

[1]: https://git.musl-libc.org/cgit/musl/commit/?id=1e21e78bf7a5

Alexey Kodanev (16):
lib/tst_sched: add ltp tst_sched_*() syscalls/sched_getparam01: use tst_sched_*() syscalls/sched_getparam03: use tst_sched_*() syscalls/sched_setparam01: convert to new API syscalls/sched_setparam02: convert to new API syscalls/sched_setparam03: convert to new API syscalls/sched_setparam04: convert to new API syscalls/sched_setparam05: convert to new API syscalls/sched_rr_get_interval01: use tst_sched_*() syscalls/sched_rr_get_interval02: use tst_sched_*() syscalls/sched_rr_get_interval03: use tst_sched_*() syscalls/sched_setscheduler01: convert to new API syscalls/sched_setscheduler02: convert to new API syscalls/sched_setscheduler03: use tst_sched_*() syscalls/sched_getscheduler01: convert to new API syscalls/sched_getscheduler02: convert to new API

 include/tst_sched.h                           |  16 ++
 lib/tst_sched.c                               |  36 +++
 .../sched_getparam/sched_getparam01.c         |   6 +-
 .../sched_getparam/sched_getparam03.c         |   4 +-
 .../sched_getscheduler/sched_getscheduler01.c | 141 +++---------
 .../sched_getscheduler/sched_getscheduler02.c | 104 ++-------
 .../sched_rr_get_interval01.c                 |   4 +-
 .../sched_rr_get_interval02.c                 |   4 +-
 .../sched_rr_get_interval03.c                 |   4 +-
 .../sched_setparam/sched_setparam01.c         | 135 ++---------
 .../sched_setparam/sched_setparam02.c         | 195 +++-------------
 .../sched_setparam/sched_setparam03.c         | 215 ++++--------------
 .../sched_setparam/sched_setparam04.c         | 161 +++----------
 .../sched_setparam/sched_setparam05.c         | 186 +++------------
 .../sched_setscheduler/sched_setscheduler01.c | 171 ++++----------
 .../sched_setscheduler/sched_setscheduler02.c | 154 +++----------
 .../sched_setscheduler/sched_setscheduler03.c |  10 +-
 17 files changed, 345 insertions(+), 1201 deletions(-)
 create mode 100644 include/tst_sched.h
 create mode 100644 lib/tst_sched.c
Signature · 5 lines
2.25.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Signature · 2 lines
Cyril Hrubis
[email protected]