GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MON / V0-3-0
Constituent: mon     Tag: linux-gcc
#include "PBS/TASK.h"
Include dependency graph for MON_pubdefs.h:
This graph shows which files directly or indirectly include this file:
** CVS $Id: MON_pubdefs.h,v 1.4 2005/08/08 23:01:41 dmay Exp $ **
Defines the public interface to the functions found in the MON package.
|
|
Events from set 2 that can be counted.
|
|
Events from set 3 that can be counted.
|
|
Events from set 4 that can be counted.
|
|
Time base register bit selections (for 0-to-1 bit transition events).
|
|
Collect performance monitor stats for a specified period of time. This function configures and starts the CPU performance monitor facility and establishes a wake-up timer that expires after the specified amount of time. The handler for the wake-up timer stops the CPU event counters and triggers a call to the specified callback function. The callback function is executed in the context of the MON polling task. See also the MON_start_perf_mon() and MON_stop_perf_mon() functions. Note that all event counters are cleared to zero before counting is started. This means that if the MON_EVENT_x_HOLD event is selected for a counter, its value will be set to 0 and held at that value during the collection period.
|
|
Get current CPU loading statistics. This function returns a snapshot of the CPU loading statistics for the previous minute of operation.
|
|
Initialize the MON functions. This function initializes the MON package and transitions it to the INITIALIZED state. It should be the first MON function called when using the MON package.
|
|
Set the hardware watchdog timer.
|
|
Shutdown the MON functions. This function shuts down the MON package and transitions it back to the UNINITIALIZED state. It can be called only if the current MON state is INITIALIZED, INIT_FAIL, or SHUTDOWN_FAIL. This function should be called after MON_stop() when the MON package is no longer needed.
|
|
Start the MON functions. This function starts the various MON tasks and transitions MON to the STARTED state. It can be called only if the current MON state is INITIALIZED. This function should be called after MON_initialize() when using the MON package.
|
|
Start CPU performance monitoring. This function configures and starts the CPU performance monitor facility, which counts various CPU events. If started with this function, the CPU will count events until MON_stop_perf_mon() is called. See also the MON_collect_perf_stats() function, which counts CPU events for a specified period of time. Note that all event counters are cleared to zero before counting is started. This means that if the MON_EVENT_x_HOLD event is selected for a counter, its value will be set to 0 and held at that value during the collection period.
|
|
Start the MON functions using the CPU_DB server. This function is a wrapper for MON_start. It forces MON_start to use the CPU_DB server to determine the attributes for the POLL and IDLE tasks.
|
|
Stop the MON functions. This function stops the various MON tasks and transitions MON back to the INITIALIZED state. It can be called only if the current MON state is STARTED, START_FAIL, or STOP_FAIL. This function should be called before MON_shutdown() when the MON package is no longer needed.
|
|
Stop CPU performance monitoring. This function stops the CPU from counting events and returns the current counter values. If the CPU is not actively counting events, the most recent event counter values are returned.
|