Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rb_reader_lock

Proto:static inline bool rb_reader_lock(struct ring_buffer_per_cpu *cpu_buffer)

Type:bool

Parameter:

TypeParameterName
struct ring_buffer_per_cpu *cpu_buffer
4039  If Value is more likely to compile time(!in_nmi()) Then
4040  raw_spin_lock( & serialize readers )
4041  Return true
4053  If Define the various spin_lock methods. Note we define these* regardless of whether CONFIG_SMP or CONFIG_PREEMPTION are set. The* various methods are defined as nops in the case they are not* required.( & serialize readers ) Then Return true
4057  atomic_inc( & record_disabled)
4058  Return false
Caller
NameDescribe
ring_buffer_peekg_buffer_peek - peek at the next event to be read*@buffer: The ring buffer to read*@cpu: The cpu to peak at*@ts: The timestamp counter of this event
ring_buffer_consumeg_buffer_consume - return an event and consume it*@buffer: The ring buffer to get the next event from*@cpu: the cpu to read the buffer from*@ts: a variable to store the timestamp (may be NULL)*@lost_events: a variable to store if events were lost (may be
ring_buffer_emptyd_buffer_empty - is the ring buffer empty?*@buffer: The ring buffer to test
ring_buffer_empty_cpug_buffer_empty_cpu - is a cpu buffer of a ring buffer empty?*@buffer: The ring buffer*@cpu: The CPU buffer to test