mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
Receive tools/sched_ext updates form https://github.com/sched-ext/scx to sync userspace bits: - basic BPF arena allocator abstractions, - additional process flags definitions, - fixed is_migration_disabled() helper, - separate out user_exit_info BPF and user space code. This also fixes the following warning when building the selftests: tools/sched_ext/include/scx/common.bpf.h:550:9: warning: 'likely' macro redefined [-Wmacro-redefined] 550 | #define likely(x) __builtin_expect(!!(x), 1) | ^ Co-developed-by: Cheng-Yang Chou <[email protected]> Signed-off-by: Andrea Righi <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
31 lines
701 B
C
31 lines
701 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Define struct user_exit_info which is shared between BPF and userspace parts
|
|
* to communicate exit status and other information.
|
|
*
|
|
* Copyright (c) 2022 Meta Platforms, Inc. and affiliates.
|
|
* Copyright (c) 2022 Tejun Heo <[email protected]>
|
|
* Copyright (c) 2022 David Vernet <[email protected]>
|
|
*/
|
|
#ifndef __USER_EXIT_INFO_COMMON_H
|
|
#define __USER_EXIT_INFO_COMMON_H
|
|
|
|
#ifdef LSP
|
|
#include "../vmlinux.h"
|
|
#endif
|
|
|
|
enum uei_sizes {
|
|
UEI_REASON_LEN = 128,
|
|
UEI_MSG_LEN = 1024,
|
|
UEI_DUMP_DFL_LEN = 32768,
|
|
};
|
|
|
|
struct user_exit_info {
|
|
int kind;
|
|
s64 exit_code;
|
|
char reason[UEI_REASON_LEN];
|
|
char msg[UEI_MSG_LEN];
|
|
};
|
|
|
|
#endif /* __USER_EXIT_INFO_COMMON_H */
|