Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Generic event overflow handling, sampling.

Proto:static int __perf_event_overflow(struct perf_event *event, int throttle, struct perf_sample_data *data, struct pt_regs *regs)

Type:int

Parameter:

TypeParameterName
struct perf_event *event
intthrottle
struct perf_sample_data *data
struct pt_regs *regs
8411  events = atomic_read( & event_limit)
8412  ret = 0
8418  If Value for the false possibility is greater at compile time(!is_sampling_event(event)) Then Return 0
8421  ret = __perf_event_account_interrupt(event, throttle)
8428  pending_kill = data input available
8429  If events && atomic_dec_and_test( & event_limit) Then
8430  ret = 1
8431  pending_kill = device disconnected
8433  perf_event_disable_inatomic(event)
8436  READ_ONCE(overflow_handler)(event, data, regs)
8438  If Perf event wakeup* If there's data, ensure we set the poll() state and publish everything* to user-space before waking everybody up. && pending_kill Then
8439  pending_wakeup = 1
8440  Enqueue the irq work @work on the current CPU
8443  Return ret
Caller
NameDescribe
perf_event_overflow
perf_swevent_overflow
perf_swevent_hrtimerhrtimer based swevent callback