mbox series

[v2,0/3] Add the sched_setattr, sched_getattr functions

Message ID cover.1725567796.git.fweimer@redhat.com
Headers show
Series Add the sched_setattr, sched_getattr functions | expand

Message

Florian Weimer Sept. 5, 2024, 8:24 p.m. UTC
This version should address the issues Carlos raised in his review.

Thanks,
Florian

Florian Weimer (3):
  manual: Extract the @manpageurl{func,sec} macro
  Linux: Add the sched_setattr and sched_getattr functions
  Linux: Add missing scheduler constants to <sched.h>

 NEWS                                          |   3 +
 manual/macros.texi                            |   7 +-
 manual/resource.texi                          | 115 ++++++++++++++++++
 sysdeps/unix/sysv/linux/Makefile              |  13 ++
 sysdeps/unix/sysv/linux/Versions              |   4 +
 sysdeps/unix/sysv/linux/aarch64/libc.abilist  |   2 +
 sysdeps/unix/sysv/linux/alpha/libc.abilist    |   2 +
 sysdeps/unix/sysv/linux/arc/libc.abilist      |   2 +
 sysdeps/unix/sysv/linux/arm/be/libc.abilist   |   2 +
 sysdeps/unix/sysv/linux/arm/le/libc.abilist   |   2 +
 sysdeps/unix/sysv/linux/bits/sched.h          |  58 ++++++++-
 sysdeps/unix/sysv/linux/csky/libc.abilist     |   2 +
 sysdeps/unix/sysv/linux/hppa/libc.abilist     |   2 +
 sysdeps/unix/sysv/linux/i386/libc.abilist     |   2 +
 .../sysv/linux/loongarch/lp64/libc.abilist    |   2 +
 .../sysv/linux/m68k/coldfire/libc.abilist     |   2 +
 .../unix/sysv/linux/m68k/m680x0/libc.abilist  |   2 +
 .../sysv/linux/microblaze/be/libc.abilist     |   2 +
 .../sysv/linux/microblaze/le/libc.abilist     |   2 +
 .../sysv/linux/mips/mips32/fpu/libc.abilist   |   2 +
 .../sysv/linux/mips/mips32/nofpu/libc.abilist |   2 +
 .../sysv/linux/mips/mips64/n32/libc.abilist   |   2 +
 .../sysv/linux/mips/mips64/n64/libc.abilist   |   2 +
 sysdeps/unix/sysv/linux/nios2/libc.abilist    |   2 +
 sysdeps/unix/sysv/linux/or1k/libc.abilist     |   2 +
 .../linux/powerpc/powerpc32/fpu/libc.abilist  |   2 +
 .../powerpc/powerpc32/nofpu/libc.abilist      |   2 +
 .../linux/powerpc/powerpc64/be/libc.abilist   |   2 +
 .../linux/powerpc/powerpc64/le/libc.abilist   |   2 +
 .../unix/sysv/linux/riscv/rv32/libc.abilist   |   2 +
 .../unix/sysv/linux/riscv/rv64/libc.abilist   |   2 +
 .../unix/sysv/linux/s390/s390-32/libc.abilist |   2 +
 .../unix/sysv/linux/s390/s390-64/libc.abilist |   2 +
 sysdeps/unix/sysv/linux/sched_getattr.c       |  27 ++++
 sysdeps/unix/sysv/linux/sched_setattr.c       |  26 ++++
 sysdeps/unix/sysv/linux/sh/be/libc.abilist    |   2 +
 sysdeps/unix/sysv/linux/sh/le/libc.abilist    |   2 +
 .../sysv/linux/sparc/sparc32/libc.abilist     |   2 +
 .../sysv/linux/sparc/sparc64/libc.abilist     |   2 +
 sysdeps/unix/sysv/linux/tst-sched-consts.py   |  56 +++++++++
 sysdeps/unix/sysv/linux/tst-sched_setattr.c   | 107 ++++++++++++++++
 .../unix/sysv/linux/x86_64/64/libc.abilist    |   2 +
 .../unix/sysv/linux/x86_64/x32/libc.abilist   |   2 +
 43 files changed, 478 insertions(+), 4 deletions(-)
 create mode 100644 sysdeps/unix/sysv/linux/sched_getattr.c
 create mode 100644 sysdeps/unix/sysv/linux/sched_setattr.c
 create mode 100644 sysdeps/unix/sysv/linux/tst-sched-consts.py
 create mode 100644 sysdeps/unix/sysv/linux/tst-sched_setattr.c


base-commit: cc3e743fc09ee6fca45767629df9cbcbe1feba82

Comments

