ChibiOS/RT  5.1.0
Statistics
Collaboration diagram for Statistics:

Detailed Description

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...
 

Function Documentation

void _stats_init ( void  )

Initializes the statistics module.

Function Class:
Initializer, this function just initializes an object and can be invoked before the kernel is initialized.

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().

Here is the call graph for this function:

void _stats_increase_irq ( void  )

Increases the IRQ counter.

Definition at line 73 of file chstats.c.

References ch, ch_system::kernel_stats, and kernel_stats_t::n_irq.

void _stats_ctxswc ( thread_t ntp,
thread_t otp 
)

Updates context switch related statistics.

Parameters
[in]ntpthe thread to be switched in
[in]otpthe 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.

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function: