From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>,
LKML <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@kernel.org>,
Rusty Russell <rusty@rustcorp.com.au>,
Frederic Weisbecker <fweisbec@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [RFC][PATCH] tracing: Warn and notify if tracepoints are not loaded due to module taint
Date: Wed, 26 Feb 2014 12:48:12 +0000 (UTC) [thread overview]
Message-ID: <192956891.30659.1393418892222.JavaMail.zimbra@efficios.com> (raw)
In-Reply-To: <20140226085926.GF18404@twins.programming.kicks-ass.net>
----- Original Message -----
> From: "Peter Zijlstra" <peterz@infradead.org>
> To: "Steven Rostedt" <rostedt@goodmis.org>
> Cc: "Mathieu Desnoyers" <mathieu.desnoyers@efficios.com>, "LKML" <linux-kernel@vger.kernel.org>, "Ingo Molnar"
> <mingo@kernel.org>, "Rusty Russell" <rusty@rustcorp.com.au>, "Frederic Weisbecker" <fweisbec@gmail.com>, "Andrew
> Morton" <akpm@linux-foundation.org>
> Sent: Wednesday, February 26, 2014 3:59:26 AM
> Subject: Re: [RFC][PATCH] tracing: Warn and notify if tracepoints are not loaded due to module taint
>
> On Tue, Feb 25, 2014 at 07:49:26PM -0500, Steven Rostedt wrote:
> > > > - if (mod->taints & ~((1 << TAINT_OOT_MODULE) | (1 << TAINT_CRAP)))
> > > > + if (WARN_ONCE(mod->taints & ~((1 << TAINT_OOT_MODULE) | (1 <<
> > > > TAINT_CRAP)),
> > > > + "Module is tainted, disabling tracepoints"))
>
> > I originally had that with a simple WARN() instead of WARN_ONCE(), but
> > if you have that config which makes all modules not have sigs correct,
> > it spits out tens of these warnings and can cause more panic in users
> > than it deserves. I then switched it to WARN_ONCE(), and then thought,
> > that if it does it only once for the first module, it wont print the
> > warning again for the other affected modules. That means it may confuse
> > the user if they see a module had that warning, but the module they are
> > trying to trace isn't working either.
> >
> > I then figured it would be good to remove the module name and just
> > state a general "Module is tainted, disabling tracepoints" and if the
> > user notices that the module isn't working, and then looks at their
> > dmesg, they'll see this message and just assume it was the module that
> > wasn't working.
> >
> > Make sense?
>
> How about instead of a WARN, you use a normal KERN_ERR printk(). There's
> no point to the entire WARN state dump, that's needlessly verbose.
>
> When you have a normal error print you can have as many as are required
> and put the mod name back in.
The good old printk KERN_ERR is a very good idea. I agree that WARN() is
too verbose for our needs here.
Thanks,
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
next prev parent reply other threads:[~2014-02-26 12:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-26 0:15 [RFC][PATCH] tracing: Warn and notify if tracepoints are not loaded due to module taint Steven Rostedt
2014-02-26 0:39 ` Mathieu Desnoyers
2014-02-26 0:49 ` Steven Rostedt
2014-02-26 8:59 ` Peter Zijlstra
2014-02-26 12:48 ` Mathieu Desnoyers [this message]
2014-02-26 16:15 ` Steven Rostedt
2014-02-26 17:24 ` Mathieu Desnoyers
2014-02-26 18:46 ` 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=192956891.30659.1393418892222.JavaMail.zimbra@efficios.com \
--to=mathieu.desnoyers@efficios.com \
--cc=akpm@linux-foundation.org \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=rusty@rustcorp.com.au \
/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.