[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1251270092.7538.1226.camel@twins>
Date: Wed, 26 Aug 2009 09:01:32 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Li Zefan <lizf@...fujitsu.com>
Cc: Ingo Molnar <mingo@...e.hu>, Steven Rostedt <rostedt@...dmis.org>,
Frederic Weisbecker <fweisbec@...il.com>,
LKML <linux-kernel@...r.kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
Subject: Re: [PATCH] tracing/profile: Fix profile_disable vs module_unload
On Wed, 2009-08-26 at 08:46 +0200, Peter Zijlstra wrote:
> Aahh, I see the bug, its only ftrace that knows about the module, not
> tracepoints themselves, _that_ needs fixing.
You could possibly do something like:
struct module *tp_mod = __module_address(&some_tp_symbol);
struct module *cb_mod = __module_text_address(func);
if (tp_mod && tp_mod != cb_mod) {
ret = try_get_module(tp_mod);
if (ret)
goto fail;
}
in register_trace_##name() or thereabout.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists