This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: prompt script exiting


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]