Instrumenting context switches

Stone, Joshua I joshua.i.stone@intel.com
Thu Nov 30 15:31:00 GMT 2006


On Wednesday, November 29, 2006 3:26 PM, Perry Cheng wrote:
> Using some example code, I tried to instrument context switching by
> adding a probe to the method __switch_to.  Some documentation had
> suggested that certain versions of the systemtap could not handle
> instrumenting context_switch.

The problems with resolving the context_switch function have been fixed
for a while, but there's still sometimes issues accessing the parameters
of inline functions.  See bugzilla #1155.
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1155

Using __switch_to is not an option on all platforms -- on IA64 it is a
macro, and on x86_64 it is blacklisted (bz2086).


Josh



More information about the Systemtap mailing list