Re: [PATCH v2 1/2] trace: select TIMER_EARLY to avoid infinite recursion

2020-12-29 Thread Rick Chen
; Jian-Zhi Chen(陳建志); pragnesh.pa...@openfive.com; Pragnesh Patel; Simon Glass; > Stefan Roese; Joao Marcos Costa; Reuben Dowle; Weijie Gao; Marcin > Juszkiewicz; Michael Walle; Marek Szyprowski; Keerthy > Subject: [PATCH v2 1/2] trace: select TIMER_EARLY to avoid infinite recursion &g

Re: [PATCH v2 1/2] trace: select TIMER_EARLY to avoid infinite recursion

2020-12-28 Thread Simon Glass
On Mon, 21 Dec 2020 at 23:23, Pragnesh Patel wrote: > > When tracing functions is enabled this adds calls to > __cyg_profile_func_enter() and __cyg_profile_func_exit() to the traced > functions. > > __cyg_profile_func_enter() and __cyg_profile_func_exit() invoke > timer_get_us() to record the entr

[PATCH v2 1/2] trace: select TIMER_EARLY to avoid infinite recursion

2020-12-21 Thread Pragnesh Patel
When tracing functions is enabled this adds calls to __cyg_profile_func_enter() and __cyg_profile_func_exit() to the traced functions. __cyg_profile_func_enter() and __cyg_profile_func_exit() invoke timer_get_us() to record the entry and exit time. initr_dm() will make gd->dm_root = NULL and gd->