函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:racing_record_taskinfo - record the task info of a task*@task: task to record*@flags: TRACE_RECORD_CMDLINE for recording comm* TRACE_RECORD_TGID for recording tgid

函数原型:void tracing_record_taskinfo(struct task_struct *task, int flags)

返回类型:void

参数:

类型参数名称
struct task_struct *task
intflags
2351  如果tracing_record_taskinfo_skip(flags)则返回
2358  done等于非flags按位与TRACE_RECORD_CMDLINE的值或trace_save_cmdline(task)
2359  done与等于非flags按位与TRACE_RECORD_TGID的值或trace_save_tgid(task)
2362  如果非done则返回
2365  __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)
调用者
名称描述
tracing_record_cmdlineHelpers to record a specific task information
tracing_record_tgid
probe_sched_wakeup