summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuri Lelli <juri.lelli@gmail.com>2014-02-27 11:17:37 +0100
committerJuri Lelli <juri.lelli@gmail.com>2014-02-27 11:17:37 +0100
commit95bc7644c3ea850e6cff59374f4ec8e994b55042 (patch)
tree353d3b57ec7bdba19288b859b09e54380e19f280
parent024f4f08e9c8df15569f2b9ff334a451e506ce43 (diff)
adapt to the very last changes to the ABI
-rw-r--r--libdl/dl_syscalls.c12
-rw-r--r--libdl/dl_syscalls.h8
-rw-r--r--src/rt-app.c4
3 files changed, 16 insertions, 8 deletions
diff --git a/libdl/dl_syscalls.c b/libdl/dl_syscalls.c
index 7d235e7..26d86bd 100644
--- a/libdl/dl_syscalls.c
+++ b/libdl/dl_syscalls.c
@@ -1,12 +1,16 @@
#include "dl_syscalls.h"
int sched_setattr(pid_t pid,
- const struct sched_attr *attr)
+ const struct sched_attr *attr,
+ unsigned int flags)
{
- return syscall(__NR_sched_setattr, pid, attr);
+ return syscall(__NR_sched_setattr, pid, attr, flags);
}
-int sched_getattr(pid_t pid, struct sched_attr *attr)
+int sched_getattr(pid_t pid,
+ struct sched_attr *attr,
+ unsigned int size,
+ unsigned int flags)
{
- return syscall(__NR_sched_getattr, pid, attr);
+ return syscall(__NR_sched_getattr, pid, attr, size, flags);
}
diff --git a/libdl/dl_syscalls.h b/libdl/dl_syscalls.h
index 29d3f63..8d70056 100644
--- a/libdl/dl_syscalls.h
+++ b/libdl/dl_syscalls.h
@@ -67,9 +67,13 @@ struct sched_attr {
};
int sched_setattr(pid_t pid,
- const struct sched_attr *attr);
+ const struct sched_attr *attr,
+ unsigned int flags);
-int sched_getattr(pid_t pid, struct sched_attr *attr);
+int sched_getattr(pid_t pid,
+ struct sched_attr *attr,
+ unsigned int size,
+ unsigned int flags);
#endif /* __DL_SYSCALLS__ */
diff --git a/src/rt-app.c b/src/rt-app.c
index 605a662..07779b0 100644
--- a/src/rt-app.c
+++ b/src/rt-app.c
@@ -134,8 +134,8 @@ void *thread_body(void *arg)
#endif
#ifdef DLSCHED
pid_t tid;
- //struct sched_param2 param2;
struct sched_attr attr;
+ unsigned int flags = 0;
#endif
int ret, i = 0;
int j;
@@ -287,7 +287,7 @@ void *thread_body(void *arg)
attr.sched_priority
);
- ret = sched_setattr(tid, &attr);
+ ret = sched_setattr(tid, &attr, flags);
if (ret != 0) {
log_critical("[%d] sched_setattr "
"returned %d", data->ind, ret);