mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #260 from LudwigOrtmann/merge_thread_measure_stack_usage_declarations
merge thread_measure_stack_usage declarations
This commit is contained in:
commit
abbad199e5
@ -41,14 +41,5 @@ void sched_task_exit(void);
|
|||||||
*/
|
*/
|
||||||
void thread_print_stack(void);
|
void thread_print_stack(void);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Calculates stack usage if thread was created using CREATE_STACKTEST
|
|
||||||
*
|
|
||||||
* @param[in] stack The thread's stack
|
|
||||||
*
|
|
||||||
* @return The current usage (overwritten addresses) of the thread's stack
|
|
||||||
*/
|
|
||||||
int thread_measure_stack_usage(char *stack);
|
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
#endif /* KERNEL_INTERNAL_H_ */
|
#endif /* KERNEL_INTERNAL_H_ */
|
||||||
|
@ -81,6 +81,7 @@ int thread_getlastpid(void);
|
|||||||
* Only works if the thread was created with the flag CREATE_STACKTEST.
|
* Only works if the thread was created with the flag CREATE_STACKTEST.
|
||||||
*
|
*
|
||||||
* @param stack The stack you want to measure. try active_thread->stack_start.
|
* @param stack The stack you want to measure. try active_thread->stack_start.
|
||||||
|
* @return The current usage (overwritten addresses) of the thread's stack
|
||||||
*/
|
*/
|
||||||
int thread_measure_stack_usage(char *stack);
|
int thread_measure_stack_usage(char *stack);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user