GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCM / dev > lcm_siu / rhel4-32
Defines | |
#define | SMON_MAXID_TIMEID (3) |
maximum number of timers run concurrently, timeId is 0 to SMON_MAXID_TIMEID | |
#define | SMON_MASK_LCB 0x1 |
mask for statMask in SMON_setTimer, this enabled LCB statistics | |
#define | SMON_MASK_EBM 0x2 |
mask for statMask in SMON_setTimer, this enabled EBMB statistics | |
#define | SMON_OP_MASK_NOCOMPRESS 0x1 |
mask for optionMask in SMON_setTimer, this disabled compression | |
#define | SMON_OP_MASK_RESET 0x2 |
mask for optionMask in SMON_setTimer, this enabled reset stats on each sample | |
Functions | |
unsigned int | SMON_init (int numQueuedSends) |
Setup module to monitor the LCB and send stats to the SSR. | |
unsigned int | SMON_start () |
start <LCB module by starting up fork task and timer | |
void | SMON_stop () |
close SMON modules and stop CSSR task | |
unsigned int | SMON_setTimer (int timeId, unsigned int statMask, int option, int timeLenSec, unsigned int timeSampleMilliSec) |
setup a timer to collect stats |
CVS $Id: SMON.h,v 1.1 2005/12/21 00:19:43 ebacho Exp $
unsigned int SMON_init | ( | int | numQueuedSends | ) |
Setup module to monitor the LCB and send stats to the SSR.
numQueuedSends | number of requested that will be queued to CSSR task |
References CSSR_forkBuffSizeof(), LCM_STATSSIU_TLM_APID, SMON_MAX_PACKET_SIZE, and STATS_LSF_DATAGRAM_VER.
Referenced by LCM_SMONInitialize().
unsigned int SMON_setTimer | ( | int | timeId, | |
unsigned int | statMask, | |||
int | option, | |||
int | timeLenSec, | |||
unsigned int | timeSampleMilliSec | |||
) |
setup a timer to collect stats
timeId | timer to control (0 to SMON_MAXID_TIMEID-1) | |
statMask | mask of which stats to collect on this timer | |
option | 1=noCompress,2=resetOnSample | |
timeLenSec | -1=forever,0=disabled,otherwise length of sampling in sec | |
timeSampleMilliSec | time between stat samples in milliSec |
References SMON_MAXID_TIMEID.
Referenced by LCM_Stats_common().
unsigned int SMON_start | ( | ) |
start <LCB module by starting up fork task and timer
References CSSR_init(), CSSR_ssrRingOverhead(), and SMON_MAX_PACKET_SIZE.
Referenced by LCM_SMONTaskInitialize().
void SMON_stop | ( | ) |
close SMON modules and stop CSSR task
References CSSR_stop(), and SMON_MAXID_TIMEID.
Referenced by LCM_shutdown().