函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-27 13:00:53
Last Modify:2020-03-17 19:30:04 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:struct ring_buffer_iter *ring_buffer_read_prepare(struct ring_buffer *buffer, int cpu, gfp_t flags)

返回类型:struct ring_buffer_iter

参数:

类型参数名称
struct ring_buffer *buffer
intcpu
gfp_tflags
4209  如果非测试CPU信息则返回:NULL
4212  iter等于开辟内存
4213  如果非iter则返回:NULL
4216  cpu_buffer等于buffers[cpu]
4218  cpu_buffer等于cpu_buffer
4220  atomic_inc( & resize_disabled)
4221  atomic_inc( & record_disabled)
4223  返回:iter
调用者
名称描述
__tracing_open
ftrace_dump_buf