Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:u64 ring_buffer_oldest_event_ts(struct ring_buffer *buffer, int cpu)

Type:u64

Parameter:

TypeParameterName
struct ring_buffer *buffer
intcpu
3353  ret = 0
3355  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 0
3358  cpu_buffer = buffers[cpu]
3359  raw_spin_lock_irqsave( & serialize readers , flags)
3364  If write to tail == reader_page Then bpage = reader_page
3366  Else bpage = rb_set_head_page(cpu_buffer)
3368  If bpage Then ret = page time stamp
3370  raw_spin_unlock_irqrestore( & serialize readers , flags)
3372  Return ret
Caller
NameDescribe
tracing_stats_read