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

CPU performance monitor. More...

#include "MON/MON_msgs.h"
#include "MON/MON_pubdefs.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/TOV.h"
#include "PBS/WUT.h"
#include "MON_perf.h"
#include "MON_perf_regs.h"

Include dependency graph for MON_perf.c:


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.
static WUT_cb_status mon_perf_wut_handler (void *prm, WUT_tmr *wut)
 Handle end-of-collection tasks.
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

CPU performance monitor.

**  CVS $Id: MON_perf.c,v 1.2 2005/03/23 18:09:23 dmay Exp $
**  

Provides an interface to the RAD750 performance monitor facility.


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.

WUT_cb_status mon_perf_wut_handler void *  prm,
WUT_tmr *  wut
[static]
 

Handle end-of-collection tasks.

Parameters:
prm Pointer to PERF state.
wut Pointer to wake-up timer.
Returns:
WUT status.


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