1 /*
2 * Copyright (c) 2017-2018 Dmitry V. Levin <ldv@strace.io>
3 * Copyright (c) 2017-2021 The strace developers.
4 * All rights reserved.
5 *
6 * SPDX-License-Identifier: LGPL-2.1-or-later
7 */
8
9 #ifndef STRACE_SCHED_ATTR_H
10 # define STRACE_SCHED_ATTR_H
11
12 # include <stdint.h>
13
14 struct sched_attr {
15 uint32_t size;
16 uint32_t sched_policy;
17 uint64_t sched_flags;
18 uint32_t sched_nice;
19 uint32_t sched_priority;
20 uint64_t sched_runtime;
21 uint64_t sched_deadline;
22 uint64_t sched_period;
23 /* ver. 1 fields below */
24 uint32_t sched_util_min;
25 uint32_t sched_util_max;
26 };
27
28 # define SCHED_ATTR_MIN_SIZE 48
29 # ifndef SCHED_ATTR_SIZE_VER1
30 # define SCHED_ATTR_SIZE_VER1 56
31 # endif
32
33 #endif /* !STRACE_SCHED_ATTR_H */