Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:40:57 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:perf_event_set_output
Proto:static int perf_event_set_output(struct perf_event *event, struct perf_event *output_event)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event * | event | |
struct perf_event * | output_event |
11010 | struct ring_buffer * rb = NULL |
11013 | If Not output_event Then Go to set |
11017 | If event == output_event Then Go to out |
11042 | If is_write_backward(output_event) != is_write_backward(event) Then Go to out |
11052 | set : |
11053 | mutex_lock( & mmap_mutex) |
11055 | If atomic_read( & mmap_count) Then Go to unlock |
11058 | If output_event Then |
11060 | rb = ring_buffer_get(output_event) |
11065 | ring_buffer_attach(event, rb) |
11067 | ret = 0 |
11068 | unlock : |
11071 | out : |
11072 | Return ret |
Name | Describe |
---|---|
_perf_ioctl |
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 |