stp_exit change
Martin Hunt
hunt@redhat.com
Mon Jan 16 09:25:00 GMT 2006
On Mon, 2006-01-16 at 12:49 +0800, Mao, Bibo wrote:
> I do not know whether we can delete atomic_set (&session_state, STAP_SESSION_STOPPING) sentence from runtime/io.c and add this sentence into file tapset/logging.stp like this:
> function exit () %{
> atomic_set (&session_state, STAP_SESSION_STOPPING);
> _stp_exit ();
> %}
That is exactly what the code did before I changed it. I was working
under the assumption that tapsets certainly shouldn't be mucking around
in translator internal state. Frank argued that he prefers that to
having the runtime do it and reverted the change back to what you have
above.
Martin
More information about the Systemtap
mailing list