Dmitry V. Levin
3e80074350
Avoid multiple defintions of struct sched_attr by creating a separate header file with its definition and using it in other places. * sched_attr.h: New file. * Makefile.am (strace_SOURCES): Add it. * sched.c: Include it. (print_sched_attr): Use it. * tests/sched_xetattr.c: Include it. (main): Use it.
20 lines
356 B
C
20 lines
356 B
C
#ifndef STRACE_SCHED_ATTR_H
|
|
#define STRACE_SCHED_ATTR_H
|
|
|
|
# include <stdint.h>
|
|
|
|
struct sched_attr {
|
|
uint32_t size;
|
|
uint32_t sched_policy;
|
|
uint64_t sched_flags;
|
|
uint32_t sched_nice;
|
|
uint32_t sched_priority;
|
|
uint64_t sched_runtime;
|
|
uint64_t sched_deadline;
|
|
uint64_t sched_period;
|
|
};
|
|
|
|
# define SCHED_ATTR_MIN_SIZE 48
|
|
|
|
#endif /* !STRACE_SCHED_ATTR_H */
|