Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_swevent_event

Proto:static void perf_swevent_event(struct perf_event *event, u64 nr, struct perf_sample_data *data, struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
u64nr
struct perf_sample_data *data
struct pt_regs *regs
8528  hwc = hw
8530  local64_add(nr, & count)
8532  If Not regs Then Return
8535  If Not is_sampling_event(event) Then Return
8538  If sample_type & PERF_SAMPLE_PERIOD && Not freq Then
8539  period = nr
8540  Return perf_swevent_overflow(event, 1, data, regs)
8541  Else period = last_period
8544  If nr == 1 && sample_period == 1 && Not freq Then Return perf_swevent_overflow(event, 1, data, regs)
8547  If local64_add_negative(nr, & period_left) Then Return
8550  perf_swevent_overflow(event, 0, data, regs)
Caller
NameDescribe
do_perf_sw_event