This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Instrumenting context-switching
Mike Mason wrote:
> What kernel version are you using? If your using 2.6.24-rc1 then kernel markers are available.
> You can place a static marker (as shown in the patch below), rebuild and reboot the kernel,
> then access the probe point via a SystemTap script (as shown in the script below the patch).
FYI, from 2.6.24-rc1, you can instrument kprobe on __switch_to even if it runs on x86-64,
because the kretprobe-blacklist is merged.
Thanks,
--
Masami Hiramatsu
Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division
e-mail: mhiramat@redhat.com, masami.hiramatsu.pt@hitachi.com