Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_swevent_init_hrtimer

Proto:static void perf_swevent_init_hrtimer(struct perf_event *event)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
9867  hwc = hw
9869  If Not is_sampling_event(event) Then Return
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  If freq Then
9880  freq = sample_freq
9882  sample_period = NSEC_PER_SEC / freq
9883  sample_period = sample_period
9884  local64_set( & period_left, sample_period)
9885  last_period = sample_period
9886  freq = 0
Caller
NameDescribe
cpu_clock_event_init
task_clock_event_init