diff options
author | Vic (Chun-Ju) Yang <victoryang@chromium.org> | 2014-01-21 17:18:33 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-01-22 04:52:49 +0000 |
commit | 7c686dd68ba382a01040f5cf23c5e416ee39e65e (patch) | |
tree | efc0e15822d4ba10ff7520e16098b44dc8168c75 /include/test_util.h | |
parent | a02d7fa1480380ef402118395870d742b3910fd9 (diff) | |
download | chrome-ec-7c686dd68ba382a01040f5cf23c5e416ee39e65e.tar.gz |
emulator: Move trace dump to a separate module
The implementation of trace dump has little to do with task scheduling,
so we should move it to a separate module for cleaner code. This
requires exposing some emulator-specific task info, as defined in
host_task.h.
BUG=chrome-os-partner:19235
TEST=Pass all tests
BRANCH=None
Change-Id: Iba9bc0794a4e1dd4ddb92b98345162b398fa6a8d
Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/183238
Diffstat (limited to 'include/test_util.h')
-rw-r--r-- | include/test_util.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/test_util.h b/include/test_util.h index 754230489f..4f76a200c4 100644 --- a/include/test_util.h +++ b/include/test_util.h @@ -10,6 +10,7 @@ #include "common.h" #include "console.h" +#include "stack_trace.h" #define RUN_TEST(n) \ do { \ @@ -130,19 +131,8 @@ void interrupt_generator_udelay(unsigned us); #ifdef EMU_BUILD void wait_for_task_started(void); - -/* - * Register trace dump handler for emulator. Trace dump is printed to stderr - * when SIGUSR2 is received. - */ -void task_register_tracedump(void); - -/* Dump current stack trace */ -void task_dump_trace(void); #else static inline void wait_for_task_started(void) { } -static inline void task_register_tracedump(void) { } -static inline void task_dump_trace(void) { } #endif uint32_t prng(uint32_t seed); |