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

Name:rb_update_write_stamp

Proto:static __always_inline void rb_update_write_stamp(struct ring_buffer_per_cpu *cpu_buffer, struct ring_buffer_event *event)

Type:void

Parameter:

TypeParameterName
struct ring_buffer_per_cpu *cpu_buffer
struct ring_buffer_event *event
2584  If rb_event_is_commit(cpu_buffer, event) Then
2589  If Not rb_event_index(event) Then write_stamp = page time stamp
2592  Else if type_len == RINGBUF_TYPE_TIME_EXTEND Then
2594  write_stamp += delta
2595  Else if type_len == RINGBUF_TYPE_TIME_STAMP Then
2597  write_stamp = delta
2598  Else write_stamp += time_delta
Caller
NameDescribe
rb_commit
ring_buffer_discard_commitg_buffer_commit_discard - discard an event that has not been committed*@buffer: the ring buffer*@event: non committed event to discard* Sometimes an event that is in the ring buffer needs to be ignored