From: Wenwu Hou <hwenwur@gmail.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <frederic@kernel.org>,
mhiramat@kernel.org, mathieu.desnoyers@efficios.com,
linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH v2] tracing/hwlat: Bind the sampler kthread instead of setting its affinity
Date: Mon, 30 Nov 2026 10:12:02 +0800 [thread overview]
Message-ID: <awzbcmIfEDN9843p@gmail.com> (raw)
In-Reply-To: <20261127110037.6ab35dae@gandalf.local.home>
On Fri, Nov 27, 2026 at 11:00:37AM -0500, Steven Rostedt wrote:
> On Thu, 26 Nov 2026 17:16:42 +0800
> Wenwu Hou <hwenwur@gmail.com> wrote:
>
> > >
> > > Right, the affinity should only be changed by the kernel if tracing_cpumask is
> > > written. Otherwise it doesn't seem to make sense to let the user play with the
> > > affinity.
> >
> > I agree. Perhaps v1 is better.
>
> A version of it. It needs to remove and prevent user space from modifying
> the tasks affinity.
v1 already leaves PF_NO_SETAFFINITY set for hwlatd via kthread_bind_mask(), which prevents userspace from changing the task's affinity.
Is there anything else you would like removed or changed?
> -- Steve
next prev parent reply other threads:[~2026-11-30 2:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 8:46 [PATCH v2] tracing/hwlat: Bind the sampler kthread instead of setting its affinity Wenwu Hou
2026-11-25 13:37 ` Frederic Weisbecker
2026-11-25 15:38 ` Steven Rostedt
2026-11-25 16:24 ` Frederic Weisbecker
2026-11-26 9:16 ` Wenwu Hou
2026-11-27 16:00 ` Steven Rostedt
2026-11-30 2:12 ` Wenwu Hou [this message]
2026-11-30 16:49 ` Steven Rostedt
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=awzbcmIfEDN9843p@gmail.com \
--to=hwenwur@gmail.com \
--cc=frederic@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=rostedt@goodmis.org \
--cc=stable@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.