adding statements in alias definition as epilogue
Frank Ch. Eigler
fche@redhat.com
Mon Apr 3 16:00:00 GMT 2006
Li Guanglei <guanglei@cn.ibm.com> writes:
> [...] What I want is to let user specify whether to log backtrace in his
> scripts, like the following:
> stap -e "probe addevent.tskdispatch.cpuidle { backtrace=1 } [...]
> But unfortunately, it won't work because "backtrace=1" is added after
> "log_cpuidle_tracedata(HOOKID_TASK_CPUIDLE, backtrace)". [...]
You can have two alias definitions:
probe addevent.tskdispatch.cpuidle.backtrace = addevent.tskdispatch.cpuidle {
backtrace = 1
}
probe addevent.tskdispatch.cpuidle = .... {
if (backtrace) log_more ();
}
- FChE
More information about the Systemtap
mailing list