Attempting to try out "asynchronous probes" and the current runtime...
William Cohen
wcohen@redhat.com
Mon Jul 11 15:27:00 GMT 2005
Spirakis, Charles wrote:
> All --
>
> I'm playing around with an "asynchronous probe" concept and the current
> runtime using simple os timers (code is below). Anyone have experience
> with task_pt_regs() function? As you can see, I'm trying to grab the
> "current" pt_regs in the home of seeing the eip at the time of the timer
> interrupt, but the data I get is not what I'd hoped.
>
> This is running on a Pentium M laptop with the mm2 kernel,
> CONFIG_PREEMPT_NONE=y, other preemption configs are not set.
>
> -- charles
You might take a look at the fall back timer interrupt mechanism in
OProfile to see how it works. In particular look at the
linux/driver/oprofile/timer_int.c.
I noticed there are a couple things that were i386 specific in the
example, use of regs->eip and task_pt_regs.
-Will
More information about the Systemtap
mailing list