From: Peter Zijlstra <peterz@infradead.org>
To: Ani Sinha <ani@anisinha.ca>
Cc: linux-kernel@vger.kernel.org, anirban.sinha@nokia.com,
tglx@linutronix.de, Ingo Molnar <mingo@redhat.com>,
Juri Lelli <juri.lelli@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Steven Rostedt <rostedt@goodmis.org>,
Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
Daniel Bristot de Oliveira <bristot@redhat.com>
Subject: Re: [PATCH v2] sched/clock: print a log when the sched clock is marked unstable
Date: Wed, 7 Jul 2021 13:17:46 +0200 [thread overview]
Message-ID: <YOWNWq0IHHP3Fdhz@hirez.programming.kicks-ass.net> (raw)
In-Reply-To: <20210707105659.194171-1-ani@anisinha.ca>
On Wed, Jul 07, 2021 at 04:26:59PM +0530, Ani Sinha wrote:
> When the sched clock transitions from stable to unstable and
> vice versa, a kernel log is printed. When the sched clock
> is marked explicitly as unstable, make __clear_sched_clock_stable()
> emit a warning log. It is useful for example in understanding
> why a certain feature like NOHZ that depends on availability of a
> stable sched clock, is not available.
>
> Signed-off-by: Ani Sinha <ani@anisinha.ca>
> ---
> kernel/sched/clock.c | 1 +
> 1 file changed, 1 insertion(+)
>
> Changelog:
> V1: original patch
> v2: print pr_warn from __clear_sched_clock_stable instead. Commit log
> updated with proper prefix and wording.
>
> diff --git a/kernel/sched/clock.c b/kernel/sched/clock.c
> index c2b2859ddd82..99484fec0335 100644
> --- a/kernel/sched/clock.c
> +++ b/kernel/sched/clock.c
> @@ -183,6 +183,7 @@ static void __clear_sched_clock_stable(void)
> return;
>
> tick_dep_set(TICK_DEP_BIT_CLOCK_UNSTABLE);
> + pr_warn("sched_clock: Marking unstable.\n");
> schedule_work(&sched_clock_work);
> }
I'm confused... that work has a ton of printk()s in, what is this
pr_warn() adding?
next prev parent reply other threads:[~2021-07-07 11:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-07 10:56 [PATCH v2] sched/clock: print a log when the sched clock is marked unstable Ani Sinha
2021-07-07 11:17 ` Peter Zijlstra [this message]
2021-07-07 11:45 ` Ani Sinha
2021-07-07 12:18 ` Ani Sinha
2021-07-10 3:49 ` Ani Sinha
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=YOWNWq0IHHP3Fdhz@hirez.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=ani@anisinha.ca \
--cc=anirban.sinha@nokia.com \
--cc=bristot@redhat.com \
--cc=bsegall@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--cc=vincent.guittot@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox