Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:36:23 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:perf_prepare_sample_aux
Proto:static unsigned long perf_prepare_sample_aux(struct perf_event *event, struct perf_sample_data *data, size_t size)
Type:unsigned long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_event * | event | |
| struct perf_sample_data * | data | |
| size_t | size |
| 6280 | aux_size = 0 |
| 6285 | If WARN_ON_ONCE(READ_ONCE(state) != PERF_EVENT_STATE_ACTIVE) Then Go to out |
| 6288 | If WARN_ON_ONCE(READ_ONCE(oncpu) != smp_processor_id()) Then Go to out |
| 6291 | rb = ring_buffer_get(parent ? parent : sampler) |
| 6299 | If READ_ONCE(aux_in_sampling) Then |
| 6300 | aux_size = 0 |
| 6301 | Else |
| 6302 | size = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, size, perf_aux_size(rb)) |
| 6303 | aux_size = @a is a power of 2 value (size, sizeof(u64)) |
| 6305 | ring_buffer_put(rb) |
| 6307 | out : |
| 6308 | Return aux_size |
| Name | Describe |
|---|---|
| perf_prepare_sample |
| 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 |