函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:int tracing_update_buffers(void)

返回类型:int

参数:

5683  ret等于0
5685  mutex_lock( & race_types_lock is used to protect the trace_types list.)
5686  如果非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.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  返回:ret
调用者
名称描述
trace_printk_init_buffers
ftrace_event_write
event_enable_write
system_enable_write
ftrace_event_pid_write