Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_pmu_unregister

Proto:void perf_pmu_unregister(struct pmu *pmu)

Type:void

Parameter:

TypeParameterName
struct pmu *pmu
10416  mutex_lock( & pmus_lock)
10417  list_del_rcu - deletes entry from list without re-initialization*@entry: the element to delete from the list
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  free previously allocated percpu memory
10427  If type != PERF_TYPE_SOFTWARE Then dr_remove() - Remove an ID from the IDR
10429  If pmu_bus_running Then
10430  If umber of address filters this PMU can do Then 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.