函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:g_buffer_oldest_event_ts - get the oldest event timestamp from the buffer*@buffer: The ring buffer*@cpu: The per CPU buffer to read from.

函数原型:u64 ring_buffer_oldest_event_ts(struct ring_buffer *buffer, int cpu)

返回类型:u64

参数:

类型参数名称
struct ring_buffer *buffer
intcpu
3353  ret等于0
3355  如果非测试CPU信息则返回:0
3358  cpu_buffer等于buffers[cpu]
3359  raw_spin_lock_irqsave( & serialize readers , flags)
3364  如果write to tail 恒等于reader_pagebpage等于reader_page
3366  否则bpage等于rb_set_head_page(cpu_buffer)
3368  如果bpageret等于 page time stamp
3370  raw_spin_unlock_irqrestore( & serialize readers , flags)
3372  返回:ret
调用者
名称描述
tracing_stats_read