FreeRTOS port on GAP8/RISC-V
|
Data Structures | |
struct | perf_t |
Functions | |
void | __pi_perf_fc_conf (uint32_t events) |
Configure FC perf counter. More... | |
void | __pi_perf_fc_reset () |
Reset FC perf counters. More... | |
void | __pi_perf_fc_start () |
Start FC perf counters. More... | |
void | __pi_perf_fc_stop () |
Stop FC perf counters. More... | |
uint32_t | __pi_perf_fc_read (int id) |
Read FC perf counters value. More... | |
static void | __pi_perf_mask_events_set (uint32_t mask) |
static void | __pi_perf_counters_reset () |
static void | __pi_perf_counter_enable (uint32_t mask) |
static uint32_t | __pi_perf_counter_get (uint32_t event) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
void __pi_perf_fc_conf | ( | uint32_t | events | ) |
This function configures Performance Counter with given events mask.
events | Events mask. |
References __pi_perf_mask_events_set(), and perf_t::perf_mask.
Referenced by pi_perf_conf().
uint32_t __pi_perf_fc_read | ( | int | id | ) |
This function returns Performance Counter for a given event.
id | ID of the event. |
References __pi_perf_save(), perf_t::perf_counter, and PERF_TIMER_FC.
Referenced by pi_perf_fc_read(), and pi_perf_read().
void __pi_perf_fc_reset | ( | ) |
This function resets all Performance Counter.
References __pi_perf_counters_reset(), perf_t::perf_mask, PERF_TIMER_FC, and pi_timer_reset().
Referenced by pi_perf_fc_reset(), and pi_perf_reset().
void __pi_perf_fc_start | ( | ) |
This function starts Performance Counter.
References __pi_perf_counter_enable(), __pi_perf_counters_reset(), __pi_perf_enable_timer(), CSR_PCMR_ENABLE, CSR_PCMR_SATURATE, perf_t::perf_mask, and PERF_TIMER_FC.
Referenced by pi_perf_fc_start(), and pi_perf_start().
void __pi_perf_fc_stop | ( | ) |
This function stops Performance Counter.
References __pi_perf_counter_enable(), __pi_perf_save(), CSR_PCMR_DISABLE, perf_t::perf_mask, PERF_TIMER_FC, and pi_timer_stop().
Referenced by pi_perf_stop().
|
inlinestatic |