diff options
author | Daniel Bristot de Oliveira <bristot@redhat.com> | 2020-08-31 18:03:11 +0200 |
---|---|---|
committer | Daniel Bristot de Oliveira <bristot@redhat.com> | 2020-08-31 18:03:11 +0200 |
commit | 5afab47a0971988a85f812c9748faad9911c70c7 (patch) | |
tree | addd8480a2f6ce551dae2e17351c8d6e8c25aa80 | |
parent | 93d70b241474acb502785ddf2b1b8d5553170b0f (diff) | |
download | stalld-5afab47a0971988a85f812c9748faad9911c70c7.tar.gz |
stalld: Add get/setattr syscall ID for other archs
Add __NR_sched_getattr and __NR_sched_setattr for aarch64, ppc64le,
and s390x.
Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com>
-rw-r--r-- | src/stalld.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/stalld.c b/src/stalld.c index 815d52b..95347fb 100644 --- a/src/stalld.c +++ b/src/stalld.c @@ -70,6 +70,15 @@ struct cpu_info { #elif __arm__ # define __NR_sched_setattr 380 # define __NR_sched_getattr 381 +#elif __aarch64__ +# define __NR_sched_setattr 274 +# define __NR_sched_getattr 275 +#elif __powerpc__ +# define __NR_sched_setattr 355 +# define __NR_sched_getattr 356 +#elif __s390x__ +# define __NR_sched_setattr 345 +# define __NR_sched_getattr 346 #endif struct sched_attr { |