GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> MON / dev > mon / sun-gcc
#include <MON/MON_msgs.h>
#include <MON/MON_pubdefs.h>
#include <MON_perf.h>
#include <MON_perf_regs.h>
#include <MSG/MSG_pubdefs.h>
#include <PBS/TOV.h>
#include <PBS/WUT.h>
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. |
** CVS $Id: MON_perf.c,v 1.3 2011/03/28 23:52:03 russell Exp $ **
Provides an interface to the RAD750 performance monitor facility.
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.
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. |
References _MON_Perf_Control::cb, _MON_Perf_Control::cb_parm, MON_perf_start(), mon_perf_wut_handler(), _MON_Perf_Control::stats_p, _MON_Perf_Control::wut, and _MON_Perf_Control::wut_done.
Referenced by MON_collect_perf_stats().
unsigned int MON_perf_init | ( | MON_Perf_Control * | ctl_p | ) |
Initialize the performance monitor interface.
ctl_p | Pointer to PERF state. |
References _MON_Perf_Control::wut.
Referenced by MON_initialize().
unsigned int MON_perf_poll | ( | MON_Perf_Control * | ctl_p | ) |
Poll for performance monitor activity.
ctl_p | Pointer to PERF state. |
References _MON_Perf_Control::cb, _MON_Perf_Control::cb_parm, MON_perf_stop(), _MON_Perf_Control::running, _MON_Perf_Control::stats_p, and _MON_Perf_Control::wut_done.
Referenced by mon_poll_task().
unsigned int MON_perf_shutdown | ( | MON_Perf_Control * | ctl_p | ) |
Shutdown the performance monitor interface.
ctl_p | Pointer to PERF state. |
References _MON_Perf_Control::wut.
Referenced by MON_shutdown().
unsigned int MON_perf_start | ( | MON_Perf_Control * | ctl_p, | |
MON_Perf_Config * | cfg_p | |||
) |
Clear performance monitor counters and start counting events.
ctl_p | Pointer to PERF state. | |
cfg_p | Pointer to performance monitor configuration. |
References _MON_Perf_Control::config, _MON_Perf_Config::event_1, _MON_Perf_Config::event_2, _MON_Perf_Config::event_3, _MON_Perf_Config::event_4, MON_PERF_REG_VALUE, _MON_Perf_Config::rtc_select, _MON_Perf_Control::running, and _MON_Perf_Config::threshold.
Referenced by MON_perf_collect(), and MON_start_perf_mon().
unsigned int MON_perf_stop | ( | MON_Perf_Control * | ctl_p, | |
MON_Perf_Stats * | stats_p | |||
) |
Stop counting performance monitor events.
ctl_p | Pointer to PERF state. | |
stats_p | Pointer to location to monitor statistics. |
References _MON_Perf_Control::config, _MON_Perf_Stats::config, _MON_Perf_Stats::count_1, _MON_Perf_Stats::count_2, _MON_Perf_Stats::count_3, _MON_Perf_Stats::count_4, MON_PERF_REG_VALUE, and _MON_Perf_Control::running.
Referenced by MON_perf_poll(), MON_stop(), and MON_stop_perf_mon().
WUT_cb_status mon_perf_wut_handler | ( | void * | prm, | |
WUT_tmr * | wut | |||
) | [static] |
Handle end-of-collection tasks.
prm | Pointer to PERF state. | |
wut | Pointer to wake-up timer. |
References MON_PERF_REG_VALUE, and _MON_Perf_Control::wut_done.
Referenced by MON_perf_collect().