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/task.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/task.h')
-rw-r--r-- | include/task.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/task.h b/include/task.h index 1aeb1206b7..f2df173501 100644 --- a/include/task.h +++ b/include/task.h @@ -105,6 +105,11 @@ uint32_t task_wait_event(int timeout_us); */ void task_print_list(void); +/** + * Returns the name of the task. + */ +const char *task_get_name(task_id_t tskid); + #ifdef CONFIG_TASK_PROFILING /** * Start tracking an interrupt. |