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_loading.c File Reference

Test the MON package CPU loading functions. More...

#include <string.h>
#include "MON/MON_msgs.h"
#include "MON/MON_pubdefs.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/MBA.h"
#include "PBS/TASK.h"
#include "mon_test_loading.h"
#include "mon_unit_test.h"

Include dependency graph for mon_test_loading.c:

Include dependency graph

Data Structures

struct  _mon_Loading_Info
 MON loading test state. More...


Typedefs

typedef _mon_Loading_Info mon_Loading_Info
 Typedef for _mon_Loading_Info.


Functions

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

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

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

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

int mon_get_loading_wrap (test_Test_Descriptor *td_p, int id, mon_Loading_Info *info_p)
 Call MON_get_loading() and validate the results.

int mon_stop_load_task (test_Test_Descriptor *td_p, int id, int task_index, mon_Loading_Info *info_p)
 Stop a task that is consuming CPU cycles.

int mon_allocate (test_Test_Descriptor *td_p, mon_Loading_Info *info_p)
 Allocate memory for the CPU loading tests.

int mon_free (test_Test_Descriptor *td_p, mon_Loading_Info *info_p)
 Free memory from the CPU loading tests.

void mon_set_stats (MON_Load_Stats *stats_p, unsigned int avg_prev_sec, unsigned int avg_prev_min, unsigned int min_prev_min, unsigned int max_prev_min)
 Set expected CPU loading values.

void mon_test_loading (test_Test_Descriptor *td_p, const unsigned int bit_mask)
 Unit test for MON CPU loading functions.


Detailed Description

Test the MON package CPU loading functions.

**  CVS $Id: mon_test_loading.c,v 1.3 2005/03/30 20:10:09 dmay Exp $
**  

Function Documentation

int mon_allocate test_Test_Descriptor td_p,
mon_Loading_Info info_p
[static]
 

Allocate memory for the CPU loading tests.

Parameters:
td_p Pointer to test descriptor.
info_p Pointer to loading test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mon_free test_Test_Descriptor td_p,
mon_Loading_Info info_p
[static]
 

Free memory from the CPU loading tests.

Parameters:
td_p Pointer to test descriptor.
info_p Pointer to loading test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mon_get_loading_wrap test_Test_Descriptor td_p,
int  id,
mon_Loading_Info info_p
[static]
 

Call MON_get_loading() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to loading 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_Loading_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 loading test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void mon_set_stats MON_Load_Stats stats_p,
unsigned int  avg_prev_sec,
unsigned int  avg_prev_min,
unsigned int  min_prev_min,
unsigned int  max_prev_min
[static]
 

Set expected CPU loading values.

Parameters:
stats_p Pointer to statistics buffer.
avg_prev_sec Expected average for previous second.
avg_prev_min Expected average for previous minute.
min_prev_min Expected minimum for previous minute.
max_prev_min Expected maximum for previous minute.
Returns:
Nothing.

int mon_shutdown_wrap test_Test_Descriptor td_p,
int  id,
mon_Loading_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 loading 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_Loading_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 loading test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mon_stop_load_task test_Test_Descriptor td_p,
int  id,
int  task_index,
mon_Loading_Info info_p
[static]
 

Stop a task that is consuming CPU cycles.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
task_index Index of task to stop.
info_p Pointer to loading 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_Loading_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 loading test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void mon_test_loading test_Test_Descriptor td_p,
const unsigned int  bit_mask
 

Unit test for MON CPU loading 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:43:57 2005 by doxygen 1.3.3