This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: prompt script exiting
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: "Mao, Bibo" <bibo dot mao at intel dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: 12 Dec 2005 10:26:39 -0500
- Subject: Re: prompt script exiting
- References: <9FBCE015AF479F46B3B410499F3AE05B08981C@pdsmsx405>
"Mao, Bibo" <bibo.mao@intel.com> writes:
> [...] I do know whether judge the value of _stp_exit flag just
> before kprobe/kretprobe handler running. And then when it is set as
> 1, kprobe/kretprobe handler return immediately [...]
The _stp_exit flag could be associated with the translator's overall
session_state flag, which has an STAP_SESSION_STOPPING value. This is
used during that phase when the "end" probes are run, and causes other
probes to return early. The tapset exit() function could set that in
addition to calling the runtime function.
- FChE