函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:g_buffer_entries_cpu - get the number of entries in a cpu buffer*@buffer: The ring buffer*@cpu: The per CPU buffer to get the entries from.

函数原型:unsigned long ring_buffer_entries_cpu(struct ring_buffer *buffer, int cpu)

返回类型:unsigned long

参数:

类型参数名称
struct ring_buffer *buffer
intcpu
3405  如果非测试CPU信息则返回:0
3408  cpu_buffer等于buffers[cpu]
3410  返回:The total entries in the ring buffer is the running counter* of entries entered into the ring buffer, minus the sum of* the entries read from the ring buffer and the number of* entries that were overwritten.
调用者
名称描述
get_total_entries_cpu
tracing_buffers_splice_read
tracing_stats_read