函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace.c Create Date:2022-07-27 13:04:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:void tracing_record_taskinfo_sched_switch(struct task_struct *prev, struct task_struct *next, int flags)

返回类型:void

参数:

类型参数名称
struct task_struct *prev
struct task_struct *next
intflags
2381  如果tracing_record_taskinfo_skip(flags)则返回
2388  done等于非flags按位与TRACE_RECORD_CMDLINE的值或trace_save_cmdline(prev)
2389  done与等于非flags按位与TRACE_RECORD_CMDLINE的值或trace_save_cmdline(next)
2390  done与等于非flags按位与TRACE_RECORD_TGID的值或trace_save_tgid(prev)
2391  done与等于非flags按位与TRACE_RECORD_TGID的值或trace_save_tgid(next)
2394  如果非done则返回
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)
调用者
名称描述
probe_sched_switch