函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__tracing_resize_ring_buffer

函数原型:static int __tracing_resize_ring_buffer(struct trace_array *tr, unsigned long size, int cpu)

返回类型:int

参数:

类型参数名称
struct trace_array *tr
unsigned longsize
intcpu
5589  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. = true
5592  如果非buffer则返回:0
5595  ret等于g_buffer_resize - resize the ring buffer*@buffer: the buffer to resize.*@size: the new size.*@cpu_id: the cpu buffer to resize* Minimum size is 2 * BUF_PAGE_SIZE.* Returns 0 on success and < 0 on failure.
5596  如果ret小于0则返回:ret
5637  如果cpu恒等于RING_BUFFER_ALL_CPUSset_buffer_entries( & trace_buffer, size)
5639  否则({
5640  cpu
5640  ({
5640  循环
5640  const void * __vpp_verify = NULL
5640  当0循环
5640  data
5640  })
5640  })->entries = size
5642  返回:ret
调用者
名称描述
tracing_resize_ring_buffer
tracing_update_buffersracing_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
tracing_set_tracer