Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_event_init_cpu

Proto:int perf_event_init_cpu(unsigned int cpu)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
12458  perf_swevent_init_cpu(cpu)
12460  mutex_lock( & pmus_lock)
12461  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
12463  cpuctx = per_cpu_ptr(pmu_cpu_context, cpu)
12464  ctx = ctx
12466  mutex_lock( & Protect the list of events. Locking either mutex or lock* is sufficient to ensure the list doesn't change; to change* the list you need to lock both the mutex and the spinlock.)
12467  online = 1
12468  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.
12470  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.
12472  Return 0
Caller
NameDescribe
perf_event_init