OpenOCD
embKernel.c File Reference
Include dependency graph for embKernel.c:

Go to the source code of this file.

Data Structures

struct  embKernel_params
 

Macros

#define EMBKERNEL_MAX_THREAD_NAME_STR_SIZE   (64)
 

Enumerations

enum  {
  SYMBOL_ID_sCurrentTask = 0, SYMBOL_ID_sListReady = 1, SYMBOL_ID_sListSleep = 2, SYMBOL_ID_sListSuspended = 3,
  SYMBOL_ID_sMaxPriorities = 4, SYMBOL_ID_sCurrentTaskCount = 5
}
 

Functions

static int embKernel_create (struct target *target)
 
static bool embKernel_detect_rtos (struct target *target)
 
static int embKernel_get_symbol_list_to_lookup (symbol_table_elem_t *symbol_list[])
 
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 int embKernel_get_thread_reg_list (struct rtos *rtos, int64_t thread_id, char **hex_reg_list)
 
static int embKernel_update_threads (struct rtos *rtos)
 

Variables

static const struct
embKernel_params 
embKernel_params_list []
 
struct rtos_type embKernel_rtos
 
static const char *const embKernel_symbol_list []
 

Macro Definition Documentation

#define EMBKERNEL_MAX_THREAD_NAME_STR_SIZE   (64)

Definition at line 32 of file embKernel.c.

Referenced by embKernel_get_tasks_details().

Enumeration Type Documentation

anonymous enum
Enumerator
SYMBOL_ID_sCurrentTask 
SYMBOL_ID_sListReady 
SYMBOL_ID_sListSleep 
SYMBOL_ID_sListSuspended 
SYMBOL_ID_sMaxPriorities 
SYMBOL_ID_sCurrentTaskCount 

Definition at line 50 of file embKernel.c.

Function Documentation

static int embKernel_create ( struct target target)
static
static bool embKernel_detect_rtos ( struct target target)
static
static int embKernel_get_symbol_list_to_lookup ( symbol_table_elem_t symbol_list[])
static

Definition at line 332 of file embKernel.c.

References ARRAY_SIZE, and embKernel_symbol_list.

static int embKernel_get_thread_reg_list ( struct rtos rtos,
int64_t  thread_id,
char **  hex_reg_list 
)
static

Variable Documentation

const struct embKernel_params embKernel_params_list[]
static
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 82 of file embKernel.c.

struct rtos_type embKernel_rtos
Initial value:
= {
.name = "embKernel",
.detect_rtos = embKernel_detect_rtos,
.create = embKernel_create,
.update_threads = embKernel_update_threads,
.get_thread_reg_list =
.get_symbol_list_to_lookup = embKernel_get_symbol_list_to_lookup,
}
static int embKernel_create(struct target *target)
Definition: embKernel.c:119
static bool embKernel_detect_rtos(struct target *target)
Definition: embKernel.c:110
static int embKernel_get_symbol_list_to_lookup(symbol_table_elem_t *symbol_list[])
Definition: embKernel.c:332
static int embKernel_get_thread_reg_list(struct rtos *rtos, int64_t thread_id, char **hex_reg_list)
Definition: embKernel.c:303
static int embKernel_update_threads(struct rtos *rtos)
Definition: embKernel.c:183

Definition at line 40 of file embKernel.c.

const char* const embKernel_symbol_list[]
static
Initial value:
= {
"Rtos::sCurrentTask",
"Rtos::sListReady",
"Rtos::sListSleep",
"Rtos::sListSuspended",
"Rtos::sMaxPriorities",
"Rtos::sCurrentTaskCount",
NULL }
#define NULL
Definition: usb.h:27

Definition at line 59 of file embKernel.c.

Referenced by embKernel_get_symbol_list_to_lookup().