GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSW / V3-0-1 > lsw / rhel5-32
#include <string.h>
#include <ITC/ITC_pubdefs.h>
#include <MDB/MDB_pubdefs.h>
#include <TRC/TRC_msgs.h>
#include <TRC/TRC_pubdefs.h>
#include <LSW/LSW_msgs.h>
#include <LSW_prvdefs.h>
Functions | |
unsigned int | LSW_canMonitor (ITC_NodeID nid) |
Test whether monitor records are available for node nid. | |
unsigned int | LSW_copyMonitor (ITC_NodeID nid, TRC_Monitor *mon) |
Make a coherent (thread safe) copy of a monitor record. | |
unsigned int | LSW_differMonitor (ITC_NodeID nid, TRC_Monitor *old, TRC_Top *top) |
Calculate a differential monitoring structure. | |
unsigned int | LSW_saveMonitor (LSW_Control *lcb, ITC_NodeID nid, TRC_Monitor *new) |
Save a coherent (thread safe) copy of a monitor record. |
CVS $Id: LSW_monitor.c,v 1.4 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_copyMonitor | ( | ITC_NodeID | nid, | |
TRC_Monitor * | mon | |||
) |
Make a coherent (thread safe) copy of a monitor record.
nid | (in) Node ID | |
mon | (out) Monitor record |
LSW_CANTCOPY | Cannot make a coherent copy | |
LSW_NODENOT | Not a monitored node | |
LSW_NORECORD | Monitor record not available | |
LSW_NOTINIT | LSW system not initialized | |
LSW_PARMNULL | Caller passed a null parameter | |
LSW_SUCCESS | Success |
References _LSW_Monitor::cnt, _LSW_Control::latest, LSW_CTL_STARTED, LSW_lcb, _LSW_Monitor::pnt, and _LSW_Control::state.
Referenced by LSW_differMonitor().
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_saveMonitor | ( | LSW_Control * | lcb, | |
ITC_NodeID | nid, | |||
TRC_Monitor * | new | |||
) |
Save a coherent (thread safe) copy of a monitor record.
lcb | (in) LSW control block | |
nid | (in) Node ID the monitor record applies to | |
new | (in) New monitor record to be saved |
References _LSW_Monitor::cnt, _LSW_Control::latest, _LSW_Monitor::pnt, _LSW_Control::rwi, and _LSW_Control::scratch.
Referenced by control_rx(), and forkTickle().