OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | rtkernel_params |
struct | symbols |
Macros | |
#define | ST_CREATE BIT(13) /* Task was created by task_create() */ |
#define | ST_DEAD BIT(0) /* Task is waiting to be deleted */ |
#define | ST_DLY BIT(5) /* on timer */ |
#define | ST_FLAG BIT(6) /* on flag */ |
#define | ST_FLAG_ALL BIT(7) /* on flag and flag mode is "ALL" */ |
#define | ST_MBOX BIT(8) /* on mailbox */ |
#define | ST_MTX BIT(3) /* on mutex */ |
#define | ST_SEM BIT(2) /* on semaphore */ |
#define | ST_SIG BIT(4) /* on signal */ |
#define | ST_STP BIT(9) /* self stopped */ |
#define | ST_SUSPEND BIT(10) /* Task is suspended */ |
#define | ST_TT BIT(11) /* Time triggered task */ |
#define | ST_TT_YIELD BIT(12) /* Time triggered task that yields */ |
#define | ST_WAIT BIT(1) /* Task is blocked: */ |
Enumerations | |
enum | rtkernel_symbol_values { sym_os_state = 0 , sym___off_os_state2chain = 1 , sym___off_os_state2current = 2 , sym___off_task2chain = 3 , sym___off_task2magic = 4 , sym___off_task2stack = 5 , sym___off_task2state = 6 , sym___off_task2name = 7 , sym___val_task_magic = 8 } |
Functions | |
static void * | realloc_preserve (void *ptr, size_t old_size, size_t new_size) |
static int | rtkernel_add_task (struct rtos *rtos, uint32_t task, uint32_t current_task) |
static int | rtkernel_create (struct target *target) |
static bool | rtkernel_detect_rtos (struct target *target) |
static int | rtkernel_get_symbol_list_to_lookup (struct symbol_table_elem *symbol_list[]) |
static int | rtkernel_get_thread_reg_list (struct rtos *rtos, int64_t thread_id, struct rtos_reg **reg_list, int *num_regs) |
static int | rtkernel_update_threads (struct rtos *rtos) |
static int | rtkernel_verify_task (struct rtos *rtos, uint32_t task) |
Variables | |
static const struct rtkernel_params | rtkernel_params_list [] |
const struct rtos_type | rtkernel_rtos |
static const struct symbols | rtkernel_symbol_list [] |
#define ST_CREATE BIT(13) /* Task was created by task_create() */ |
Definition at line 35 of file rtkernel.c.
#define ST_DEAD BIT(0) /* Task is waiting to be deleted */ |
Definition at line 22 of file rtkernel.c.
#define ST_DLY BIT(5) /* on timer */ |
Definition at line 27 of file rtkernel.c.
Definition at line 28 of file rtkernel.c.
Definition at line 29 of file rtkernel.c.
#define ST_MBOX BIT(8) /* on mailbox */ |
Definition at line 30 of file rtkernel.c.
#define ST_MTX BIT(3) /* on mutex */ |
Definition at line 25 of file rtkernel.c.
#define ST_SEM BIT(2) /* on semaphore */ |
Definition at line 24 of file rtkernel.c.
Definition at line 26 of file rtkernel.c.
#define ST_STP BIT(9) /* self stopped */ |
Definition at line 31 of file rtkernel.c.
#define ST_SUSPEND BIT(10) /* Task is suspended */ |
Definition at line 32 of file rtkernel.c.
#define ST_TT BIT(11) /* Time triggered task */ |
Definition at line 33 of file rtkernel.c.
#define ST_TT_YIELD BIT(12) /* Time triggered task that yields */ |
Definition at line 34 of file rtkernel.c.
#define ST_WAIT BIT(1) /* Task is blocked: */ |
Definition at line 23 of file rtkernel.c.
Enumerator | |
---|---|
sym_os_state | |
sym___off_os_state2chain | |
sym___off_os_state2current | |
sym___off_task2chain | |
sym___off_task2magic | |
sym___off_task2stack | |
sym___off_task2state | |
sym___off_task2name | |
sym___val_task_magic |
Definition at line 59 of file rtkernel.c.
|
static |
|
static |
Definition at line 101 of file rtkernel.c.
References symbol_table_elem::address, rtos::current_thread, ERROR_FAIL, ERROR_OK, thread_detail::extra_info_str, LOG_DEBUG, LOG_ERROR, name, realloc_preserve(), ST_DEAD, ST_DLY, ST_FLAG, ST_FLAG_ALL, ST_MBOX, ST_MTX, ST_SEM, ST_SIG, ST_STP, ST_SUSPEND, ST_TT, ST_TT_YIELD, ST_WAIT, state, sym___off_task2name, sym___off_task2state, rtos::symbols, rtos::target, target_read_buffer(), target_read_u16(), target_read_u32(), rtos::thread_count, rtos::thread_details, thread_detail::thread_name_str, and thread_detail::threadid.
Referenced by rtkernel_update_threads().
|
static |
Definition at line 362 of file rtkernel.c.
References ARRAY_SIZE, LOG_ERROR, rtkernel_params_list, target::rtos, rtos::rtos_specific_params, target_name(), and target_type_name().
|
static |
Definition at line 356 of file rtkernel.c.
References symbol_table_elem::address, target::rtos, sym___off_os_state2chain, and rtos::symbols.
|
static |
Definition at line 342 of file rtkernel.c.
References ARRAY_SIZE, ERROR_FAIL, ERROR_OK, symbols::name, symbols::optional, and rtkernel_symbol_list.
|
static |
Definition at line 269 of file rtkernel.c.
References symbol_table_elem::address, ERROR_OK, armv7m_common::fp_feature, FP_NONE, FPU_CPACR, is_armv7m(), LOG_DEBUG, LOG_ERROR, LOG_OUTPUT, rtos_generic_stack_read(), rtos::rtos_specific_params, rtkernel_params::stacking_info_cm3, rtkernel_params::stacking_info_cm4f, rtkernel_params::stacking_info_cm4f_fpu, sym___off_task2stack, rtos::symbols, rtos::target, target_read_u32(), and target_to_armv7m().
|
static |
Definition at line 206 of file rtkernel.c.
References symbol_table_elem::address, rtos::current_thread, ERROR_OK, LOG_DEBUG, LOG_ERROR, rtkernel_add_task(), rtkernel_verify_task(), rtos_free_threadlist(), sym___off_os_state2chain, sym___off_os_state2current, sym___off_task2chain, sym_os_state, rtos::symbols, rtos::target, and target_read_u32().
|
static |
Definition at line 190 of file rtkernel.c.
References symbol_table_elem::address, ERROR_FAIL, ERROR_OK, LOG_ERROR, sym___off_task2magic, sym___val_task_magic, rtos::symbols, rtos::target, and target_read_u32().
Referenced by rtkernel_update_threads().
|
static |
Definition at line 1 of file rtkernel.c.
Referenced by rtkernel_create().
const struct rtos_type rtkernel_rtos |
Definition at line 362 of file rtkernel.c.
|
static |
Definition at line 1 of file rtkernel.c.
Referenced by rtkernel_get_symbol_list_to_lookup().