Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Thread Tracing APIs. More...
Macros | |
#define | sys_port_trace_k_thread_foreach_enter() |
Called when entering a k_thread_foreach call. | |
#define | sys_port_trace_k_thread_foreach_exit() |
Called when exiting a k_thread_foreach call. | |
#define | sys_port_trace_k_thread_foreach_unlocked_enter() |
Called when entering a k_thread_foreach_unlocked. | |
#define | sys_port_trace_k_thread_foreach_unlocked_exit() |
Called when exiting a k_thread_foreach_unlocked. | |
#define | sys_port_trace_k_thread_create(new_thread) |
Trace creating a Thread. | |
#define | sys_port_trace_k_thread_user_mode_enter() |
Trace Thread entering user mode. | |
#define | sys_port_trace_k_thread_join_enter(thread, timeout) |
Called when entering a k_thread_join. | |
#define | sys_port_trace_k_thread_join_blocking(thread, timeout) |
Called when k_thread_join blocks. | |
#define | sys_port_trace_k_thread_join_exit(thread, timeout, ret) |
Called when exiting k_thread_join. | |
#define | sys_port_trace_k_thread_sleep_enter(timeout) |
Called when entering k_thread_sleep. | |
#define | sys_port_trace_k_thread_sleep_exit(timeout, ret) |
Called when exiting k_thread_sleep. | |
#define | sys_port_trace_k_thread_msleep_enter(ms) |
Called when entering k_thread_msleep. | |
#define | sys_port_trace_k_thread_msleep_exit(ms, ret) |
Called when exiting k_thread_msleep. | |
#define | sys_port_trace_k_thread_usleep_enter(us) |
Called when entering k_thread_usleep. | |
#define | sys_port_trace_k_thread_usleep_exit(us, ret) |
Called when exiting k_thread_usleep. | |
#define | sys_port_trace_k_thread_busy_wait_enter(usec_to_wait) |
Called when entering k_thread_busy_wait. | |
#define | sys_port_trace_k_thread_busy_wait_exit(usec_to_wait) |
Called when exiting k_thread_busy_wait. | |
#define | sys_port_trace_k_thread_yield() |
Called when a thread yields. | |
#define | sys_port_trace_k_thread_wakeup(thread) |
Called when a thread wakes up. | |
#define | sys_port_trace_k_thread_start(thread) |
Called when a thread is started. | |
#define | sys_port_trace_k_thread_abort(thread) |
Called when a thread is being aborted. | |
#define | sys_port_trace_k_thread_abort_enter(thread) |
Called when a thread enters the k_thread_abort routine. | |
#define | sys_port_trace_k_thread_abort_exit(thread) |
Called when a thread exits the k_thread_abort routine. | |
#define | sys_port_trace_k_thread_priority_set(thread) |
Called when setting priority of a thread. | |
#define | sys_port_trace_k_thread_suspend_enter(thread) |
Called when a thread enters the k_thread_suspend function. | |
#define | sys_port_trace_k_thread_suspend_exit(thread) |
Called when a thread exits the k_thread_suspend function. | |
#define | sys_port_trace_k_thread_resume_enter(thread) |
Called when a thread enters the resume from suspension function. | |
#define | sys_port_trace_k_thread_resume_exit(thread) |
Called when a thread exits the resumed from suspension function. | |
#define | sys_port_trace_k_thread_sched_lock() |
Called when the thread scheduler is locked. | |
#define | sys_port_trace_k_thread_sched_unlock() |
Called when the thread scheduler is unlocked. | |
#define | sys_port_trace_k_thread_name_set(thread, ret) |
Called when a thread name is set. | |
#define | sys_port_trace_k_thread_switched_out() |
Called before a thread has been selected to run. | |
#define | sys_port_trace_k_thread_switched_in() |
Called after a thread has been selected to run. | |
#define | sys_port_trace_k_thread_ready(thread) |
Called when a thread is ready to run. | |
#define | sys_port_trace_k_thread_pend(thread) |
Called when a thread is pending. | |
#define | sys_port_trace_k_thread_info(thread) |
Provide information about specific thread. | |
#define | sys_port_trace_k_thread_sched_wakeup(thread) |
Trace implicit thread wakeup invocation by the scheduler. | |
#define | sys_port_trace_k_thread_sched_abort(thread) |
Trace implicit thread abort invocation by the scheduler. | |
#define | sys_port_trace_k_thread_sched_priority_set(thread, prio) |
Trace implicit thread set priority invocation by the scheduler. | |
#define | sys_port_trace_k_thread_sched_ready(thread) |
Trace implicit thread ready invocation by the scheduler. | |
#define | sys_port_trace_k_thread_sched_pend(thread) |
Trace implicit thread pend invocation by the scheduler. | |
#define | sys_port_trace_k_thread_sched_resume(thread) |
Trace implicit thread resume invocation by the scheduler. | |
#define | sys_port_trace_k_thread_sched_suspend(thread) |
Trace implicit thread suspend invocation by the scheduler. | |
Thread Tracing APIs.
#define sys_port_trace_k_thread_abort | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Called when a thread is being aborted.
thread | Thread object |
#define sys_port_trace_k_thread_abort_enter | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Called when a thread enters the k_thread_abort routine.
thread | Thread object |
#define sys_port_trace_k_thread_abort_exit | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Called when a thread exits the k_thread_abort routine.
thread | Thread object |
#define sys_port_trace_k_thread_busy_wait_enter | ( | usec_to_wait | ) |
#include <include/zephyr/tracing/tracing.h>
Called when entering k_thread_busy_wait.
usec_to_wait | Duration in microseconds |
#define sys_port_trace_k_thread_busy_wait_exit | ( | usec_to_wait | ) |
#include <include/zephyr/tracing/tracing.h>
Called when exiting k_thread_busy_wait.
usec_to_wait | Duration in microseconds |
#define sys_port_trace_k_thread_create | ( | new_thread | ) |
#include <include/zephyr/tracing/tracing.h>
Trace creating a Thread.
new_thread | Thread object |
#define sys_port_trace_k_thread_foreach_enter | ( | ) |
#include <include/zephyr/tracing/tracing.h>
Called when entering a k_thread_foreach call.
#define sys_port_trace_k_thread_foreach_exit | ( | ) |
#include <include/zephyr/tracing/tracing.h>
Called when exiting a k_thread_foreach call.
#define sys_port_trace_k_thread_foreach_unlocked_enter | ( | ) |
#include <include/zephyr/tracing/tracing.h>
Called when entering a k_thread_foreach_unlocked.
#define sys_port_trace_k_thread_foreach_unlocked_exit | ( | ) |
#include <include/zephyr/tracing/tracing.h>
Called when exiting a k_thread_foreach_unlocked.
#define sys_port_trace_k_thread_info | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Provide information about specific thread.
thread | Thread object |
#include <include/zephyr/tracing/tracing.h>
Called when k_thread_join blocks.
thread | Thread object |
timeout | Timeout period |
#include <include/zephyr/tracing/tracing.h>
Called when entering a k_thread_join.
thread | Thread object |
timeout | Timeout period |
#include <include/zephyr/tracing/tracing.h>
Called when exiting k_thread_join.
thread | Thread object |
timeout | Timeout period |
ret | Return value |
#define sys_port_trace_k_thread_msleep_enter | ( | ms | ) |
#include <include/zephyr/tracing/tracing.h>
Called when entering k_thread_msleep.
ms | Duration in milliseconds |
#include <include/zephyr/tracing/tracing.h>
Called when exiting k_thread_msleep.
ms | Duration in milliseconds |
ret | Return value |
#include <include/zephyr/tracing/tracing.h>
Called when a thread name is set.
thread | Thread object |
ret | Return value |
#define sys_port_trace_k_thread_pend | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Called when a thread is pending.
thread | Thread object |
#define sys_port_trace_k_thread_priority_set | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Called when setting priority of a thread.
thread | Thread object |
#define sys_port_trace_k_thread_ready | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Called when a thread is ready to run.
thread | Thread object |
#define sys_port_trace_k_thread_resume_enter | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Called when a thread enters the resume from suspension function.
thread | Thread object |
#define sys_port_trace_k_thread_resume_exit | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Called when a thread exits the resumed from suspension function.
thread | Thread object |
#define sys_port_trace_k_thread_sched_abort | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Trace implicit thread abort invocation by the scheduler.
thread | Thread object |
#define sys_port_trace_k_thread_sched_lock | ( | ) |
#include <include/zephyr/tracing/tracing.h>
Called when the thread scheduler is locked.
#define sys_port_trace_k_thread_sched_pend | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Trace implicit thread pend invocation by the scheduler.
thread | Thread object |
#define sys_port_trace_k_thread_sched_priority_set | ( | thread, | |
prio | |||
) |
#include <include/zephyr/tracing/tracing.h>
Trace implicit thread set priority invocation by the scheduler.
thread | Thread object |
prio | Thread priority |
#define sys_port_trace_k_thread_sched_ready | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Trace implicit thread ready invocation by the scheduler.
thread | Thread object |
#define sys_port_trace_k_thread_sched_resume | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Trace implicit thread resume invocation by the scheduler.
thread | Thread object |
#define sys_port_trace_k_thread_sched_suspend | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Trace implicit thread suspend invocation by the scheduler.
thread | Thread object |
#define sys_port_trace_k_thread_sched_unlock | ( | ) |
#include <include/zephyr/tracing/tracing.h>
Called when the thread scheduler is unlocked.
#define sys_port_trace_k_thread_sched_wakeup | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Trace implicit thread wakeup invocation by the scheduler.
thread | Thread object |
#define sys_port_trace_k_thread_sleep_enter | ( | timeout | ) |
#include <include/zephyr/tracing/tracing.h>
Called when entering k_thread_sleep.
timeout | Timeout period |
#include <include/zephyr/tracing/tracing.h>
Called when exiting k_thread_sleep.
timeout | Timeout period |
ret | Return value |
#define sys_port_trace_k_thread_start | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Called when a thread is started.
thread | Thread object |
#define sys_port_trace_k_thread_suspend_enter | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Called when a thread enters the k_thread_suspend function.
thread | Thread object |
#define sys_port_trace_k_thread_suspend_exit | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Called when a thread exits the k_thread_suspend function.
thread | Thread object |
#define sys_port_trace_k_thread_switched_in | ( | ) |
#include <include/zephyr/tracing/tracing.h>
Called after a thread has been selected to run.
#define sys_port_trace_k_thread_switched_out | ( | ) |
#include <include/zephyr/tracing/tracing.h>
Called before a thread has been selected to run.
#define sys_port_trace_k_thread_user_mode_enter | ( | ) |
#include <include/zephyr/tracing/tracing.h>
Trace Thread entering user mode.
#define sys_port_trace_k_thread_usleep_enter | ( | us | ) |
#include <include/zephyr/tracing/tracing.h>
Called when entering k_thread_usleep.
us | Duration in microseconds |
#define sys_port_trace_k_thread_usleep_exit | ( | us, | |
ret | |||
) |
#include <include/zephyr/tracing/tracing.h>
Called when exiting k_thread_usleep.
us | Duration in microseconds |
ret | Return value |
#define sys_port_trace_k_thread_wakeup | ( | thread | ) |
#include <include/zephyr/tracing/tracing.h>
Called when a thread wakes up.
thread | Thread object |
#define sys_port_trace_k_thread_yield | ( | ) |
#include <include/zephyr/tracing/tracing.h>
Called when a thread yields.