函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void ring_buffer_discard_commit(struct ring_buffer *buffer, struct ring_buffer_event *event)

返回类型:void

参数:

类型参数名称
struct ring_buffer *buffer
struct ring_buffer_event *event
3072  rb_event_discard(event)
3074  cpu等于当前cpu 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  如果rb_try_to_discard(cpu_buffer, event)则转到: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()