Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__tracing_resize_ring_buffer

Proto:static int __tracing_resize_ring_buffer(struct trace_array *tr, unsigned long size, int cpu)

Type:int

Parameter:

TypeParameterName
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  If Not buffer Then Return 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  If ret < 0 Then Return ret
5637  If cpu == RING_BUFFER_ALL_CPUS Then set_buffer_entries( & trace_buffer, size)
5639  Else ({
5640  cpu
5640  ({
5640  Do
5640  const void * __vpp_verify = NULL
5640  When 0 cycle
5640  data
5640  })
5640  })->entries = size
5642  Return ret
Caller
NameDescribe
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