GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > IMM / V0-1-0
Constituent: test_rbm     Tag: linux-gcc
#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) |
Normalization of allocation/free counts. | |
#define | RBM_L_PKTSIZ (1024) |
Total size of ring buffer. | |
#define | NOSTART0 ( 0) |
Case nostart 0. | |
#define | NOSTART1 ( 1) |
Case nostart 1. | |
#define | START0 ( 2) |
Case start 0. | |
#define | ALLOC0 ( 3) |
Case alloc 0. | |
#define | ALLOC1 ( 4) |
Case alloc 1. | |
#define | ALLOC2 ( 5) |
Case alloc 2. | |
#define | ALLOC3 ( 6) |
Case alloc 3. | |
#define | STOP0 ( 7) |
Case stop 0. | |
#define | STOP1 ( 8) |
Case stop 1. | |
#define | STOP2 ( 9) |
Case stop 2. | |
#define | RESTART0 (10) |
Case restart 0. | |
#define | RESTOP0 (11) |
Case restop 0. | |
#define | RESTOP1 (12) |
Case restop 1. | |
#define | DELETE0 (13) |
Case delete 0. | |
#define | RBM_L_TESTS (14) |
Number of test cases. | |
Functions | |
void | testAlloc (void) |
Allocate memory used for statistics sampling. | |
void | testFree (void) |
Free memory used for statistics sampling. | |
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. | |
const char * | s_balloc = "bytes allocated" |
The string "bytes allocated". | |
const char * | s_bfree = "bytes freed" |
The string "bytes freed". | |
const char * | s_halloc = "alloc requests (correct size)" |
The string "alloc requests (correct size)". | |
const char * | s_hother = "alloc requests (other sizes)" |
The string "alloc requests (other sizes)". | |
const char * | s_hwm_r = "high water mark (since reset)" |
The string "high water mark (since reset)". | |
const char * | s_hwm_s = "high water mark (since start)" |
The string "high water mark (since start)". | |
const char * | s_lwm_r = "low water mark (since reset)" |
The string "low water mark (since reset)". | |
const char * | s_lwm_s = "low water mark (since start)" |
The string "low water mark (since start)". | |
const char * | s_nalloc = "allocation count" |
The string "allocation count". | |
const char * | s_nfree = "free count" |
The string "free count". | |
const char * | s_now = "memory now" |
The string "memory now". | |
const char * | s_status = "status value" |
The string "status value". | |
const char * | s_tbeg = "start time" |
The string "start time". | |
const char * | s_trst = "reset time" |
The string "reset time". | |
const char * | s_tend = "end time" |
The string "stop time". | |
const char * | s_tRing = "tRing" |
The string "tRing". |
CVS $Id: RBM_testStats.c,v 1.2 2005/03/25 01:01:41 apw Exp $
|
Main routine of a statistics gathering test. testStats() tests statistics gathering |
Here is the call graph for this function: