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


Frank Ch. Eigler wrote:
"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

That sounds like it would operate in the manner that people would expect. Right now there can be a fairly delay between the exit() occuring in the script and the data collection begin shutdown.


What happens if there are two scripts running? Is this flag local to the script or a global? If it is global and there are two systemtap scription running with one of them is exiting, the other script script would also be affected and not collect data.

-Will


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