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

Test the MON package watchdog functionality. 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_watchdog.h"
#include "mon_unit_test.h"

Include dependency graph for mon_test_watchdog.c:

Include dependency graph

Data Structures

struct  _mon_Watchdog_Info
 MON watchdog test state. More...


Typedefs

typedef _mon_Watchdog_Info mon_Watchdog_Info
 Typedef for _mon_Watchdog_Info.


Functions

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

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

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

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

void * mon_load_task (TASK_parameter parm)
 Consume all CPU cycles.

int mon_start_load_task (test_Test_Descriptor *td_p, int id, mon_Watchdog_Info *info_p)
 Start a task that consumes all CPU cycles.

int mon_stop_load_task (test_Test_Descriptor *td_p, mon_Watchdog_Info *info_p)
 Stop a task that is consuming all CPU cycles.

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

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

void mon_test_watchdog (test_Test_Descriptor *td_p, const unsigned int bit_mask)
 Unit test for MON watchdog functionality.


Detailed Description

Test the MON package watchdog functionality.

**  CVS $Id: mon_test_watchdog.c,v 1.3 2005/03/30 19:56:02 dmay Exp $
**  

Function Documentation

int mon_allocate test_Test_Descriptor td_p,
mon_Watchdog_Info info_p
[static]
 

Allocate memory for the CPU watchdog tests.

Parameters:
td_p Pointer to test descriptor.
info_p Pointer to watchdog 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_Watchdog_Info info_p
[static]
 

Free memory from the CPU watchdog tests.

Parameters:
td_p Pointer to test descriptor.
info_p Pointer to watchdog 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_Watchdog_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 watchdog test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void * mon_load_task TASK_parameter  parm  )  [static]
 

Consume all CPU cycles.

Parameters:
parm Pointer to run flag for this task.
Returns:
MSG code.

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

Here is the call graph for this function:

int mon_start_load_task test_Test_Descriptor td_p,
int  id,
mon_Watchdog_Info info_p
[static]
 

Start a task that consumes all CPU cycles.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to watchdog 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_Watchdog_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 watchdog 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,
mon_Watchdog_Info info_p
[static]
 

Stop a task that is consuming all CPU cycles.

Parameters:
td_p Pointer to test descriptor.
info_p Pointer to watchdog 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_Watchdog_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 watchdog test state.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void mon_test_watchdog test_Test_Descriptor td_p,
const unsigned int  bit_mask
 

Unit test for MON watchdog functionality.

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:51 2005 by doxygen 1.3.3