Re: [PATCH 2/3] tracing: Record task flag NEED_RESCHED_LAZY.
From: Sebastian Andrzej Siewior
Date: Thu Oct 10 2024 - 11:01:35 EST
On 2024-10-10 10:52:14 [-0400], Steven Rostedt wrote:
> On Thu, 10 Oct 2024 12:56:11 +0200
> Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> wrote:
>
> > +++ b/kernel/trace/trace.c
> > @@ -2544,6 +2544,8 @@ unsigned int tracing_gen_ctx_irq_test(unsigned int irqs_status)
> > trace_flags |= TRACE_FLAG_NEED_RESCHED;
> > if (test_preempt_need_resched())
> > trace_flags |= TRACE_FLAG_PREEMPT_RESCHED;
> > + if (IS_ENABLED(CONFIG_ARCH_HAS_PREEMPT_LAZY) && tif_test_bit(TIF_NEED_RESCHED_LAZY))
> > + trace_flags |= TRACE_FLAG_NEED_RESCHED_LAZY;
> > return (trace_flags << 16) | (min_t(unsigned int, pc & 0xff, 0xf)) |
> > (min_t(unsigned int, migration_disable_value(), 0xf)) << 4;
> > }
>
> This is the only update you made from your previous version right?
Yes.
> If so, my reviewed-by stands.
Let me add your's and Ankur's.
> -- Steve
Sebastian