函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-27 12:59:39
Last Modify:2020-03-17 19:30:04 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:_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

函数原型:static void rb_update_event(struct ring_buffer_per_cpu *cpu_buffer, struct ring_buffer_event *event, struct rb_event_info *info)

返回类型:void

参数:

类型参数名称
struct ring_buffer_per_cpu *cpu_buffer
struct ring_buffer_event *event
struct rb_event_info *info
2347  length等于length
2348  delta等于delta
2351  如果此条件成立可能性小(为编译器优化)(!rb_event_is_commit(cpu_buffer, event))则delta等于0
2358  如果此条件成立可能性小(为编译器优化)(add_timestamp)则
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  如果length大于RB_MAX_SMALL_DATA
2369  type_len等于0
2370  array[0]等于length
2371  否则type_len等于DIV_ROUND_UP(length, RB_ALIGNMENT)
调用者
名称描述
__rb_reserve_next