From: Xuewen Yan <xuewen.yan@unisoc.com>
To: <tj@kernel.org>, <void@manifault.com>, <arighi@nvidia.com>,
<changwoo@igalia.com>, <guohua.yan@unisoc.com>
Cc: <ke.wang@unisoc.com>, <di.shen@unisoc.com>,
<sched-ext@lists.linux.dev>, <linux-kernel@vger.kernel.org>,
<bpf@vger.kernel.org>, <xuewen.yan94@gmail.com>
Subject: [RFC PATCH] tools/sched_ext: Use u64 for kind field to fix ARM64 atomic ops
Date: Mon, 9 Feb 2026 16:55:36 +0800 [thread overview]
Message-ID: <20260209085536.16723-1-xuewen.yan@unisoc.com> (raw)
From: Guohua Yan <guohua.yan@unisoc.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@unisoc.com>
Signed-off-by: Xuewen Yan <xuewen.yan@unisoc.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
next reply other threads:[~2026-02-09 8:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 8:55 Xuewen Yan [this message]
2026-02-09 19:11 ` Tejun Heo
2026-02-10 1:48 ` Xuewen Yan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260209085536.16723-1-xuewen.yan@unisoc.com \
--to=xuewen.yan@unisoc.com \
--cc=arighi@nvidia.com \
--cc=bpf@vger.kernel.org \
--cc=changwoo@igalia.com \
--cc=di.shen@unisoc.com \
--cc=guohua.yan@unisoc.com \
--cc=ke.wang@unisoc.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sched-ext@lists.linux.dev \
--cc=tj@kernel.org \
--cc=void@manifault.com \
--cc=xuewen.yan94@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®