mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Peter Zijlstra <peterz@infradead.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 11:15:42 -0500	[thread overview]
Message-ID: <20140226111542.15657cd6@gandalf.local.home> (raw)
In-Reply-To: <192956891.30659.1393418892222.JavaMail.zimbra@efficios.com>

On Wed, 26 Feb 2014 12:48:12 +0000 (UTC)
Mathieu Desnoyers <mathieu.desnoyers@efficios.com> wrote:

> > 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.

Actually, it's not so bad for the WARN() after my last patch to only
allocate (or even process tracepoints) if mod->num_tracepionts is
greater than zero. I didn't realize you were wasting memory for all
modules that were loaded.

My fear with the KERN_ERR is that it wont be noticeable enough. Where
as a stack dump is something that will catch people's attention.

And as Rusty has said, if you are loading a module that is forced, or
something strange, it is broken. The failure of loading the tracepoints
of a module is a bug if the module happens to have tracepoints.

After the MOD_SIG fix, any failure should be a big banner bug. Either
they are using a forced module with tracepoints that should not be
loaded. Or they have tracepoints is a non-GPL module (which is also a
big no-no).

-- Steve

  reply	other threads:[~2014-02-26 16:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-26  0:15 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
2014-02-26 16:15         ` Steven Rostedt [this message]
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=20140226111542.15657cd6@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=akpm@linux-foundation.org \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®