Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:36:35 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:perf_output_read_one
Proto:static void perf_output_read_one(struct perf_output_handle *handle, struct perf_event *event, u64 enabled, u64 running)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_output_handle * | handle | |
struct perf_event * | event | |
u64 | enabled | |
u64 | running |
6463 | read_format = read_format |
6465 | n = 0 |
6467 | values[n++] = perf_event_count(event) |
6468 | If read_format & PERF_FORMAT_TOTAL_TIME_ENABLED Then |
6469 | values[n++] = enabled + atomic64_read( & child_total_time_enabled) |
6472 | If read_format & PERF_FORMAT_TOTAL_TIME_RUNNING Then |
6473 | values[n++] = running + atomic64_read( & child_total_time_running) |
6476 | If read_format & PERF_FORMAT_ID Then values[n++] = If we inherit events we want to return the parent event id* to userspace. |
Name | Describe |
---|---|
perf_output_read | XXX PERF_SAMPLE_READ vs inherited events seems difficult.* The problem is that its both hard and excessively expensive to iterate the* child list, not to mention that its impossible to IPI the children running* on another CPU, from interrupt/NMI context. |
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 |