函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__perf_event_account_interrupt

函数原型:static int __perf_event_account_interrupt(struct perf_event *event, int throttle)

返回类型:int

参数:

类型参数名称
struct perf_event *event
intthrottle
8365  hwc等于hw
8366  ret等于0
8369  seq等于Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(perf_throttled_seq)
8370  如果seq不等于interrupts_seq
8371  interrupts_seq等于seq
8372  interrupts等于1
8373  否则
8374  interrupts自加
8381  ret等于1
8385  如果freq
8386  now等于perf_clock()
8387  delta等于nowfreq_time_stamp
8389  freq_time_stamp等于now
8391  如果delta大于0且delta小于2乘TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ perf_adjust_period(event, delta, last_period, true)
8395  返回:ret
调用者
名称描述
perf_event_account_interrupt
__perf_event_overflowGeneric event overflow handling, sampling.