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:51
Last Modify:2020-03-17 19:30:04 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:unsigned long ring_buffer_entries_cpu(struct ring_buffer *buffer, int cpu)

Type:unsigned long

Parameter:

TypeParameterName
struct ring_buffer *buffer
intcpu
3405  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
3408  cpu_buffer = buffers[cpu]
3410  Return 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.
Caller
NameDescribe
get_total_entries_cpu
tracing_buffers_splice_read
tracing_stats_read