Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:36:04
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Various schedule()-time debugging checks and statistics:

Proto:static inline void schedule_debug(struct task_struct *prev, bool preempt)

Type:void

Parameter:

TypeParameterName
struct task_struct *prev
boolpreempt
3896  If Value for the false possibility is greater at compile time(Check whether we were atomic before we did preempt_disable():* (used by the scheduler)()) Then
3897  Print scheduling while atomic bug:
3898  preempt_count_set(PREEMPT_DISABLED)
3900  rcu_sleep_check()
3902  profile_hit(SCHED_PROFILING, __builtin_return_address(0))
3904  schedstat_inc(sched_count)
Caller
NameDescribe
__schedule__schedule() is the main scheduler function.* The main means of driving the scheduler and thus entering this function are:* 1. Explicit blocking: mutex, semaphore, waitqueue, etc.* 2. TIF_NEED_RESCHED flag is checked on interrupt and userspace return