Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:void tracing_record_taskinfo(struct task_struct *task, int flags)

Type:void

Parameter:

TypeParameterName
struct task_struct *task
intflags
2351  If tracing_record_taskinfo_skip(flags) Then Return
2358  done = Not (flags & TRACE_RECORD_CMDLINE) || trace_save_cmdline(task)
2359  done &= Not (flags & TRACE_RECORD_TGID) || trace_save_tgid(task)
2362  If Not done Then Return
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)
Caller
NameDescribe
tracing_record_cmdlineHelpers to record a specific task information
tracing_record_tgid
probe_sched_wakeup