This is the mail archive of the systemtap@sources.redhat.com mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: reentrant probes


Hi -

> > [...]  I think it will be quite useful to allow renentrancy in
> > probes.  Not sure why would you want to restrict this.  [...]
> 
> It seems hazardous [...]

I have a different example of the hazards of reentrant probe handling.
Consider a single systemtap session, running

        global a        
        probe kernel.function("foo") { ... a[0] ++ ... }
        probe perfcounter.tlbmiss(20) { ... a[0] ++ ... }

If the perfcounter interrupt is allowed to be taken while the "foo"
probe handler is running and has a lock on the "a" array, then we can
deadlock.


- FChE

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]