函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hrtimer based swevent callback

函数原型:static enum hrtimer_restart perf_swevent_hrtimer(struct hrtimer *hrtimer)

返回类型:enum hrtimer_restart

参数:

类型参数名称
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  如果state不等于PERF_EVENT_STATE_ACTIVE则返回:Timer is not restarted
9815  read(event)
9817  perf_sample_data_init( & data, 0, last_period)
9818  regs等于get_irq_regs()
9820  如果regs且非perf_exclude_event(event, regs)则
9821  如果非exclude_idle是空闲任务的值则如果Generic event overflow handling, sampling.
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  返回:ret