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:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tracing_stop_sched_switch

Proto:static void tracing_stop_sched_switch(int ops)

Type:void

Parameter:

TypeParameterName
intops
114  mutex_lock( & sched_register_mutex)
117  Case ops == RECORD_CMDLINE
118  sched_cmdline_ref--
119  Break
121  Case ops == RECORD_TGID
122  sched_tgid_ref--
123  Break
126  If Not sched_cmdline_ref && Not sched_tgid_ref Then tracing_sched_unregister()
128  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_stop_cmdline_record
tracing_stop_tgid_record