Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-28 11:55:23
Last Modify:2020-03-17 19:30:04 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:g_buffer_read_prepare - Prepare for a non consuming read of the buffer*@buffer: The ring buffer to read from*@cpu: The cpu buffer to iterate over*@flags: gfp flags to use for memory allocation* This performs the initial preparations necessary to iterate

Proto:struct ring_buffer_iter *ring_buffer_read_prepare(struct ring_buffer *buffer, int cpu, gfp_t flags)

Type:struct ring_buffer_iter

Parameter:

TypeParameterName
struct ring_buffer *buffer
intcpu
gfp_tflags
4209  If Not pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then Return NULL
4212  iter = Allocation memory
4213  If Not iter Then Return NULL
4216  cpu_buffer = buffers[cpu]
4218  cpu_buffer = cpu_buffer
4220  atomic_inc( & resize_disabled)
4221  atomic_inc( & record_disabled)
4223  Return iter
Caller
NameDescribe
__tracing_open
ftrace_dump_buf