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: stp_exit change


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 ();
%}


Regards
Bibo,mao

>-----Original Message-----
>From: systemtap-owner@sourceware.org [mailto:systemtap-owner@sourceware.org]
>On Behalf Of Frank Ch. Eigler
>Sent: 2006年1月11日 6:19
>To: Martin Hunt
>Cc: systemtap@sources.redhat.com
>Subject: stp_exit change
>
>Hi -
>
>Can you please justify your change to runtime/io.c and
>tapset/logging.stp?  Moving that line of code to stp_exit may be
>problematic because this function is invoked from more places than the
>exit() script function.  In particular, this change interferes with
>STAP_SESSION_ERROR state handling.
>
>- FChE


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