xref: /linux/tools/sched_ext/scx_userland.h (revision c17ee635fd3a482b2ad2bf5e269755c2eae5f25e)
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2022 Meta, Inc */
3 
4 #ifndef __SCX_USERLAND_COMMON_H
5 #define __SCX_USERLAND_COMMON_H
6 
7 /*
8  * An instance of a task that has been enqueued by the kernel for consumption
9  * by a user space global scheduler thread.
10  */
11 struct scx_userland_enqueued_task {
12 	__s32 pid;
13 	u64 sum_exec_runtime;
14 	u64 weight;
15 };
16 
17 #endif  // __SCX_USERLAND_COMMON_H
18