"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