[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260209085536.16723-1-xuewen.yan@unisoc.com>
Date: Mon, 9 Feb 2026 16:55:36 +0800
From: Xuewen Yan <xuewen.yan@...soc.com>
To: <tj@...nel.org>, <void@...ifault.com>, <arighi@...dia.com>,
<changwoo@...lia.com>, <guohua.yan@...soc.com>
CC: <ke.wang@...soc.com>, <di.shen@...soc.com>, <sched-ext@...ts.linux.dev>,
<linux-kernel@...r.kernel.org>, <bpf@...r.kernel.org>,
<xuewen.yan94@...il.com>
Subject: [RFC PATCH] tools/sched_ext: Use u64 for kind field to fix ARM64 atomic ops
From: Guohua Yan <guohua.yan@...soc.com>
There are following compile errors in arm64:
bpftools/CORE/scx_simple.bpf.c:144:2: error: unsupported atomic operation, please use 64 bit version
144 | UEI_RECORD(uei, ei);
| ^
Convert kind from int to u64 to resolve ARM64 atomic operation
limitations. ARM64 primarily supports 64-bit atomic operations.
Signed-off-by: Guohua Yan <guohua.yan@...soc.com>
Signed-off-by: Xuewen Yan <xuewen.yan@...soc.com>
---
tools/sched_ext/include/scx/user_exit_info_common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/sched_ext/include/scx/user_exit_info_common.h b/tools/sched_ext/include/scx/user_exit_info_common.h
index 2d0981aedd89..5bad20faade1 100644
--- a/tools/sched_ext/include/scx/user_exit_info_common.h
+++ b/tools/sched_ext/include/scx/user_exit_info_common.h
@@ -21,7 +21,7 @@ enum uei_sizes {
};
struct user_exit_info {
- int kind;
+ u64 kind;
s64 exit_code;
char reason[UEI_REASON_LEN];
char msg[UEI_MSG_LEN];
--
2.25.1
Powered by blists - more mailing lists