|
Data Structures |
struct | _MON_Load_Stats |
| CPU loading statistics. More...
|
struct | _MON_Perf_Config |
| CPU performance monitor configuration. More...
|
struct | _MON_Perf_Stats |
| CPU performance monitor statistics. More...
|
Typedefs |
typedef enum _MON_Perf_Event_1 | MON_Perf_Event_1 |
| Typedef for _MON_Perf_Event_1.
|
typedef enum _MON_Perf_Event_2 | MON_Perf_Event_2 |
| Typedef for _MON_Perf_Event_2.
|
typedef enum _MON_Perf_Event_3 | MON_Perf_Event_3 |
| Typedef for _MON_Perf_Event_3.
|
typedef enum _MON_Perf_Event_4 | MON_Perf_Event_4 |
| Typedef for _MON_Perf_Event_4.
|
typedef enum _MON_Perf_RTC_Select | MON_Perf_RTC_Select |
| Typedef for _MON_Perf_RTC_Select.
|
typedef _MON_Load_Stats | MON_Load_Stats |
| Typedef for _MON_Load_Stats.
|
typedef _MON_Perf_Config | MON_Perf_Config |
| Typedef for _MON_Perf_Config.
|
typedef _MON_Perf_Stats | MON_Perf_Stats |
| Typedef for _MON_Perf_Stats.
|
typedef void(* | MON_Perf_Cb )(void *cb_parm) |
| Signature for performance monitor collection callback function.
|
Enumerations |
enum | _MON_Perf_Event_1 {
MON_EVENT_1_HOLD = 0,
MON_EVENT_1_CYCLE = 1,
MON_EVENT_1_INST_CMPLT = 2,
MON_EVENT_1_BIT_TRANS = 3,
MON_EVENT_1_INST_DISPATCH = 4,
MON_EVENT_1_EIEIO_CMPLT = 5,
MON_EVENT_1_ITLB_SEARCH = 6,
MON_EVENT_1_L2_HIT = 7,
MON_EVENT_1_INST_EA_DELIVER = 8,
MON_EVENT_1_IABR_MATCH = 9,
MON_EVENT_1_L1_MISS_LATENT = 10,
MON_EVENT_1_BR_UNRESOLVE = 11,
MON_EVENT_1_DISPATCH_STALL = 12
} |
| Events from set 1 that can be counted. More...
|
enum | _MON_Perf_Event_2 {
MON_EVENT_2_HOLD = 0,
MON_EVENT_2_CYCLE = 1,
MON_EVENT_2_INST_CMPLT = 2,
MON_EVENT_2_BIT_TRANS = 3,
MON_EVENT_2_INST_DISPATCH = 4,
MON_EVENT_2_L1_INST_MISS = 5,
MON_EVENT_2_ITLB_MISS = 6,
MON_EVENT_2_L2_INST_MISS = 7,
MON_EVENT_2_BR_NOT_TAKEN = 8,
MON_EVENT_2_MSR_PR_TOG = 9,
MON_EVENT_2_RSV_LOAD_CMPLT = 10,
MON_EVENT_2_LD_ST_CMPLT = 11,
MON_EVENT_2_L1_L2_SNOOP = 12,
MON_EVENT_2_L1_CAST_OUT = 13,
MON_EVENT_2_SYS_INST_CMPLT = 14,
MON_EVENT_2_INST_FETCH_MISS = 15,
MON_EVENT_2_BR_RSLV_CORRECT = 16
} |
| Events from set 2 that can be counted. More...
|
enum | _MON_Perf_Event_3 {
MON_EVENT_3_HOLD = 0,
MON_EVENT_3_CYCLE = 1,
MON_EVENT_3_INST_CMPLT = 2,
MON_EVENT_3_BIT_TRANS = 3,
MON_EVENT_3_INST_DISPATCH = 4,
MON_EVENT_3_L1_DATA_MISS = 5,
MON_EVENT_3_DTLB_MISS = 6,
MON_EVENT_3_L2_DATA_MISS = 7,
MON_EVENT_3_BR_TAKEN = 8,
MON_EVENT_3_USR_MSR_PM_TOG = 9,
MON_EVENT_3_ST_COND_CMPLT = 10,
MON_EVENT_3_FPU_INST_CMPLT = 11,
MON_EVENT_3_L2_CAST_OUT = 12,
MON_EVENT_3_L2_HIT = 13,
MON_EVENT_3_L1_MISS_CYCLE = 15,
MON_EVENT_3_SPEC_BR_RSLV = 16,
MON_EVENT_3_BPU_STALL_CYCLE = 17
} |
| Events from set 3 that can be counted. More...
|
enum | _MON_Perf_Event_4 {
MON_EVENT_4_HOLD = 0,
MON_EVENT_4_CYCLE = 1,
MON_EVENT_4_INST_CMPLT = 2,
MON_EVENT_4_BIT_TRANS = 3,
MON_EVENT_4_INST_DISPATCH = 4,
MON_EVENT_4_L2_CAST_OUT = 5,
MON_EVENT_4_DTLB_SEARCH = 6,
MON_EVENT_4_BR_MISPREDICT = 8,
MON_EVENT_4_SPVR_MSR_PM_TOG = 9,
MON_EVENT_4_ST_COND_CMPLT = 10,
MON_EVENT_4_SYNC_CMPLT = 11,
MON_EVENT_4_SNOOP_RETRY = 12,
MON_EVENT_4_INT_OP_CMPLT = 13,
MON_EVENT_4_BPU_FAIL = 14
} |
| Events from set 4 that can be counted. More...
|
enum | _MON_Perf_RTC_Select {
MON_RTC_63 = 0,
MON_RTC_55 = 1,
MON_RTC_51 = 2,
MON_RTC_47 = 3
} |
| Time base register bit selections (for 0-to-1 bit transition events). More...
|
Functions |
unsigned int | MON_initialize (void) |
| Initialize the MON functions.
|
unsigned int | MON_shutdown (void) |
| Shutdown the MON functions.
|
unsigned int | MON_start (TASK_attr *idle_attr_p, TASK_attr *poll_attr_p) |
| Start the MON functions.
|
unsigned int | MON_stop (void) |
| Stop the MON functions.
|
unsigned int | MON_get_loading (MON_Load_Stats *stats_p) |
| Get current CPU loading statistics.
|
unsigned int | MON_start_perf_mon (MON_Perf_Config *cfg_p) |
| Start CPU performance monitoring.
|
unsigned int | MON_stop_perf_mon (MON_Perf_Stats *stats_p) |
| Stop CPU performance monitoring.
|
unsigned int | MON_collect_perf_stats (MON_Perf_Config *cfg_p, unsigned int time_us, MON_Perf_Stats *stats_p, MON_Perf_Cb cb, void *cb_parm) |
| Collect performance monitor stats for a specified period of time.
|
Defines the public interface to the functions found in the MON package.