GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSW / V3-0-1 > lsw / rhel6-32
#include <ITC/ITC_pubdefs.h>
#include <TRC/TRC_pubdefs.h>
Functions | |
unsigned int | LSW_canMonitor (ITC_NodeID nid) |
Test whether monitor records are available for node nid. | |
unsigned int | LSW_differMonitor (ITC_NodeID nid, TRC_Monitor *old, TRC_Top *top) |
Calculate a differential monitoring structure. | |
unsigned int | LSW_initialize (unsigned int rate) |
Initialize the LSW tracing facility. | |
unsigned int | LSW_start (void) |
Start the mLSW task. |
CVS $Id: LSW_pubdefs.h,v 1.5 2011/03/29 20:50:12 apw Exp $
unsigned int LSW_canMonitor | ( | ITC_NodeID | nid | ) |
Test whether monitor records are available for node nid.
nid | (in) Node ID |
0 | Records are not available | |
1 | Records are available |
References _LSW_Monitor::cnt, _LSW_Control::latest, LSW_CTL_STARTED, LSW_lcb, and _LSW_Control::state.
unsigned int LSW_differMonitor | ( | ITC_NodeID | nid, | |
TRC_Monitor * | old, | |||
TRC_Top * | top | |||
) |
Calculate a differential monitoring structure.
nid | (in) Node ID | |
old | (in) Previous sample | |
top | (in) Output destination of difference |
All the real work is done by a TRC routine that knows how to do this.
References LSW_copyMonitor(), LSW_CTL_STARTED, LSW_lcb, and _LSW_Control::state.
unsigned int LSW_initialize | ( | unsigned int | rate | ) |
Initialize the LSW tracing facility.
rate | (in) Rate of forced task switches (milliseconds) (default: 1000) |
References initializeCyclic(), initializeMonitor(), initializeTask(), LSW_CTL_BROKEN, LSW_CTL_INITIALIZED, LSW_CTL_UNINITIALIZED, _LSW_Control::mtx, _LSW_Control::rwi, and _LSW_Control::state.
unsigned int LSW_start | ( | void | ) |
Start the mLSW task.
LSW_start() starts the mLSW task
References _LSW_Control::itc, LSW_CTL_BROKEN, LSW_CTL_INITIALIZED, LSW_CTL_STARTING, _LSW_Control::mtx, _LSW_Control::priority, snapStart(), and _LSW_Control::state.