Tracking vm activity

Jun Koi junkoi2004@gmail.com
Thu May 10 10:38:00 GMT 2007


On 08 May 2007 10:15:43 -0400, Frank Ch. Eigler <fche@redhat.com> wrote:
> "Jun Koi" <junkoi2004@gmail.com> writes:
>
> > [...]
> > I found this idea interesting. However, what do you think if the
> > machine is SMP, or kernel is preemptive capable?
> > [...]
> > I cannot figure out how to correlate "enter" and "exit" function
> > events in SMP or preemptive case.
>
> In systemtap, a .return probe can refer to parameters of the
> *corresponding* .call (function entry) event.  The parameters are
> saved in an auxiliary lookup table, indexed by thread-id and nesting
> level.  SMP or preemption should not cause any problem.

Ah, the thread-id idea is clear to me. But may you explain a little
bit about the "nesting level"??

Thanks you,
Jun



More information about the Systemtap mailing list