Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:35:43 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ring_buffer_attach
Proto:static void ring_buffer_attach(struct perf_event *event, struct ring_buffer *rb)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event * | event | |
struct ring_buffer * | rb |
5554 | struct ring_buffer * old_rb = NULL |
5557 | If rb Then |
5562 | WARN_ON_ONCE(rcu_pending) |
5565 | spin_lock_irqsave( & poll crap , flags) |
5567 | spin_unlock_irqrestore( & poll crap , flags) |
5570 | rcu_pending = 1 |
5573 | If rb Then |
5574 | If rcu_pending Then |
5576 | rcu_pending = 0 |
5579 | spin_lock_irqsave( & poll crap , flags) |
5581 | spin_unlock_irqrestore( & poll crap , flags) |
5594 | If has_aux(event) Then perf_event_stop(event, 0) |
5599 | If old_rb Then |
5600 | ring_buffer_put(old_rb) |
5606 | wake_up_all( & waitq) |
Name | Describe |
---|---|
_free_event | |
perf_mmap_close | A buffer can be mmap()ed multiple times; either directly through the same* event, or through other events by use of perf_event_set_output().* In order to undo the VM accounting done by perf_mmap() we need to destroy |
perf_mmap | |
perf_event_set_output |
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 |