Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__perf_event_account_interrupt

Proto:static int __perf_event_account_interrupt(struct perf_event *event, int throttle)

Type:int

Parameter:

TypeParameterName
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  If seq != interrupts_seq Then
8371  interrupts_seq = seq
8372  interrupts = 1
8373  Else
8374  interrupts++
8381  ret = 1
8385  If freq Then
8386  now = perf_clock()
8387  delta = now - freq_time_stamp
8389  freq_time_stamp = now
8391  If delta > 0 && delta < 2 * TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ Then perf_adjust_period(event, delta, last_period, true)
8395  Return ret
Caller
NameDescribe
perf_event_account_interrupt
__perf_event_overflowGeneric event overflow handling, sampling.