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:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Tracepoint for waking up a new task:

Proto:static inline long __trace_sched_switch_state(bool preempt, struct task_struct *p)

Type:long

Parameter:

TypeParameterName
boolpreempt
struct task_struct *p
120  If preempt Then Return TASK_REPORT_MAX
129  state = task_state_index(p)
131  Return If state Then 1 << state - 1 Else state