Carlos O'Donell Sept. 6, 2024, 12:19 p.m. UTC | #1
On 9/5/24 4:24 PM, Florian Weimer wrote:
> This version should address the issues Carlos raised in his review.

Thank you!

This version looks good to me and enables chatr, and systemd to start using some
of these features directly instead of through syscall and other interfaces.

> Thanks,
> Florian
> 
> Florian Weimer (3):
>   manual: Extract the @manpageurl{func,sec} macro
>   Linux: Add the sched_setattr and sched_getattr functions
>   Linux: Add missing scheduler constants to <sched.h>
> 
>  NEWS                                          |   3 +
>  manual/macros.texi                            |   7 +-
>  manual/resource.texi                          | 115 ++++++++++++++++++
>  sysdeps/unix/sysv/linux/Makefile              |  13 ++
>  sysdeps/unix/sysv/linux/Versions              |   4 +
>  sysdeps/unix/sysv/linux/aarch64/libc.abilist  |   2 +
>  sysdeps/unix/sysv/linux/alpha/libc.abilist    |   2 +
>  sysdeps/unix/sysv/linux/arc/libc.abilist      |   2 +
>  sysdeps/unix/sysv/linux/arm/be/libc.abilist   |   2 +
>  sysdeps/unix/sysv/linux/arm/le/libc.abilist   |   2 +
>  sysdeps/unix/sysv/linux/bits/sched.h          |  58 ++++++++-
>  sysdeps/unix/sysv/linux/csky/libc.abilist     |   2 +
>  sysdeps/unix/sysv/linux/hppa/libc.abilist     |   2 +
>  sysdeps/unix/sysv/linux/i386/libc.abilist     |   2 +
>  .../sysv/linux/loongarch/lp64/libc.abilist    |   2 +
>  .../sysv/linux/m68k/coldfire/libc.abilist     |   2 +
>  .../unix/sysv/linux/m68k/m680x0/libc.abilist  |   2 +
>  .../sysv/linux/microblaze/be/libc.abilist     |   2 +
>  .../sysv/linux/microblaze/le/libc.abilist     |   2 +
>  .../sysv/linux/mips/mips32/fpu/libc.abilist   |   2 +
>  .../sysv/linux/mips/mips32/nofpu/libc.abilist |   2 +
>  .../sysv/linux/mips/mips64/n32/libc.abilist   |   2 +
>  .../sysv/linux/mips/mips64/n64/libc.abilist   |   2 +
>  sysdeps/unix/sysv/linux/nios2/libc.abilist    |   2 +
>  sysdeps/unix/sysv/linux/or1k/libc.abilist     |   2 +
>  .../linux/powerpc/powerpc32/fpu/libc.abilist  |   2 +
>  .../powerpc/powerpc32/nofpu/libc.abilist      |   2 +
>  .../linux/powerpc/powerpc64/be/libc.abilist   |   2 +
>  .../linux/powerpc/powerpc64/le/libc.abilist   |   2 +
>  .../unix/sysv/linux/riscv/rv32/libc.abilist   |   2 +
>  .../unix/sysv/linux/riscv/rv64/libc.abilist   |   2 +
>  .../unix/sysv/linux/s390/s390-32/libc.abilist |   2 +
>  .../unix/sysv/linux/s390/s390-64/libc.abilist |   2 +
>  sysdeps/unix/sysv/linux/sched_getattr.c       |  27 ++++
>  sysdeps/unix/sysv/linux/sched_setattr.c       |  26 ++++
>  sysdeps/unix/sysv/linux/sh/be/libc.abilist    |   2 +
>  sysdeps/unix/sysv/linux/sh/le/libc.abilist    |   2 +
>  .../sysv/linux/sparc/sparc32/libc.abilist     |   2 +
>  .../sysv/linux/sparc/sparc64/libc.abilist     |   2 +
>  sysdeps/unix/sysv/linux/tst-sched-consts.py   |  56 +++++++++
>  sysdeps/unix/sysv/linux/tst-sched_setattr.c   | 107 ++++++++++++++++
>  .../unix/sysv/linux/x86_64/64/libc.abilist    |   2 +
>  .../unix/sysv/linux/x86_64/x32/libc.abilist   |   2 +
>  43 files changed, 478 insertions(+), 4 deletions(-)
>  create mode 100644 sysdeps/unix/sysv/linux/sched_getattr.c
>  create mode 100644 sysdeps/unix/sysv/linux/sched_setattr.c
>  create mode 100644 sysdeps/unix/sysv/linux/tst-sched-consts.py
>  create mode 100644 sysdeps/unix/sysv/linux/tst-sched_setattr.c
> 
> 
> base-commit: cc3e743fc09ee6fca45767629df9cbcbe1feba82