timer: mchp_xec_rtos: enable benchmarking during ISR

This adds the calls to read_timer_{start,end}_of_tick_handler()
to mark the start and end of ISR which will be used to display
the time spent in ISR with benchmarking tests.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2020-03-31 12:24:59 -07:00 committed by Anas Nashif
commit 381271fd0d

View file

@ -217,6 +217,11 @@ static void xec_rtos_timer_isr(void *arg)
{
ARG_UNUSED(arg);
#ifdef CONFIG_EXECUTION_BENCHMARKING
extern void read_timer_start_of_tick_handler(void);
read_timer_start_of_tick_handler();
#endif
u32_t cycles;
s32_t ticks;
@ -243,6 +248,11 @@ static void xec_rtos_timer_isr(void *arg)
k_spin_unlock(&lock, key);
z_clock_announce(ticks);
#ifdef CONFIG_EXECUTION_BENCHMARKING
extern void read_timer_end_of_tick_handler(void);
read_timer_end_of_tick_handler();
#endif
}
#else