instrumenting vs. module loading

William Cohen wcohen@redhat.com
Fri May 13 15:09:00 GMT 2005


Ananth N Mavinakayanahalli wrote:
> Ananth N Mavinakayanahalli wrote:
> 
>> Frank Ch. Eigler wrote:
>>
>> I don't have much idea about in kernel details of module loading and
>> unloading, but I'd imagine we'll encounter "interesting" issues if a
>> different module is loaded in the same text range with such a stray
>> kprobe.
> 
> 
> On more thought, we won't see any such issues - we won't have the 
> breakpoint hit at all - the whole text gets overlaid right?
> 
> Doh! what was I thinking earlier.. need more coffee :-)
> 
> Ananth
> 
> 
> 

All is fine until the clean up code tries to unregister the kprobe and 
it scribbles over that location in memory which no longer has the 
breakpoint.

-will



More information about the Systemtap mailing list