函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_swevent_event

函数原型:static void perf_swevent_event(struct perf_event *event, u64 nr, struct perf_sample_data *data, struct pt_regs *regs)

返回类型:void

参数:

类型参数名称
struct perf_event *event
u64nr
struct perf_sample_data *data
struct pt_regs *regs
8528  hwc等于hw
8530  local64_add(nr, & count)
8532  如果非regs则返回
8535  如果非is_sampling_event(event)则返回
8538  如果sample_type按位与PERF_SAMPLE_PERIOD且非freq
8539  period等于nr
8540  返回:perf_swevent_overflow(event, 1, data, regs)
8541  否则period等于last_period
8544  如果nr恒等于1且sample_period恒等于1且非freq则返回:perf_swevent_overflow(event, 1, data, regs)
8547  如果local64_add_negative(nr, & period_left)则返回
8550  perf_swevent_overflow(event, 0, data, regs)
调用者
名称描述
do_perf_sw_event