kernel: publish offsets to thread stack info

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-05-11 15:38:20 -07:00 committed by Anas Nashif
commit 41c68ece83
2 changed files with 9 additions and 0 deletions

View file

@ -209,6 +209,8 @@ struct _thread_stack_info {
/* Stack Size */
u32_t size;
};
typedef struct _thread_stack_info _thread_stack_info_t;
#endif /* CONFIG_THREAD_STACK_INFO */
struct k_thread {

View file

@ -50,6 +50,13 @@ GEN_OFFSET_SYM(_thread_t, caller_saved);
GEN_OFFSET_SYM(_thread_t, callee_saved);
GEN_OFFSET_SYM(_thread_t, arch);
#ifdef CONFIG_THREAD_STACK_INFO
GEN_OFFSET_SYM(_thread_stack_info_t, start);
GEN_OFFSET_SYM(_thread_stack_info_t, size);
GEN_OFFSET_SYM(_thread_t, stack_info);
#endif
#if defined(CONFIG_THREAD_MONITOR)
GEN_OFFSET_SYM(_thread_t, next_thread);
#endif