GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > IMM / V0-3-2

Constituent: test_rbm     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

RBM_testStats.c File Reference

Test statistics gathering. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "PBS/FFS.ih"
#include "PBS/MBA.h"
#include "PBS/TOC.h"
#include "PBS/TOV.h"
#include "PBS/WCT.h"
#include "MSG/MSG_pubdefs.h"
#include "IMM/RBM_pubdefs.h"
#include "IMM/RBM_msgs.h"
#include "RBM_prvdefs.h"
#include "RBM_tstdefs.h"

Include dependency graph for RBM_testStats.c:


Defines

#define RBM_L_PKTCNT   (8)
#define RBM_L_PKTSIZ   (1024)
#define NOSTART0   ( 0)
#define NOSTART1   ( 1)
#define START0   ( 2)
#define ALLOC0   ( 3)
#define ALLOC1   ( 4)
#define ALLOC2   ( 5)
#define ALLOC3   ( 6)
#define STOP0   ( 7)
#define STOP1   ( 8)
#define STOP2   ( 9)
#define RESTART0   (10)
#define RESTOP0   (11)
#define RESTOP1   (12)
#define DELETE0   (13)
#define RBM_L_TESTS   (14)

Functions

static void testAlloc (void)
 Allocate memory used for statistics sampling.
static void testFree (void)
 Free memory used for statistics sampling.
static unsigned int testStats (void)
 Main routine of a statistics gathering test.
unsigned int RBM_testStats ()
 Driver for the RBM ring statistics gathering tests.

Variables

RBM_RingStat * stats [RBM_L_TESTS]
 Ring statistics.
RBM_RingHist * hists [RBM_L_TESTS]
 Ring histograms.
static const char * s_balloc = "bytes allocated"
 The string "bytes allocated".
static const char * s_bfree = "bytes freed"
 The string "bytes freed".
static const char * s_halloc = "alloc requests (correct size)"
 The string "alloc requests (correct size)".
static const char * s_hother = "alloc requests (other sizes)"
 The string "alloc requests (other sizes)".
static const char * s_hwm_r = "high water mark (since reset)"
 The string "high water mark (since reset)".
static const char * s_hwm_s = "high water mark (since start)"
 The string "high water mark (since start)".
static const char * s_lwm_r = "low water mark (since reset)"
 The string "low water mark (since reset)".
static const char * s_lwm_s = "low water mark (since start)"
 The string "low water mark (since start)".
static const char * s_nalloc = "allocation count"
 The string "allocation count".
static const char * s_nfree = "free count"
 The string "free count".
static const char * s_now = "memory now"
 The string "memory now".
static const char * s_status = "status value"
 The string "status value".
static const char * s_tbeg = "start time"
 The string "start time".
static const char * s_trst = "reset time"
 The string "reset time".
static const char * s_tend = "end time"
 The string "stop time".
static const char * s_tRing = "tRing"
 The string "tRing".

Detailed Description

Test statistics gathering.

CVS $Id: RBM_testStats.c,v 1.3 2005/08/05 01:25:53 apw Exp $
Author:
A.P.Waite

Function Documentation

static unsigned int testStats void   )  [static]
 

Main routine of a statistics gathering test.

testStats() tests statistics gathering


Generated on Wed Dec 5 08:29:50 2007 by  doxygen 1.4.4