函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:53:57
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:unaccount_event

函数原型:static void unaccount_event(struct perf_event *event)

返回类型:void

参数:

类型参数名称
struct perf_event *event
4446  bool dec = false
4448  如果parent则返回
4451  如果attach_state按位与PERF_ATTACH_TASKdec = true
4453  如果mmapmmap_dataatomic_dec( & nr_mmap_events)
4455  如果commatomic_dec( & nr_comm_events)
4457  如果namespacesatomic_dec( & nr_namespaces_events)
4459  如果taskatomic_dec( & nr_task_events)
4461  如果frequnaccount_freq_event()
4463  如果context_switch
4464  dec = true
4465  atomic_dec( & nr_switch_events)
4467  如果is_cgroup_event(event)则dec = true
4469  如果has_branch_stack(event)则dec = true
4471  如果ksymbolatomic_dec( & nr_ksymbol_events)
4473  如果bpf_eventatomic_dec( & nr_bpf_events)
4476  如果dec
4477  如果非atomic_add_unless - add unless the number is already a given value*@v: pointer of type atomic_t*@a: the amount to add to v...*@u: ...unless v is equal to u.* Atomically adds @a to @v, if @v was not already @u.* Returns true if the addition was done.在延迟工作队列中放置任务
4481  unaccount_event_cpu(event, cpu)
4483  unaccount_pmu_sb_event(event)
调用者
名称描述
_free_event