函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__perf_mux_hrtimer_init

函数原型:static void __perf_mux_hrtimer_init(struct perf_cpu_context *cpuctx, int cpu)

返回类型:void

参数:

类型参数名称
struct perf_cpu_context *cpuctx
intcpu
1088  timer等于hrtimer
1089  pmu等于pmu
1093  如果task_ctx_nr恒等于perf_sw_context则返回
1100  interval等于hrtimer_interval_ms
1101  如果interval小于1则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
调用者
名称描述
perf_pmu_register