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

Name:rb_calculate_event_length

Proto:static unsigned rb_calculate_event_length(unsigned length)

Type:unsigned

Parameter:

TypeParameterName
unsignedlength
2380  If Not length Then length++
2383  If length > RB_MAX_SMALL_DATA Then length += size of array[0]
2386  length += RB_EVNT_HDR_SIZE
2387  length = @a is a power of 2 value (length, RB_ALIGNMENT)
2401  If length == RB_LEN_TIME_EXTEND + RB_ALIGNMENT Then length += RB_ALIGNMENT
2404  Return length
Caller
NameDescribe
rb_reserve_next_event