diff options
author | Simon Glass <sjg@chromium.org> | 2013-06-11 11:14:39 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-06-26 10:16:41 -0400 |
commit | b2e16a85a1fa3f871ca73a554a7fd63067d9ad14 (patch) | |
tree | a3963b971b6f1a2956e82a2ff7e4ce76aa82350c /include/common.h | |
parent | b8bcaa3ad393c34b7cdd9c8dcd9e9b82e2a34c58 (diff) | |
download | u-boot-imx-b2e16a85a1fa3f871ca73a554a7fd63067d9ad14.zip u-boot-imx-b2e16a85a1fa3f871ca73a554a7fd63067d9ad14.tar.gz u-boot-imx-b2e16a85a1fa3f871ca73a554a7fd63067d9ad14.tar.bz2 |
Add trace library
Add a library which supports tracing of execution using built-in gcc
features and a microsecond timer. This can be used to record a list of
function which are executed, along with a timestamp for each. Later
this information can be sent to the host for processing.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 126891d..e5220cf 100644 --- a/include/common.h +++ b/include/common.h @@ -750,6 +750,10 @@ void irq_install_handler(int, interrupt_handler_t *, void *); void irq_free_handler (int); void reset_timer (void); ulong get_timer (ulong base); + +/* Return value of monotonic microsecond timer */ +unsigned long timer_get_us(void); + void enable_interrupts (void); int disable_interrupts (void); |