GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MON / V0-2-0

Constituent: mon_unit_test     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

mon_test_perf.c File Reference

Test the MON package performance monitor functions. More...

#include <string.h>
#include "MON/MON_msgs.h"
#include "MON/MON_pubdefs.h"
#include "MSG/MSG_pubdefs.h"
#include "mon_test_perf.h"
#include "mon_unit_test.h"

Include dependency graph for mon_test_perf.c:

Include dependency graph

Data Structures

struct  _mon_Perf_Info
 MON perf test state. More...


Typedefs

typedef _mon_Perf_Info mon_Perf_Info
 Typedef for _mon_Perf_Info.


Functions

int mon_initialize_wrap (test_Test_Descriptor *td_p, int id, mon_Perf_Info *info_p)
 Call MON_initialize() and validate the results.

int mon_shutdown_wrap (test_Test_Descriptor *td_p, int id, mon_Perf_Info *info_p)
 Call MON_shutdown() and validate the results.

int mon_start_wrap (test_Test_Descriptor *td_p, int id, mon_Perf_Info *info_p)
 Call MON_start() and validate the results.

int mon_stop_wrap (test_Test_Descriptor *td_p, int id, mon_Perf_Info *info_p)
 Call MON_stop() and validate the results.

int mon_start_perf_mon_wrap (test_Test_Descriptor *td_p, int id, mon_Perf_Info *info_p)
 Call MON_start_perf_mon() and validate the results.

int mon_stop_perf_mon_wrap (test_Test_Descriptor *td_p, int id, mon_Perf_Info *info_p)
 Call MON_stop_perf_mon() and validate the results.

int mon_collect_perf_stats_wrap (test_Test_Descriptor *td_p, int id, mon_Perf_Info *info_p)
 Call MON_collect_perf_stats() and validate the results.

void mon_set_min_max (unsigned int count, unsigned int num_ms, unsigned int *min_p, unsigned int *max_p)
 Set min and max expected performance monitor statistics.

void mon_set_stats (MON_Perf_Stats *min_p, MON_Perf_Stats *max_p, unsigned int count_1, unsigned int count_2, unsigned int count_3, unsigned int count_4, unsigned int num_ms)
 Set min and max expected performance monitor statistics.

void mon_test_perf (test_Test_Descriptor *td_p, const unsigned int bit_mask)
 Unit test for MON performance monitor functions.


Detailed Description

Test the MON package performance monitor functions.

**  CVS $Id: mon_test_perf.c,v 1.3 2005/03/30 19:55:18 dmay Exp $
**  

Function Documentation

int mon_collect_perf_stats_wrap test_Test_Descriptor td_p,
int  id,
mon_Perf_Info info_p
[static]
 

Call MON_collect_perf_stats() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to perf test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mon_initialize_wrap test_Test_Descriptor td_p,
int  id,
mon_Perf_Info info_p
[static]
 

Call MON_initialize() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to perf test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void mon_set_min_max unsigned int  count,
unsigned int  num_ms,
unsigned int *  min_p,
unsigned int *  max_p
[static]
 

Set min and max expected performance monitor statistics.

Parameters:
count Expected per-second counter value.
num_ms Number of milliseconds of stats collection.
min_p Pointer to min expected value.
max_p Pointer to max expected value.
Returns:
Nothing.

void mon_set_stats MON_Perf_Stats min_p,
MON_Perf_Stats max_p,
unsigned int  count_1,
unsigned int  count_2,
unsigned int  count_3,
unsigned int  count_4,
unsigned int  num_ms
[static]
 

Set min and max expected performance monitor statistics.

Parameters:
min_p Pointer to buffer of min expected stats values.
max_p Pointer to buffer of max expected stats values.
count_1 Expected per-second counter 1 value.
count_2 Expected per-second counter 2 value.
count_3 Expected per-second counter 3 value.
count_4 Expected per-second counter 4 value.
num_ms Number of milliseconds of stats collection.
Returns:
Nothing.

Here is the call graph for this function:

int mon_shutdown_wrap test_Test_Descriptor td_p,
int  id,
mon_Perf_Info info_p
[static]
 

Call MON_shutdown() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to perf test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mon_start_perf_mon_wrap test_Test_Descriptor td_p,
int  id,
mon_Perf_Info info_p
[static]
 

Call MON_start_perf_mon() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to perf test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mon_start_wrap test_Test_Descriptor td_p,
int  id,
mon_Perf_Info info_p
[static]
 

Call MON_start() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to perf test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mon_stop_perf_mon_wrap test_Test_Descriptor td_p,
int  id,
mon_Perf_Info info_p
[static]
 

Call MON_stop_perf_mon() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to perf test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mon_stop_wrap test_Test_Descriptor td_p,
int  id,
mon_Perf_Info info_p
[static]
 

Call MON_stop() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to perf test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void mon_test_perf test_Test_Descriptor td_p,
const unsigned int  bit_mask
 

Unit test for MON performance monitor functions.

Parameters:
td_p Pointer to test descriptor.
bit_mask Bitmask ID for this subtest.
Returns:
Nothing.

Here is the call graph for this function:


Generated on Sun Jul 17 09:44:29 2005 by doxygen 1.3.3