lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241122145839.15fc318d@gandalf.local.home>
Date: Fri, 22 Nov 2024 14:58:39 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Cc: linux-trace-kernel@...r.kernel.org, linux-kernel@...r.kernel.org, Peter
 Zijlstra <peterz@...radead.org>, tglx@...utronix.de, mingo@...nel.org,
 juri.lelli@...hat.com, vincent.guittot@...aro.org,
 dietmar.eggemann@....com, bsegall@...gle.com, mgorman@...e.de,
 vschneid@...hat.com, ankur.a.arora@...cle.com, efault@....de, Masami
 Hiramatsu <mhiramat@...nel.org>, Mathieu Desnoyers
 <mathieu.desnoyers@...icios.com>
Subject: Re: [PATCH v3] tracing: Record task flag NEED_RESCHED_LAZY.

On Fri, 22 Nov 2024 14:37:42 -0500
Steven Rostedt <rostedt@...dmis.org> wrote:

> On Fri, 22 Nov 2024 18:32:01 +0100
> Sebastian Andrzej Siewior <bigeasy@...utronix.de> wrote:
> 
> > From: Thomas Gleixner <tglx@...utronix.de>
> > 
> > The scheduler added NEED_RESCHED_LAZY scheduling. Record this state as
> > part of trace flags and expose it in the need_resched field.
> > 
> > Record and expose NEED_RESCHED_LAZY.
> > 
> > [bigeasy: Commit description, documentation bits.]
> > 
> > Reviewed-by: Ankur Arora <ankur.a.arora@...cle.com>
> > Reviewed-by: Steven Rostedt (Google) <rostedt@...dmis.org>
> > Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> > Signed-off-by: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
> > ---
> > v2…v3:
> >   - Use 0x02 for TRACE_FLAG_NEED_RESCHED_LAZY which is the freshly
> >     created gap.
> > 
> >  Documentation/trace/ftrace.rst |  4 ++++
> >  include/linux/trace_events.h   |  1 +
> >  kernel/trace/trace.c           |  2 ++
> >  kernel/trace/trace_output.c    | 14 +++++++++++++-
> >  4 files changed, 20 insertions(+), 1 deletion(-)
> > 
> > diff --git a/Documentation/trace/ftrace.rst b/Documentation/trace/ftrace.rst
> > index 74d5bd801b1a8..16892b844108c 100644
> > --- a/Documentation/trace/ftrace.rst
> > +++ b/Documentation/trace/ftrace.rst
> > @@ -1033,9 +1033,13 @@ explains which is which.
> >    irqs-off: 'd' interrupts are disabled. '.' otherwise.
> >  
> >    need-resched:
> > +	- 'B' all, TIF_NEED_RESCHED, PREEMPT_NEED_RESCHED and TIF_RESCHED_LAZY is set,
> >  	- 'N' both TIF_NEED_RESCHED and PREEMPT_NEED_RESCHED is set,
> >  	- 'n' only TIF_NEED_RESCHED is set,
> >  	- 'p' only PREEMPT_NEED_RESCHED is set,  
> 
> > +	- 'L' borg PREEMPT_NEED_RESCHED and TIF_RESCHED_LAZY is set,
> > +	- 'b' borg TIF_NEED_RESCHED and TIF_RESCHED_LAZY is set,  
> 
>    Is resistance futile?
> 
> I can switch it over to "both" if that's what you meant.

Actually, on Monday, can you send me a v4 with this fix?

I just realized that this patch depends on both my branch (which I'm still
waiting for Linus to pull) and the code that is already in Linus's tree.
Once Linus pulls my branch, I'll apply this on that merge commit. But that
will not be until next week.

Thanks,

-- Steve

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