Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:34:35
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:unaccount_event

Proto:static void unaccount_event(struct perf_event *event)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
4446  bool dec = false
4448  If parent Then Return
4451  If attach_state & PERF_ATTACH_TASK Then dec = true
4453  If mmap || mmap_data Then atomic_dec( & nr_mmap_events)
4455  If comm Then atomic_dec( & nr_comm_events)
4457  If namespaces Then atomic_dec( & nr_namespaces_events)
4459  If task Then atomic_dec( & nr_task_events)
4461  If freq Then unaccount_freq_event()
4463  If context_switch Then
4464  dec = true
4465  atomic_dec( & nr_switch_events)
4467  If is_cgroup_event(event) Then dec = true
4469  If has_branch_stack(event) Then dec = true
4471  If ksymbol Then atomic_dec( & nr_ksymbol_events)
4473  If bpf_event Then atomic_dec( & nr_bpf_events)
4476  If dec Then
4477  If Not 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. Then schedule_delayed_work - put work task in global workqueue after delay*@dwork: job to be done*@delay: number of jiffies to wait or 0 for immediate execution* After waiting for a given time this puts a job in the kernel-global* workqueue.
4481  unaccount_event_cpu(event, cpu)
4483  unaccount_pmu_sb_event(event)
Caller
NameDescribe
_free_event