[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aPrSeQ9560YjwXlB@slm.duckdns.org>
Date: Thu, 23 Oct 2025 15:12:25 -1000
From: Tejun Heo <tj@...nel.org>
To: Andrea Righi <arighi@...dia.com>
Cc: David Vernet <void@...ifault.com>, Changwoo Min <changwoo@...lia.com>,
Emil Tsalapatis <emil@...alapatis.com>, sched-ext@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 sched_ext/for-6.19] sched_ext/tools: Add compat layer
for kfuncs using struct *_args
Hello,
On Thu, Oct 23, 2025 at 10:01:30AM +0200, Andrea Righi wrote:
> +#define scx_bpf_select_cpu_and_args __COMPAT_scx_bpf_select_cpu_and_args
> +struct __COMPAT_scx_bpf_select_cpu_and_args {
> + s32 prev_cpu;
> + u64 wake_flags;
> + u64 flags;
> +};
> +
> +#define scx_bpf_dsq_insert_vtime_args __COMPAT_scx_bpf_dsq_insert_vtime_args
> +struct __COMPAT_scx_bpf_dsq_insert_vtime_args {
> + u64 dsq_id;
> + u64 slice;
> + u64 vtime;
> + u64 enq_flags;
> +};
I think this makes the inline compat wrapper to always pick the compat
interface as it'd do bpf_core_type_exists() on the __COMPAT prefixed type
name which doesn't exist in the kernel.
Thanks.
--
tejun
Powered by blists - more mailing lists