Function report |
Source Code:kernel\events\ring_buffer.c |
Create Date:2022-07-28 13:42:21 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This is called before hardware starts writing to the AUX area to* obtain an output handle and make sure there's room in the buffer
Proto:void *perf_aux_output_begin(struct perf_output_handle *handle, struct perf_event *event)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_output_handle * | handle | |
| struct perf_event * | event |
| 362 | output_event = event |
| 367 | If parent Then output_event = parent |
| 375 | rb = ring_buffer_get(output_event) |
| 376 | If Not rb Then Return NULL |
| 379 | If Not rb_has_aux(rb) Then Go to err |
| 390 | If Not atomic_read( & aux_mmap_count) Then Go to err |
| 401 | If WARN_ON_ONCE(nest) Then Go to err_put |
| 404 | WRITE_ONCE(aux_nest, nest + 1) |
| 411 | size = 0 |
| 412 | aux_flags = 0 |
| 419 | If Not aux_overwrite Then |
| 430 | If Not size Then |
| 431 | pending_disable = smp_processor_id() |
| 432 | perf_output_wakeup(handle) |
| 433 | WRITE_ONCE(aux_nest, 0) |
| 434 | Go to err_put |
| 438 | Return aux_priv |
| 440 | err_put : |
| 442 | rb_free_aux(rb) |
| 444 | err : |
| 445 | ring_buffer_put(rb) |
| 446 | event = NULL |
| 448 | Return NULL |
| 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 |