Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:34: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_read_group_add
Proto:static int __perf_read_group_add(struct perf_event *leader, u64 read_format, u64 *values)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event * | leader | |
u64 | read_format | |
u64 * | values |
4887 | n = 1 |
4890 | ret = perf_event_read(leader, true) |
4894 | raw_spin_lock_irqsave( & Protect the states of the events in the list,* nr_active, and the list:, flags) |
4901 | If read_format & PERF_FORMAT_TOTAL_TIME_ENABLED Then |
4902 | values[n++] += total_time_enabled + atomic64_read( & child_total_time_enabled) |
4906 | If read_format & PERF_FORMAT_TOTAL_TIME_RUNNING Then |
4907 | values[n++] += total_time_running + atomic64_read( & child_total_time_running) |
4914 | values[n++] += perf_event_count(leader) |
4915 | If read_format & PERF_FORMAT_ID Then values[n++] = If we inherit events we want to return the parent event id* to userspace. |
4919 | values[n++] += perf_event_count(sub) |
4920 | If read_format & PERF_FORMAT_ID Then values[n++] = If we inherit events we want to return the parent event id* to userspace. |
4924 | raw_spin_unlock_irqrestore( & Protect the states of the events in the list,* nr_active, and the list:, flags) |
4925 | Return 0 |
Name | Describe |
---|---|
perf_read_group |
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 |