Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| struct ring_buffer * | buffer | |
| struct ring_buffer_event * | event |
| 3072 | rb_event_discard(event) |
| 3074 | cpu = smp_processor_id() |
| 3075 | cpu_buffer = buffers[cpu] |
| 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) |
| 3098 | preempt_enable_notrace() |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |