Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\trace\events\sched.h Create Date:2022-07-28 08:57:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Tracepoint for task switches, performed by the scheduler:

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

Type:void

Parameter:

TypeParameterName
boolpreempt
struct task_struct *prev
struct task_struct *next

NULL

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