Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hrtimer based swevent callback

Proto:static enum hrtimer_restart perf_swevent_hrtimer(struct hrtimer *hrtimer)

Type:enum hrtimer_restart

Parameter:

TypeParameterName
struct hrtimer *hrtimer
9804  ret = Timer must be restarted
9810  event = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(hrtimer, structperf_event, hrtimer)
9812  If state != PERF_EVENT_STATE_ACTIVE Then Return Timer is not restarted
9815  read(event)
9817  perf_sample_data_init( & data, 0, last_period)
9818  regs = get_irq_regs()
9820  If regs && Not perf_exclude_event(event, regs) Then
9821  If Not (exclude_idle && s_idle_task - is the specified task an idle task?*@p: the task in question.* Return: 1 if @p is an idle task. 0 otherwise.) Then If Generic event overflow handling, sampling. Then
9823  ret = Timer is not restarted
9826  period = max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u64, 10000, sample_period)
9827  hrtimer_forward_now - forward the timer expiry so it expires after now*@timer: hrtimer to forward*@interval: the interval to forward* Forward the timer expiry so it will expire after the current time* of the hrtimer clock base
9829  Return ret