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

Name:g_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

Proto:void ring_buffer_discard_commit(struct ring_buffer *buffer, struct ring_buffer_event *event)

Type:void

Parameter:

TypeParameterName
struct ring_buffer *buffer
struct ring_buffer_event *event
3072  rb_event_discard(event)
3074  cpu = smp_processor_id()
3075  cpu_buffer = buffers[cpu]
3082  uffer may be either ring_buffer or ring_buffer_per_cpu (buffer, !local_read( & committing))
3084  Decrement the entries to the page that an event is on.* The event does not even need to exist, only the pointer* to the page it is on. This may only be called before the commit* takes place.
3085  If rb_try_to_discard(cpu_buffer, event) Then Go to out
3092  rb_update_write_stamp(cpu_buffer, event)
3093  out :
3094  rb_end_commit(cpu_buffer)
3096  trace_recursive_unlock(cpu_buffer)
3098  preempt_enable_notrace()