/kernel/liteos_m/kernel/include/ |
D | los_sortlink.h | 84 STATIC INLINE UINT64 GetSortLinkNextExpireTime(SortLinkAttribute *sortHead, UINT64 startTime, UINT3… in GetSortLinkNextExpireTime() argument 94 if (listSorted->responseTime <= (startTime + tickPrecision)) { in GetSortLinkNextExpireTime() 95 return (startTime + tickPrecision); in GetSortLinkNextExpireTime() 101 STATIC INLINE UINT64 OsGetNextExpireTime(UINT64 startTime, UINT32 tickPrecision) in OsGetNextExpireTime() argument 103 UINT64 taskExpireTime = GetSortLinkNextExpireTime(&g_taskSortLink, startTime, tickPrecision); in OsGetNextExpireTime() 105 UINT64 swtmrExpireTime = GetSortLinkNextExpireTime(&g_swtmrSortLink, startTime, tickPrecision); in OsGetNextExpireTime() 114 VOID OsAdd2SortLink(SortLinkList *node, UINT64 startTime, UINT32 waitTicks, SortLinkType type);
|
D | los_swtmr.h | 285 UINT64 startTime; member 503 extern VOID OsSwtmrResponseTimeReset(UINT64 startTime);
|
/kernel/liteos_m/kernel/src/ |
D | los_sched.c | 78 LOS_ASSERT(currTime >= taskCB->startTime); in OsTimeSliceUpdate() 80 INT32 incTime = currTime - taskCB->startTime; in OsTimeSliceUpdate() 84 taskCB->startTime = currTime; in OsTimeSliceUpdate() 134 endTime = runTask->startTime + timeSlice; in OsSchedUpdateExpireTime() 418 UINT64 OsSchedGetNextExpireTime(UINT64 startTime) in OsSchedGetNextExpireTime() argument 420 return OsGetNextExpireTime(startTime, g_tickResponsePrecision); in OsSchedGetNextExpireTime() 437 taskCB->startTime = OsTimeConvertFreq(taskCB->startTime, oldFreq, g_sysClock); in TaskSchedTimeConvertFreq() 504 newTask->startTime = OsGetCurrSchedTimeCycle(); in OsSchedStart() 507 OsTickSysTimerStartTimeSet(newTask->startTime); in OsSchedStart() 510 OsSwtmrResponseTimeReset(newTask->startTime); in OsSchedStart() [all …]
|
D | los_swtmr.c | 142 UINT64 usedTime, startTime; in OsSwtmrCalcStartTime() local 147 startTime = GET_SORTLIST_VALUE(&alignSwtmr->stSortList); in OsSwtmrCalcStartTime() 150 startTime = alignSwtmr->startTime + (usedTime / swtmrTime) * swtmrTime; in OsSwtmrCalcStartTime() 153 return startTime; in OsSwtmrCalcStartTime() 236 swtmr->startTime = OsSwtmrFindAlignPos(currTime, swtmr); in OsSwtmrStart() 239 OsAdd2SortLink(&swtmr->stSortList, swtmr->startTime, swtmr->uwInterval, OS_SORT_LINK_SWTMR); in OsSwtmrStart() 312 swtmr->startTime = GET_SORTLIST_VALUE(sortList); in OsSwtmrScan() 329 LITE_OS_SEC_TEXT VOID OsSwtmrResponseTimeReset(UINT64 startTime) in OsSwtmrResponseTimeReset() argument 341 swtmr->startTime = startTime; in OsSwtmrResponseTimeReset() 342 OsSwtmrStart(startTime, swtmr); in OsSwtmrResponseTimeReset() [all …]
|
D | los_sortlink.c | 78 VOID OsAdd2SortLink(SortLinkList *node, UINT64 startTime, UINT32 waitTicks, SortLinkType type) in OsAdd2SortLink() argument 94 SET_SORTLIST_VALUE(node, startTime + OS_SYS_TICK_TO_CYCLE(waitTicks)); in OsAdd2SortLink()
|
/kernel/liteos_a/kernel/base/core/ |
D | los_swtmr.c | 122 data->base.startTime = swtmr->startTime; in SwtmrDebugDataUpdate() 143 UINT64 waitTime = currTime - data->startTime; in SwtmrDebugWaitTimeCalculate() 165 UINT64 startTime = OsGetCurrSchedTimeCycle(); in SwtmrHandler() local 169 UINT64 runTime = OsGetCurrSchedTimeCycle() - startTime; in SwtmrHandler() 175 runTime = startTime - data->readyStartTime; in SwtmrHandler() 185 STATIC INLINE VOID SwtmrWake(SwtmrRunqueue *srq, UINT64 startTime, SortLinkList *sortList) in SwtmrWake() argument 212 swtmr->startTime = startTime; in SwtmrWake() 240 UINT64 startTime = GET_SORTLIST_VALUE(sortList); in ScanSwtmrTimeList() local 244 SwtmrWake(srq, startTime, sortList); in ScanSwtmrTimeList() 485 UINT64 responseTime = swtmr->startTime + period; in SwtmrToStart() [all …]
|
/kernel/liteos_m/components/cpup/ |
D | los_cpup.c | 198 g_cpup[taskID].startTime = CpupTimeUsGet(); in OsTskCycleStart() 220 if (g_cpup[taskID].startTime == 0) { in OsTskCycleEnd() 225 if (cpuTime < g_cpup[taskID].startTime) { in OsTskCycleEnd() 229 g_cpup[taskID].allTime += (cpuTime - g_cpup[taskID].startTime); in OsTskCycleEnd() 230 g_cpup[taskID].startTime = 0; in OsTskCycleEnd() 254 if (g_cpup[taskID].startTime != 0) { in OsTskCycleEndStart() 255 if (cpuTime < g_cpup[taskID].startTime) { in OsTskCycleEndStart() 259 g_cpup[taskID].allTime += (cpuTime - g_cpup[taskID].startTime); in OsTskCycleEndStart() 260 g_cpup[taskID].startTime = 0; in OsTskCycleEndStart() 265 g_cpup[taskID].startTime = cpuTime; in OsTskCycleEndStart() [all …]
|
D | los_cpup.h | 136 UINT64 startTime; /**< Time before a task is invoked */ member 147 UINT64 startTime; /**< Time before a task is invoked */ member
|
/kernel/liteos_a/kernel/extended/plimit/ |
D | los_schedlimit.c | 88 if ((schedLimit->startTime <= currTime) && (schedLimit->allRuntime < schedLimit->quota)) { in OsSchedLimitUpdateRuntime() 93 if (schedLimit->startTime <= currTime) { in OsSchedLimitUpdateRuntime() 94 schedLimit->startTime = currTime + schedLimit->period; in OsSchedLimitUpdateRuntime() 107 if (schedLimit->startTime >= currTime) { in OsSchedLimitCheckTime()
|
D | los_schedlimit.h | 46 UINT64 startTime; member
|
/kernel/liteos_a/kernel/base/sched/ |
D | los_sched.c | 133 taskCB->schedStat.pendTime += currTime - taskCB->startTime; in SchedTimeoutTaskWake() 344 newTask->startTime = OsGetCurrSchedTimeCycle(); in OsSchedStart() 346 OsSwtmrResponseTimeReset(newTask->startTime); in OsSchedStart() 416 UINT64 waitStartTime = newTask->startTime; in SchedTaskSwitch() 420 newTask->startTime = runTask->startTime; in SchedTaskSwitch() 423 newTask->startTime = OsGetCurrSchedTimeCycle(); in SchedTaskSwitch() 425 runTask->ops->timeSliceUpdate(rq, runTask, newTask->startTime); in SchedTaskSwitch() 436 newTask->schedStat.waitSchedTime += newTask->startTime - waitStartTime; in SchedTaskSwitch()
|
D | los_statistics.c | 188 UINT64 startTime; member 216 g_edfNode[g_edfNodePointer].startTime = taskCB->startTime; in EDFDebugRecord() 240 UINT64 startTime; in EDFInfoPrint() local 249 startTime = OS_SYS_CYCLE_TO_US(g_edfNode[idx].startTime); in EDFInfoPrint() 270 startTime, finishTime, nextfinishTime, allRuntime, timeSliceRealTime, in EDFInfoPrint()
|
D | los_deadline.c | 83 LOS_ASSERT(currTime >= taskCB->startTime); in EDFTimeSliceUpdate() 90 INT32 incTime = (currTime - taskCB->startTime - taskCB->irqUsedTime); in EDFTimeSliceUpdate() 95 taskCB->schedStat.allRuntime += (currTime - taskCB->startTime); in EDFTimeSliceUpdate() 100 taskCB->startTime = currTime; in EDFTimeSliceUpdate() 121 UINT64 endTime = taskCB->startTime + taskCB->timeSlice; in EDFTimeSliceGet() 232 runTask->startTime = OsGetCurrSchedTimeCycle(); in EDFYield() 249 taskCB->waitTime += taskCB->startTime; in EDFWaitTimeGet() 290 resumedTask->schedStat.pendTime += OsGetCurrSchedTimeCycle() - resumedTask->startTime; in EDFWake()
|
D | los_priority.c | 91 LOS_ASSERT(currTime >= taskCB->startTime); in HPFTimeSliceUpdate() 93 INT32 incTime = (currTime - taskCB->startTime - taskCB->irqUsedTime); in HPFTimeSliceUpdate() 107 taskCB->startTime = currTime; in HPFTimeSliceUpdate() 123 return (taskCB->startTime + timeSlice); in HPFTimeSliceGet() 251 taskCB->startTime = OsGetCurrSchedTimeCycle(); in HPFEnqueue() 292 runTask->startTime = OsGetCurrSchedTimeCycle(); in HPFYield() 308 taskCB->waitTime += taskCB->startTime; in HPFWaitTimeGet() 345 resumedTask->schedStat.pendTime += OsGetCurrSchedTimeCycle() - resumedTask->startTime; in HPFWake()
|
/kernel/liteos_a/kernel/base/include/ |
D | los_sortlink_pri.h | 70 STATIC INLINE UINT64 OsGetSortLinkNextExpireTime(SortLinkAttribute *sortHeader, UINT64 startTime, U… in OsGetSortLinkNextExpireTime() argument 82 if (listSorted->responseTime <= (startTime + tickPrecision)) { in OsGetSortLinkNextExpireTime() 84 return startTime + tickPrecision; in OsGetSortLinkNextExpireTime()
|
D | los_swtmr_pri.h | 109 extern VOID OsSwtmrResponseTimeReset(UINT64 startTime); 118 UINT64 startTime; member
|
/kernel/liteos_m/kal/posix/src/ |
D | poll.c | 159 struct timespec startTime = {0}; in PollTimedWait() local 166 clock_gettime(CLOCK_REALTIME, &startTime); in PollTimedWait() 180 last = (INT32)((curTime.tv_sec - startTime.tv_sec) * OS_SYS_MS_PER_SECOND + in PollTimedWait() 181 … (curTime.tv_nsec - startTime.tv_nsec) / (OS_SYS_NS_PER_SECOND / OS_SYS_MS_PER_SECOND)); in PollTimedWait()
|
/kernel/uniproton/src/om/cpup/ |
D | prt_cpup_thread_internal.h | 41 #define OS_TASK_CYCLE_START(taskId, curCycle) (OS_CPUP_PTR(taskId)->startTime = (curCycle)) 44 (OS_CPUP_PTR(taskId)->allTime += ((curCycle) - OS_CPUP_PTR(taskId)->startTime))
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/ |
D | It_posix_pthread_089.c | 94 struct timespec startTime, currentTime; in PthreadF02() local 115 clock_gettime(CLOCK_REALTIME, &startTime); in PthreadF02() 118 if (PthreadTimeF01(currentTime, startTime) > RUNTIME) { in PthreadF02()
|
D | It_posix_pthread_088.c | 95 struct timespec startTime, currentTime; in PthreadF02() local 114 clock_gettime(CLOCK_REALTIME, &startTime); in PthreadF02() 117 if (PthreadTimeF01(currentTime, startTime) > RUNTIME) { in PthreadF02()
|
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/ |
D | It_posix_pthread_088.cpp | 89 struct timespec startTime, currentTime; in pthread_f02() local 108 clock_gettime(CLOCK_REALTIME, &startTime); in pthread_f02() 111 if (PthreadTimeF01(currentTime, startTime) > RUNTIME) { in pthread_f02()
|
D | It_posix_pthread_089.cpp | 90 struct timespec startTime, currentTime; in pthread_f02() local 111 clock_gettime(CLOCK_REALTIME, &startTime); in pthread_f02() 114 if (PthreadTimeF01(currentTime, startTime) > RUNTIME) { in pthread_f02()
|
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/core/swtmr/smp/ |
D | It_smp_los_swtmr_002.c | 90 UINT64 startTime = LOS_CurrNanosec(); in Testcase() local 92 UINT64 usedTime = LOS_CurrNanosec() - startTime; in Testcase()
|
/kernel/liteos_a/kernel/extended/cpup/ |
D | los_cpup.c | 130 cycleIncrement = cycle - runTask->taskCpup.startTime; in OsCpupGuard() 192 cpup->startTime = cycle; in OsResetCpup() 263 if (runTaskCpup->startTime != 0) { in OsCpupCycleEndStart() 264 cycleIncrement = cpuCycle - runTaskCpup->startTime; in OsCpupCycleEndStart() 273 runTaskCpup->startTime = 0; in OsCpupCycleEndStart() 276 newTaskCpup->startTime = cpuCycle; in OsCpupCycleEndStart()
|
/kernel/uniproton/src/om/include/ |
D | prt_cpup_external.h | 37 U64 startTime; member
|