tracepoints/module: Fix disabling tracepoints with taint CRAP or OOT
authorSteven Rostedt <srostedt@redhat.com>
Sat, 14 Jan 2012 02:40:59 +0000 (21:40 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 00:13:52 +0000 (16:13 -0800)
commit8962e9fcab14954ac4489089827e24e8c29f7038
tree83498709e603c05d7b4a30ce5b9d7c9debb0423c
parent8f3ceefaed1493edfbd622026bced706055b8318
tracepoints/module: Fix disabling tracepoints with taint CRAP or OOT

commit c10076c4304083af15a41f6bc5e657e781c1f9a6 upstream.

Tracepoints are disabled for tainted modules, which is usually because the
module is either proprietary or was forced, and we don't want either of them
using kernel tracepoints.

But, a module can also be tainted by being in the staging directory or
compiled out of tree. Either is fine for use with tracepoints, no need
to punish them.  I found this out when I noticed that my sample trace event
module, when done out of tree, stopped working.

Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Dave Jones <davej@redhat.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/tracepoint.c