Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tracing_start_sched_switch

Proto:static void tracing_start_sched_switch(int ops)

Type:void

Parameter:

TypeParameterName
intops
94  mutex_lock( & sched_register_mutex)
95  sched_register = Not sched_cmdline_ref && Not sched_tgid_ref
98  Case ops == RECORD_CMDLINE
99  sched_cmdline_ref++
100  Break
102  Case ops == RECORD_TGID
103  sched_tgid_ref++
104  Break
107  If sched_register && (sched_cmdline_ref || sched_tgid_ref) Then tracing_sched_register()
109  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
Caller
NameDescribe
tracing_start_cmdline_record
tracing_start_tgid_record