Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace.c Create Date:2022-07-28 11:58:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:racing_record_taskinfo_sched_switch - record task info for sched_switch*@prev: previous task during sched_switch*@next: next task during sched_switch*@flags: TRACE_RECORD_CMDLINE for recording comm* TRACE_RECORD_TGID for recording tgid

Proto:void tracing_record_taskinfo_sched_switch(struct task_struct *prev, struct task_struct *next, int flags)

Type:void

Parameter:

TypeParameterName
struct task_struct *prev
struct task_struct *next
intflags
2381  If tracing_record_taskinfo_skip(flags) Then Return
2388  done = Not (flags & TRACE_RECORD_CMDLINE) || trace_save_cmdline(prev)
2389  done &= Not (flags & TRACE_RECORD_CMDLINE) || trace_save_cmdline(next)
2390  done &= Not (flags & TRACE_RECORD_TGID) || trace_save_tgid(prev)
2391  done &= Not (flags & TRACE_RECORD_TGID) || trace_save_tgid(next)
2394  If Not done Then Return
2397  __this_cpu_write(To prevent the comm cache from being overwritten when no* tracing is active, only save the comm when a trace event* occurred., false)
Caller
NameDescribe
probe_sched_switch