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

Constituent: mon     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

MON_perf.h File Reference

Interface to the CPU performance monitor. More...

#include "MON/MON_pubdefs.h"
#include "PBS/WUT.h"

Include dependency graph for MON_perf.h:

This graph shows which files directly or indirectly include this file:


Data Structures

struct  _MON_Perf_Control
 Performance monitor control state. More...

Typedefs

typedef _MON_Perf_Control MON_Perf_Control
 Typedef for _MON_Perf_Control.

Functions

unsigned int MON_perf_init (MON_Perf_Control *ctl_p)
 Initialize the performance monitor interface.
unsigned int MON_perf_shutdown (MON_Perf_Control *ctl_p)
 Shutdown the performance monitor interface.
unsigned int MON_perf_start (MON_Perf_Control *ctl_p, MON_Perf_Config *cfg_p)
 Clear performance monitor counters and start counting events.
unsigned int MON_perf_stop (MON_Perf_Control *ctl_p, MON_Perf_Stats *stats_p)
 Stop counting performance monitor events.
unsigned int MON_perf_collect (MON_Perf_Control *ctl_p, MON_Perf_Config *cfg_p, unsigned int time_us, MON_Perf_Stats *stats_p, MON_Perf_Cb cb, void *cb_parm)
 Collect performance monitor statistics for a period of time.
unsigned int MON_perf_poll (MON_Perf_Control *ctl_p)
 Poll for performance monitor activity.

Detailed Description

Interface to the CPU performance monitor.

**  CVS $Id: MON_perf.h,v 1.2 2005/08/08 23:08:51 dmay Exp $
**  

Defines the interface to the functions found in MON_perf.c.


Function Documentation

unsigned int MON_perf_collect MON_Perf_Control ctl_p,
MON_Perf_Config cfg_p,
unsigned int  time_us,
MON_Perf_Stats stats_p,
MON_Perf_Cb  cb,
void *  cb_parm
 

Collect performance monitor statistics for a period of time.

Parameters:
ctl_p Pointer to PERF state.
cfg_p Pointer to performance monitor configuration.
time_us Length of time, in microseconds, to collect statistics.
stats_p Pointer to location to return statistics.
cb Function to call when the collection is complete.
cb_parm Parameter to pass to cb function.
Returns:
MSG code.

unsigned int MON_perf_init MON_Perf_Control ctl_p  ) 
 

Initialize the performance monitor interface.

Parameters:
ctl_p Pointer to PERF state.
Returns:
MSG code.

unsigned int MON_perf_poll MON_Perf_Control ctl_p  ) 
 

Poll for performance monitor activity.

Parameters:
ctl_p Pointer to PERF state.
Returns:
MSG code.

unsigned int MON_perf_shutdown MON_Perf_Control ctl_p  ) 
 

Shutdown the performance monitor interface.

Parameters:
ctl_p Pointer to PERF state.
Returns:
MSG code.

unsigned int MON_perf_start MON_Perf_Control ctl_p,
MON_Perf_Config cfg_p
 

Clear performance monitor counters and start counting events.

Parameters:
ctl_p Pointer to PERF state.
cfg_p Pointer to performance monitor configuration.
Returns:
MSG code.

unsigned int MON_perf_stop MON_Perf_Control ctl_p,
MON_Perf_Stats stats_p
 

Stop counting performance monitor events.

Parameters:
ctl_p Pointer to PERF state.
stats_p Pointer to location to monitor statistics.
Returns:
MSG code.


Generated on Wed Dec 5 08:43:53 2007 by  doxygen 1.4.4