| 
    ChibiOS
    19.1.4
    
   | 
 
 
 | 
Statistics services.
Data Structures | |
| struct | kernel_stats_t | 
| Type of a kernel statistics structure.  More... | |
Functions | |
| void | _stats_init (void) | 
| Initializes the statistics module.  More... | |
| void | _stats_increase_irq (void) | 
| Increases the IRQ counter.  More... | |
| void | _stats_ctxswc (thread_t *ntp, thread_t *otp) | 
| Updates context switch related statistics.  More... | |
| void | _stats_start_measure_crit_thd (void) | 
| Starts the measurement of a thread critical zone.  More... | |
| void | _stats_stop_measure_crit_thd (void) | 
| Stops the measurement of a thread critical zone.  More... | |
| void | _stats_start_measure_crit_isr (void) | 
| Starts the measurement of an ISR critical zone.  More... | |
| void | _stats_stop_measure_crit_isr (void) | 
| Stops the measurement of an ISR critical zone.  More... | |
| void _stats_init | ( | void | ) | 
Initializes the statistics module.
Definition at line 62 of file chstats.c.
References ch, chTMObjectInit(), ch_system::kernel_stats, kernel_stats_t::m_crit_isr, kernel_stats_t::m_crit_thd, kernel_stats_t::n_ctxswc, and kernel_stats_t::n_irq.
Referenced by chSysInit().

| void _stats_increase_irq | ( | void | ) | 
Increases the IRQ counter.
Definition at line 73 of file chstats.c.
References ch, ch_system::kernel_stats, kernel_stats_t::n_irq, port_lock_from_isr(), and port_unlock_from_isr().

Updates context switch related statistics.
| [in] | ntp | the thread to be switched in | 
| [in] | otp | the thread to be switched out | 
Definition at line 86 of file chstats.c.
References ch, chTMChainMeasurementToX(), ch_system::kernel_stats, kernel_stats_t::n_ctxswc, and ch_thread::stats.

| void _stats_start_measure_crit_thd | ( | void | ) | 
Starts the measurement of a thread critical zone.
Definition at line 95 of file chstats.c.
References ch, chTMStartMeasurementX(), ch_system::kernel_stats, and kernel_stats_t::m_crit_thd.
Referenced by chSysLock().

| void _stats_stop_measure_crit_thd | ( | void | ) | 
Stops the measurement of a thread critical zone.
Definition at line 103 of file chstats.c.
References ch, chTMStopMeasurementX(), ch_system::kernel_stats, and kernel_stats_t::m_crit_thd.
Referenced by chSysUnlock().

| void _stats_start_measure_crit_isr | ( | void | ) | 
Starts the measurement of an ISR critical zone.
Definition at line 111 of file chstats.c.
References ch, chTMStartMeasurementX(), ch_system::kernel_stats, and kernel_stats_t::m_crit_isr.
Referenced by chSysLockFromISR().

| void _stats_stop_measure_crit_isr | ( | void | ) | 
Stops the measurement of an ISR critical zone.
Definition at line 119 of file chstats.c.
References ch, chTMStopMeasurementX(), ch_system::kernel_stats, and kernel_stats_t::m_crit_isr.
Referenced by chSysUnlockFromISR().
