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

Name:_update_event - update event type and data*@event: the event to update*@type: the type of event*@length: the size of the event field in the ring buffer* Update the type and data fields of the event

Proto:static void rb_update_event(struct ring_buffer_per_cpu *cpu_buffer, struct ring_buffer_event *event, struct rb_event_info *info)

Type:void

Parameter:

TypeParameterName
struct ring_buffer_per_cpu *cpu_buffer
struct ring_buffer_event *event
struct rb_event_info *info
2347  length = length
2348  delta = delta
2351  If Value for the false possibility is greater at compile time(!rb_event_is_commit(cpu_buffer, event)) Then delta = 0
2358  If Value for the false possibility is greater at compile time(add_timestamp) Then
2359  abs = ring_buffer_time_stamp_abs(buffer)
2361  event = Slow path, do not inline
2362  length -= RB_LEN_TIME_EXTEND
2363  delta = 0
2366  time_delta = delta
2367  length -= RB_EVNT_HDR_SIZE
2368  If length > RB_MAX_SMALL_DATA Then
2369  type_len = 0
2370  array[0] = length
2371  Else type_len = DIV_ROUND_UP(length, RB_ALIGNMENT)
Caller
NameDescribe
__rb_reserve_next