函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 15:00:34 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:account_event
函数原型:static void account_event(struct perf_event *event)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct perf_event * | event |
10606 | bool inc = false |
10608 | 如果parent则返回 |
10611 | 如果attach_state按位与PERF_ATTACH_TASK则inc = true |
10613 | 如果mmap或mmap_data则atomic_inc( & nr_mmap_events) |
10615 | 如果comm则atomic_inc( & nr_comm_events) |
10617 | 如果namespaces则atomic_inc( & nr_namespaces_events) |
10619 | 如果task则atomic_inc( & nr_task_events) |
10621 | 如果freq则account_freq_event() |
10623 | 如果context_switch则 |
10624 | atomic_inc( & nr_switch_events) |
10625 | inc = true |
10627 | 如果has_branch_stack(event)则inc = true |
10629 | 如果is_cgroup_event(event)则inc = true |
10631 | 如果ksymbol则atomic_inc( & nr_ksymbol_events) |
10633 | 如果bpf_event则atomic_inc( & nr_bpf_events) |
10636 | 如果inc则 |
10642 | 如果atomic_inc_not_zero - increment unless the number is zero*@v: pointer of type atomic_t* Atomically increments @v by 1, if @v is non-zero.* Returns true if the increment was done.则转到:enabled |
10645 | mutex_lock( & perf_sched_mutex) |
10646 | 如果非atomic_read( & perf_sched_count)则 |
10659 | atomic_inc( & perf_sched_count) |
10662 | enabled : |
10664 | account_event_cpu(event, cpu) |
名称 | 描述 |
---|---|
perf_event_alloc | Allocate and initialize an event structure |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |