函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_pmu_unregister

函数原型:void perf_pmu_unregister(struct pmu *pmu)

返回类型:void

参数:

类型参数名称
struct pmu *pmu
10416  mutex_lock( & pmus_lock)
10417  删除不需要重新初始化的列表项
10423  synchronize_srcu - wait for prior SRCU read-side critical-section completion*@ssp: srcu_struct with which to synchronize
10424  Wait for a grace period to elapse. But it is illegal to invoke* synchronize_rcu() from within an RCU read-side critical section.* Therefore, any legal call to synchronize_rcu() is a quiescent
10426  释放内存
10427  如果type不等于PERF_TYPE_SOFTWARE删除释放idr
10429  如果pmu_bus_running
10430  如果umber of address filters this PMU can do device_remove_file(dev, & dev_attr_nr_addr_filters)
10432  device_del(dev)
10433  put_device(dev)
10435  free_pmu_context(pmu)
10436  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.