Go to the source code of this file.
◆ EMBKERNEL_MAX_THREAD_NAME_STR_SIZE
#define EMBKERNEL_MAX_THREAD_NAME_STR_SIZE (64) |
◆ anonymous enum
Enumerator |
---|
SYMBOL_ID_S_CURRENT_TASK | |
SYMBOL_ID_S_LIST_READY | |
SYMBOL_ID_S_LIST_SLEEP | |
SYMBOL_ID_S_LIST_SUSPENDED | |
SYMBOL_ID_S_MAX_PRIORITIES | |
SYMBOL_ID_S_CURRENT_TASK_COUNT | |
Definition at line 39 of file embKernel.c.
◆ embkernel_create()
static int embkernel_create |
( |
struct target * |
target | ) |
|
|
static |
◆ embkernel_detect_rtos()
static bool embkernel_detect_rtos |
( |
struct target * |
target | ) |
|
|
static |
◆ embkernel_get_symbol_list_to_lookup()
static int embkernel_get_symbol_list_to_lookup |
( |
struct symbol_table_elem * |
symbol_list[] | ) |
|
|
static |
◆ embkernel_get_tasks_details()
static int embkernel_get_tasks_details |
( |
struct rtos * |
rtos, |
|
|
int64_t |
iterable, |
|
|
const struct embkernel_params * |
param, |
|
|
struct thread_detail * |
details, |
|
|
const char * |
state_str |
|
) |
| |
|
static |
Definition at line 125 of file embKernel.c.
References rtos::current_thread, EMBKERNEL_MAX_THREAD_NAME_STR_SIZE, ERROR_OK, thread_detail::exists, thread_detail::extra_info_str, embkernel_params::iterable_task_owner_offset, LOG_OUTPUT, embkernel_params::pointer_width, rtos::target, target_read_buffer(), embkernel_params::thread_name_offset, thread_detail::thread_name_str, embkernel_params::thread_priority_offset, embkernel_params::thread_priority_width, and thread_detail::threadid.
Referenced by embkernel_update_threads().
◆ embkernel_get_thread_reg_list()
static int embkernel_get_thread_reg_list |
( |
struct rtos * |
rtos, |
|
|
int64_t |
thread_id, |
|
|
struct rtos_reg ** |
reg_list, |
|
|
int * |
num_regs |
|
) |
| |
|
static |
◆ embkernel_update_threads()
static int embkernel_update_threads |
( |
struct rtos * |
rtos | ) |
|
|
static |
Definition at line 172 of file embKernel.c.
References symbol_table_elem::address, rtos::current_thread, embkernel_get_tasks_details(), ERROR_FAIL, ERROR_OK, embkernel_params::iterable_next_offset, LOG_ERROR, LOG_OUTPUT, embkernel_params::pointer_width, rtos_free_threadlist(), embkernel_params::rtos_list_size, rtos::rtos_specific_params, SYMBOL_ID_S_CURRENT_TASK, SYMBOL_ID_S_CURRENT_TASK_COUNT, SYMBOL_ID_S_LIST_READY, SYMBOL_ID_S_LIST_SLEEP, SYMBOL_ID_S_LIST_SUSPENDED, SYMBOL_ID_S_MAX_PRIORITIES, rtos::symbols, rtos::target, target_read_buffer(), rtos::thread_count, embkernel_params::thread_count_width, and rtos::thread_details.
◆ embkernel_params_list
Initial value:= {
{
"cortex_m",
4,
4,
8,
0,
4,
8,
4,
4,
12,
},
{ "hla_target",
4,
4,
8,
0,
4,
8,
4,
4,
12,
}
}
const struct rtos_register_stacking rtos_embkernel_cortex_m_stacking
Definition at line 48 of file embKernel.c.
Referenced by embkernel_create().
◆ embkernel_rtos
Initial value:= {
.name = "embKernel",
.get_thread_reg_list =
}
static int embkernel_create(struct target *target)
static bool embkernel_detect_rtos(struct target *target)
static int embkernel_get_symbol_list_to_lookup(struct symbol_table_elem *symbol_list[])
static int embkernel_get_thread_reg_list(struct rtos *rtos, int64_t thread_id, struct rtos_reg **reg_list, int *num_regs)
static int embkernel_update_threads(struct rtos *rtos)
Definition at line 27 of file embKernel.c.
◆ embkernel_symbol_list
const char* const embkernel_symbol_list[] |
|
static |
Initial value:= {
"Rtos::sCurrentTask",
"Rtos::sListReady",
"Rtos::sListSleep",
"Rtos::sListSuspended",
"Rtos::sMaxPriorities",
"Rtos::sCurrentTaskCount",
Definition at line 48 of file embKernel.c.
Referenced by embkernel_get_symbol_list_to_lookup().