lkml.org 
[lkml]   [2009]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] tracing/profile: Fix profile_disable vs module_unload
From
Date
On Tue, 2009-08-25 at 12:47 +0200, Peter Zijlstra wrote:
> On Tue, 2009-08-25 at 12:39 +0200, Ingo Molnar wrote:
>
> > > Do you really wish to burden every tracepoint user with the extra
> > > logic needed to deal with modules?
> >
> > Not necessarily - i'm just outlining why i think that the 'dont
> > allow subsystems to utilize tracepoint callbacks' is a restriction
> > we should not live with voluntarily.
>
> Well, unless someone has a bright idea that's what it comes down to.

OK, I still think modules probing their own tracepoints its stupid [*],
but what you could do is iterate the tracepoint's callback list and see
if it has a callback outside of the module code section and then fail
the unload.

[*] in the really utterly fundamentally wrong stupid class.


\
 
 \ /
  Last update: 2009-08-25 16:57    [W:0.055 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site