函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:racing_start - quick start of the tracer* If tracing is enabled but was stopped by tracing_stop,* this will start the tracer back up.

函数原型:void tracing_start(void)

返回类型:void

参数:

2106  如果Kill all tracing for good (never come back).* It is initialized to 1 but will turn to zero if the initialization* of the tracer is successful. But that is the only place that sets* this back to zero.则返回
2109  raw_spin_lock_irqsave( & start_lock, flags)
2110  如果stop_count先自减则
2111  如果stop_count小于0则
2113  WARN_ON_ONCE(1)
2114  stop_count等于0
2116  转到:out
2120  r sched/core.c and kernel_lock.c: ( & * max_lock is used to protect the swapping of buffers * when taking a max snapshot. The buffers themselves are * protected by per_cpu spinlocks. But the action of the swap * needs its own lock. * This is defined as a arch_spinlock_t in order to help * with)
2122  buffer等于buffer
2123  如果bufferg_buffer_record_enable - enable writes to the buffer*@buffer: The ring buffer to enable writes* Note, multiple disables will need the same number of enables* to truly enable the writing (much like preempt_disable).
2132  arch_spin_unlock( & * max_lock is used to protect the swapping of buffers * when taking a max snapshot. The buffers themselves are * protected by per_cpu spinlocks. But the action of the swap * needs its own lock. * This is defined as a arch_spinlock_t in order to help * with)
2134  out :
2135  raw_spin_unlock_irqrestore( & start_lock, flags)
调用者
名称描述
tracing_start_tr