GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LCM / V1-4-4

Constituent: lcm_siu     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

SMON.h File Reference

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

This graph shows which files directly or indirectly include this file:


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

Detailed Description

Monitor LCB and other stats and send results to SSR.

Author:
Ed BAcho - ebacho@slac.stanford.edu
    CVS $Id: SMON.h,v 1.1 2005/12/21 00:19:43 ebacho 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

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

unsigned int SMON_start  ) 
 

start <LCB module by starting up fork task and timer

Returns:
status

void SMON_stop  ) 
 

close SMON modules and stop CSSR task

Returns:
none


Generated on Mon Nov 5 02:24:42 2007 by  doxygen 1.4.4