GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCM / dev > lcm_siu / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

SMON.c File Reference

Monitor LCB and other stats and send results to SSR. More...

#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


Detailed Description

Monitor LCB and other stats and send results to SSR.

Author:
Ed BAcho - ebacho@slac.stanford.edu

    CVS $Id: SMON.c,v 1.4 2011/03/30 23:01:16 apw Exp $

SYNOPSIS
This utility collects LCB and other stats at a given time interval and sends it in to the SSR.

Function Documentation

unsigned int SMON_init ( int  numQueuedSends  ) 

Setup module to monitor the LCB and send stats to the SSR.

Parameters:
numQueuedSends number of requested that will be queued to CSSR task
Returns:
status

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

Parameters:
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
Returns:
status

References SMON_MAXID_TIMEID.

Referenced by LCM_Stats_common().

unsigned int SMON_start (  ) 

start <LCB module by starting up fork task and timer

Returns:
status

References CSSR_init(), CSSR_ssrRingOverhead(), and SMON_MAX_PACKET_SIZE.

Referenced by LCM_SMONTaskInitialize().

int SMON_stats (  ) 

print stats on SMON module

Returns:
status

unsigned int SMON_stop (  ) 

close SMON modules and stop CSSR task

Returns:
none

References CSSR_stop(), and SMON_MAXID_TIMEID.

Referenced by LCM_shutdown().


Generated on Wed Mar 30 16:05:44 2011 by  doxygen 1.5.8