GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCM / dev > lcm_siu / rhel4-32
#include <string.h>
#include <stdio.h>
#include <PBS/TMR.h>
#include <PBS/MBA.h>
#include <PBS/FPA.h>
#include <PBS/FORK.h>
#include <PBS/WUT.h>
#include <PBS/WCT.h>
#include <ITC/ITC_pubdefs.h>
#include <LCM/LCM_msgs.h>
#include <LCM/LCM_tlmdefs.h>
#include <LCBD/LCBD.h>
#include <LCBD/LCBD_stats.h>
#include <MSG/MSG_pubdefs.h>
#include <CDM/CDM_pubdefs.h>
#include <CPU_DB/CPU_DB_pubdefs.h>
#include <LSF/LSF.h>
#include <LSF/LSF_ids.h>
#include <CSSR.h>
#include <SMON.h>
#include <SMON_ssrdefs.h>
#include <LEM/defs.h>
#include <LEM/list.h>
#include <LEM/encode.h>
#include <LEM/decode.h>
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 | |
int | SMON_stats () |
print stats on SMON module |
CVS $Id: SMON.c,v 1.4 2011/03/30 23:01:16 apw 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().
int SMON_stats | ( | ) |
print stats on SMON module
unsigned int SMON_stop | ( | ) |
close SMON modules and stop CSSR task
References CSSR_stop(), and SMON_MAXID_TIMEID.
Referenced by LCM_shutdown().