Home
last modified time | relevance | path

Searched refs:taskId (Results 1 – 25 of 29) sorted by relevance

12

/kernel/uniproton/src/om/cpup/
Dprt_cpup_thread_internal.h39 #define OS_CPUP_PTR(taskId) (&g_cpup[TSK_GET_INDEX((taskId))]) argument
41 #define OS_TASK_CYCLE_START(taskId, curCycle) (OS_CPUP_PTR(taskId)->startTime = (curCycle)) argument
43 #define OS_TASK_CYCLE_END(taskId, curCycle) \ argument
44 (OS_CPUP_PTR(taskId)->allTime += ((curCycle) - OS_CPUP_PTR(taskId)->startTime))
/kernel/liteos_m/components/trace/
Dlos_trace.h314 #define TASK_SWITCH_PARAMS(taskId, oldPriority, oldTaskStatus, newPriority, newTaskStatus) \ argument
315 taskId, oldPriority, oldTaskStatus, newPriority, newTaskStatus
316 #define TASK_PRIOSET_PARAMS(taskId, taskStatus, oldPrio, newPrio) taskId, taskStatus, oldPrio, newP… argument
317 #define TASK_CREATE_PARAMS(taskId, taskStatus, prio) taskId, taskStatus, prio argument
318 #define TASK_DELETE_PARAMS(taskId, taskStatus, usrStack) taskId, taskStatus, usrStack argument
319 #define TASK_SUSPEND_PARAMS(taskId, taskStatus, runTaskId) taskId, taskStatus, runTaskId argument
320 #define TASK_RESUME_PARAMS(taskId, taskStatus, prio) taskId, taskStatus, prio argument
321 #define TASK_SIGNAL_PARAMS(taskId, signal, schedFlag) // taskId, signal, schedFlag argument
Dtrace_online.c36 UINT32 OsTraceGetMaskTid(UINT32 taskId) in OsTraceGetMaskTid() argument
38 return taskId; in OsTraceGetMaskTid()
84 VOID OsTraceObjAdd(UINT32 eventType, UINT32 taskId) in OsTraceObjAdd() argument
87 OsTraceSendObj(OS_TCB_FROM_TID(taskId)); in OsTraceObjAdd()
Dtrace_offline.c84 VOID OsTraceObjAdd(UINT32 eventType, UINT32 taskId) in OsTraceObjAdd() argument
99 if (taskId < LOSCFG_BASE_CORE_TSK_LIMIT) { in OsTraceObjAdd()
100 g_tidMask[taskId]++; in OsTraceObjAdd()
103 OsTraceSetObj(obj, OS_TCB_FROM_TID(taskId)); in OsTraceObjAdd()
Dlos_trace_pri.h123 extern UINT32 OsTraceGetMaskTid(UINT32 taskId);
126 extern VOID OsTraceObjAdd(UINT32 eventType, UINT32 taskId);
/kernel/uniproton/src/core/kernel/task/
Dprt_task_init.c64 OS_SEC_L4_TEXT U32 OsTaskNameAdd(U32 taskId, const char *name) in OsTaskNameAdd() argument
66 struct TagTskCb *taskCb = GET_TCB_HANDLE(taskId); in OsTaskNameAdd()
75 OS_SEC_L4_TEXT void OsTaskNameGet(U32 taskId, char **taskName) in OsTaskNameGet() argument
77 struct TagTskCb *taskCb = GET_TCB_HANDLE(taskId); in OsTaskNameGet()
149 OS_SEC_L4_TEXT void OsTskEntry(TskHandle taskId) in OsTskEntry() argument
154 (void)taskId; in OsTskEntry()
265 OS_SEC_ALW_INLINE INLINE U32 OsTaskCreateRsrcInit(U32 taskId, struct TskInitParam *initParam, struc… in OsTaskCreateRsrcInit() argument
273 ret = g_taskNameAdd(taskId, initParam->name); in OsTaskCreateRsrcInit()
332 U32 taskId; in OsTaskCreateOnly() local
350 taskId = taskCb->taskPid; in OsTaskCreateOnly()
[all …]
Dprt_task_sem.c22 OS_SEC_L4_TEXT U32 PRT_TaskGetPendSem(TskHandle taskId, U16 *semId, U16 *pendState) in PRT_TaskGetPendSem() argument
33 if (CHECK_TSK_PID_OVERFLOW(taskId)) { in PRT_TaskGetPendSem()
37 taskCb = GET_TCB_HANDLE(taskId); in PRT_TaskGetPendSem()
Dprt_task_info.c186 OS_SEC_L4_TEXT U32 PRT_TaskGetName(TskHandle taskId, char **name) in PRT_TaskGetName() argument
191 if (CHECK_TSK_PID_OVERFLOW(taskId)) { in PRT_TaskGetName()
199 taskCb = GET_TCB_HANDLE(taskId); in PRT_TaskGetName()
209 g_taskNameGet(taskId, name); in PRT_TaskGetName()
/kernel/liteos_m/components/shell/src/cmds/
Dtask_shellcmd.c38 LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdTskInfoGet(UINT32 taskId) in OsShellCmdTskInfoGet() argument
40 if (taskId == OS_ALL_TASK_MASK) { in OsShellCmdTskInfoGet()
49 size_t taskId = OS_ALL_TASK_MASK; in OsShellCmdDumpTask() local
52 return OsShellCmdTskInfoGet((UINT32)taskId); in OsShellCmdDumpTask()
/kernel/liteos_a/kernel/include/
Dlos_trace.h341 #define TASK_SWITCH_PARAMS(taskId, oldPriority, oldTaskStatus, newPriority, newTaskStatus) \ argument
342 taskId, oldPriority, oldTaskStatus, newPriority, newTaskStatus
343 #define TASK_PRIOSET_PARAMS(taskId, taskStatus, oldPrio, newPrio) taskId, taskStatus, oldPrio, newP… argument
344 #define TASK_CREATE_PARAMS(taskId, taskStatus, prio) taskId, taskStatus, prio argument
345 #define TASK_DELETE_PARAMS(taskId, taskStatus, usrStack) taskId, taskStatus, usrStack argument
346 #define TASK_SUSPEND_PARAMS(taskId, taskStatus, runTaskId) taskId, taskStatus, runTaskId argument
347 #define TASK_RESUME_PARAMS(taskId, taskStatus, prio) taskId, taskStatus, prio argument
348 #define TASK_SIGNAL_PARAMS(taskId, signal, schedFlag) // taskId, signal, schedFlag argument
/kernel/uniproton/src/core/kernel/include/
Dprt_task_external.h107 typedef void (*TaskNameGetFunc)(U32 taskId, char **taskName);
108 typedef U32 (*TaskNameAddFunc)(U32 taskId, const char *name);
144 #define TSK_GET_INDEX(taskId) ((taskId) - g_tskBaseId) argument
150 #define CHECK_TSK_PID_OVERFLOW(taskId) (TSK_GET_INDEX(taskId) >= (g_tskMaxNum + 1)) argument
182 extern void OsTskEntry(TskHandle taskId);
/kernel/liteos_a/kernel/extended/trace/
Dtrace_online.c35 UINT32 OsTraceGetMaskTid(UINT32 taskId) in OsTraceGetMaskTid() argument
37 return taskId; in OsTraceGetMaskTid()
83 VOID OsTraceObjAdd(UINT32 eventType, UINT32 taskId) in OsTraceObjAdd() argument
86 OsTraceSendObj(OS_TCB_FROM_TID(taskId)); in OsTraceObjAdd()
Dtrace_offline.c82 VOID OsTraceObjAdd(UINT32 eventType, UINT32 taskId) in OsTraceObjAdd() argument
97 if (taskId < LOSCFG_BASE_CORE_TSK_LIMIT) { in OsTraceObjAdd()
98 g_tidMask[taskId]++; in OsTraceObjAdd()
101 OsTraceSetObj(obj, OS_TCB_FROM_TID(taskId)); in OsTraceObjAdd()
Dlos_trace_pri.h120 extern UINT32 OsTraceGetMaskTid(UINT32 taskId);
123 extern VOID OsTraceObjAdd(UINT32 eventType, UINT32 taskId);
/kernel/liteos_m/testsuites/sample/kernel/atomic/
Dit_los_atomic_007.c49 UINT32 taskId[ATOMIC_MUTI_TASK_NUM]; in TestCase() local
70 ret = LOS_TaskCreate(&taskId[i], &task[i]); in TestCase()
79 (VOID)LOS_TaskDelete(taskId[i]); in TestCase()
Dit_los_atomic_008.c50 UINT32 taskId[ATOMIC_MUTI_TASK_NUM]; in TestCase() local
71 ret = LOS_TaskCreate(&taskId[i], &task[i]); in TestCase()
81 (VOID)LOS_TaskDelete(taskId[i]); in TestCase()
Dit_los_atomic_009.c60 UINT32 taskId[DB_ATOMIC_MUTI_TASK_NUM]; in TestCase() local
91 ret = LOS_TaskCreate(&taskId[i], &task[i]); in TestCase()
100 (VOID)LOS_TaskDelete(taskId[i]); in TestCase()
/kernel/uniproton/src/arch/cpu/armv7-m/common/
Dprt_port.c20 OS_SEC_L4_TEXT void *OsTskContextInit(U32 taskId, U32 stackSize, uintptr_t *topStack, uintptr_t fun… in OsTskContextInit() argument
40 context->r0 = taskId; in OsTskContextInit()
/kernel/uniproton/src/core/ipc/event/
Dprt_event.c162 OS_SEC_L4_TEXT U32 PRT_EventWrite(U32 taskId, U32 events) in PRT_EventWrite() argument
170 if (CHECK_TSK_PID_OVERFLOW(taskId)) { in PRT_EventWrite()
179 taskCb = (struct TagTskCb *)GET_TCB_HANDLE(taskId); in PRT_EventWrite()
/kernel/uniproton/doc/
Dgetting_started.md49 TskHandle taskId;
58 ret = PRT_TaskCreate(&taskId, &taskParam);
/kernel/uniproton/src/net/lwip-2.1/src/
Dsys_arch.c44 TskHandle taskId = OS_ERRNO_TSK_ID_INVALID; in sys_thread_new() local
59 ret = PRT_TaskCreate(&taskId, &task); in sys_thread_new()
65 ret = PRT_TaskResume(taskId); in sys_thread_new()
70 return taskId; in sys_thread_new()
/kernel/uniproton/doc/design/
Dinterface_description.md375 U32 PRT_EventWrite(U32 taskId, U32 events)
377 写任务ID为taskId的指定事件,可以一次性写多个事件,可以在UniProton接管的中断中调用。
382 taskId [IN] 类型#U32,任务ID,表示要对某个任务进行写事件操作。
896 U32 PRT_TaskGetPendSem(TskHandle taskId, U16 *semId, U16 *pendState)
903 taskId [IN] 类型#TskHandle,任务PID。
911 U32 PRT_TaskGetName(TskHandle taskId, char **name)
918 taskId [IN] 类型#TskHandle,任务ID。
/kernel/uniproton/src/arch/include/
Dprt_cpu_external.h30 extern void *OsTskContextInit(U32 taskId, U32 stackSize, uintptr_t *topStack, uintptr_t funcTskEntr…
/kernel/uniproton/src/include/uapi/
Dprt_event.h192 extern U32 PRT_EventWrite(U32 taskId, U32 events);
Dprt_task.h1267 extern U32 PRT_TaskGetPendSem(TskHandle taskId, U16 *semId, U16 *pendState);
1291 extern U32 PRT_TaskGetName(TskHandle taskId, char **name);

12