Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__perf_mux_hrtimer_init

Proto:static void __perf_mux_hrtimer_init(struct perf_cpu_context *cpuctx, int cpu)

Type:void

Parameter:

TypeParameterName
struct perf_cpu_context *cpuctx
intcpu
1088  timer = hrtimer
1089  pmu = pmu
1093  If task_ctx_nr == perf_sw_context Then Return
1100  interval = hrtimer_interval_ms
1101  If interval < 1 Then interval = hrtimer_interval_ms = set default to be dependent on timer tick just* like original code
1104  hrtimer_interval = ns_to_ktime(NSEC_PER_MSEC * interval)
1106  raw_spin_lock_init( & hrtimer_lock)
1107  hrtimer_init - initialize a timer to the given clock*@timer: the timer to be initialized*@clock_id: the clock to be used*@mode: The modes which are relevant for intitialization:* HRTIMER_MODE_ABS, HRTIMER_MODE_REL, HRTIMER_MODE_ABS_SOFT,*
1108  function = must be called with interrupts disabled
Caller
NameDescribe
perf_pmu_register