函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_swevent_init_hrtimer

函数原型:static void perf_swevent_init_hrtimer(struct perf_event *event)

返回类型:void

参数:

类型参数名称
struct perf_event *event
9867  hwc等于hw
9869  如果非is_sampling_event(event)则返回
9872  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,*
9873  function等于hrtimer based swevent callback
9879  如果freq
9880  freq等于sample_freq
9882  sample_period等于NSEC_PER_SECfreq
9883  sample_period等于sample_period
9884  local64_set( & period_left, sample_period)
9885  last_period等于sample_period
9886  freq等于0
调用者
名称描述
cpu_clock_event_init
task_clock_event_init