GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > IMM / V0-3-2
Constituent: test_fpm     Tag: rad750
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "PBS/FFS.ih"
#include "PBS/FPA.h"
#include "PBS/MBA.h"
#include "PBS/TOC.h"
#include "PBS/TOV.h"
#include "PBS/WCT.h"
#include "MSG/MSG_pubdefs.h"
#include "IMM/FPM_pubdefs.h"
#include "IMM/FPM_msgs.h"
#include "FPM_prvdefs.h"
#include "FPM_tstdefs.h"
Include dependency graph for FPM_testStats.c:
Defines | |
#define | FPM_L_PKTCNT (8) |
#define | FPM_L_PKTSIZ (4) |
#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 | FPM_L_TESTS (14) |
Functions | |
static void | testAlloc (FPM_Pool *pcb) |
Allocate memory used for statistics sampling. | |
static void | testFree (FPM_Pool *pcb) |
Free memory used for statistics sampling. | |
static unsigned int | testStats (void) |
Main routine of a statistics gathering test. | |
unsigned int | FPM_testStats () |
Driver for the FPM pool statistics gathering tests. | |
Variables | |
FPM_PoolStat * | stats [FPM_L_TESTS] |
Pool statistics. | |
FPM_PoolHist * | hists [FPM_L_TESTS] |
Pool histograms. | |
static const char * | s_alloc = "packets allocated" |
The string "packets allocated". | |
static const char * | s_free = "packets freed" |
The string "packets freed". | |
static const char * | s_halloc = "alloc requests (correct allocator)" |
The string "alloc requests (correct allocator)". | |
static const char * | s_hother = "alloc requests (other allocators)" |
The string "alloc requests (other allocators)". | |
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_now = "packets now" |
The string "packets now". | |
static const char * | s_status = "status value" |
The string "status value". | |
static const char * | s_siz = "packet size" |
The string "packet size". | |
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_tPool = "tPool" |
The string "tPool". |
CVS $Id: FPM_testStats.c,v 1.2 2005/03/25 01:01:41 apw Exp $
|
Main routine of a statistics gathering test. testStats() tests statistics gathering |