Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:racing_update_buffers - used by tracing facility to expand ring buffers* To save on memory when the tracing is never used on a system with it* configured in

Proto:int tracing_update_buffers(void)

Type:int

Parameter:Nothing

5683  ret = 0
5685  mutex_lock( & race_types_lock is used to protect the trace_types list.)
5686  If Not On boot up, the ring buffer is set to the minimum size, so that* we do not waste memory on systems that are not using tracing. Then ret = __tracing_resize_ring_buffer( & The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing., trace_buf_size, RING_BUFFER_ALL_CPUS)
5689  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.
5691  Return ret
Caller
NameDescribe
trace_printk_init_buffers
ftrace_event_write
event_enable_write
system_enable_write
ftrace_event_pid_write