Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:40:29 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:account_event
Proto:static void account_event(struct perf_event *event)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event * | event |
10606 | bool inc = false |
10608 | If parent Then Return |
10611 | If attach_state & PERF_ATTACH_TASK Then inc = true |
10613 | If mmap || mmap_data Then atomic_inc( & nr_mmap_events) |
10615 | If comm Then atomic_inc( & nr_comm_events) |
10617 | If namespaces Then atomic_inc( & nr_namespaces_events) |
10619 | If task Then atomic_inc( & nr_task_events) |
10621 | If freq Then account_freq_event() |
10623 | If context_switch Then |
10624 | atomic_inc( & nr_switch_events) |
10625 | inc = true |
10627 | If has_branch_stack(event) Then inc = true |
10629 | If is_cgroup_event(event) Then inc = true |
10631 | If ksymbol Then atomic_inc( & nr_ksymbol_events) |
10633 | If bpf_event Then atomic_inc( & nr_bpf_events) |
10636 | If inc Then |
10645 | mutex_lock( & perf_sched_mutex) |
10646 | If Not atomic_read( & perf_sched_count) Then |
10659 | atomic_inc( & perf_sched_count) |
10662 | enabled : |
10664 | account_event_cpu(event, cpu) |
Name | Describe |
---|---|
perf_event_alloc | Allocate and initialize an event structure |
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 |