summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/cpu/os.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-06-11 11:14:44 -0700
committerTom Rini <trini@ti.com>2013-06-26 10:16:41 -0400
commite2ee100fd81043da51fb5e301ba9555ae3522869 (patch)
tree1931b8ee8fb8f0c59ff9b454be549ca0ad964cd5 /arch/sandbox/cpu/os.c
parent6c887b2acb1e97509cb4e4ee6aa13a5fb91ac3e8 (diff)
downloadtalos-obmc-uboot-e2ee100fd81043da51fb5e301ba9555ae3522869.tar.gz
talos-obmc-uboot-e2ee100fd81043da51fb5e301ba9555ae3522869.zip
sandbox: Support trace feature
Support tracing on sandbox by adding suitable CONFIG options. To enable it, compile U-Boot with FTRACE=1. The timer functions are marked to skip tracing, since these are called from the tracing code itself, and we want to avoid an infinite loop. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/cpu/os.c')
-rw-r--r--arch/sandbox/cpu/os.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c
index d07540776c..541e450bf6 100644
--- a/arch/sandbox/cpu/os.c
+++ b/arch/sandbox/cpu/os.c
@@ -152,7 +152,7 @@ void os_usleep(unsigned long usec)
usleep(usec);
}
-u64 os_get_nsec(void)
+u64 __attribute__((no_instrument_function)) os_get_nsec(void)
{
#if defined(CLOCK_MONOTONIC) && defined(_POSIX_MONOTONIC_CLOCK)
struct timespec tp;
OpenPOWER on IntegriCloud