From: Tejun Heo <tj@kernel.org>
To: Changwoo Min <changwoo@igalia.com>
Cc: void@manifault.com, arighi@nvidia.com, kernel-dev@igalia.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/4] sched_ext: Compatible testing of SCX_ENQ_CPU_SELECTED
Date: Fri, 7 Feb 2025 22:13:10 -1000 [thread overview]
Message-ID: <Z6cSFmXvNkmI0qKv@slm.duckdns.org> (raw)
In-Reply-To: <20250208044332.492494-1-changwoo@igalia.com>
On Sat, Feb 08, 2025 at 01:43:28PM +0900, Changwoo Min wrote:
> This patchset is for testing `SCX_ENQ_CPU_SELECTED` in a compatible way.
> More specifically, it handles two cases:
> 1. a BPF scheduler is compiled against vmlinux.h where
> SCX_ENQ_CPU_SELECTED is defined, but it runs on a kernel that does not
> have SCX_ENQ_CPU_SELECTED.
> 2. a BPF scheduler is compiling against vmlinux.h where
> SCX_ENQ_CPU_SELECTED is not defined.
>
> The patch consists of three parts:
> 1. Add enum_defs.autogen.h, which has macros denoting whether SCX
> enums are defined in the vmlinux.h or not.
> 2. Implement __COMPAT_is_enq_cpu_selected(), which provide the test of
> SCX_ENQ_CPU_SELECTED in a compatible way.
> 3. Use __COMPAT_is_enq_cpu_selected() in scx_qmap.
>
> Also, this patchset is a sync of the relevant PR [1] in the scx repo.
>
> [1] https://github.com/sched-ext/scx/pull/1314
>
> Changwoo Min (4):
> sched_ext: Add enum_defs.autogen.h
> sched_ext: Include enum_defs.autogen.h from common/common.bpf.h
> sched_ext: Add __COMPAT_is_enq_cpu_selected() for BPF compatability
> sched_ext: Use __COMPAT_is_enq_cpu_selected() in scx_qmap
Can you collapse the four patches into a single patch? I don't think this
needs to be split this granularly.
Thanks.
--
tejun
next prev parent reply other threads:[~2025-02-08 8:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-08 4:43 [PATCH 0/4] sched_ext: Compatible testing of SCX_ENQ_CPU_SELECTED Changwoo Min
2025-02-08 4:43 ` [PATCH 1/4] sched_ext: Add enum_defs.autogen.h Changwoo Min
2025-02-08 4:43 ` [PATCH 2/4] sched_ext: Include enum_defs.autogen.h from common/common.bpf.h Changwoo Min
2025-02-08 4:43 ` [PATCH 3/4] sched_ext: Add __COMPAT_is_enq_cpu_selected() for BPF compatability Changwoo Min
2025-02-08 4:43 ` [PATCH 4/4] sched_ext: Use __COMPAT_is_enq_cpu_selected() in scx_qmap Changwoo Min
2025-02-08 8:13 ` Tejun Heo [this message]
2025-02-08 9:04 ` [PATCH 0/4] sched_ext: Compatible testing of SCX_ENQ_CPU_SELECTED Changwoo Min
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=Z6cSFmXvNkmI0qKv@slm.duckdns.org \
--to=tj@kernel.org \
--cc=arighi@nvidia.com \
--cc=changwoo@igalia.com \
--cc=kernel-dev@igalia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=void@manifault.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