函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_event_bpf_event

函数原型:void perf_event_bpf_event(struct bpf_prog *prog, enum perf_bpf_event_type type, u16 flags)

返回类型:void

参数:

类型参数名称
struct bpf_prog *prog
enum perf_bpf_event_typetype
u16flags
8285  如果type小于等于PERF_BPF_EVENT_UNKNOWNtype大于等于 non-ABI 则返回
8290  :type恒等于PERF_BPF_EVENT_PROG_LOAD
8291  :type恒等于PERF_BPF_EVENT_PROG_UNLOAD
8292  如果atomic_read( & nr_ksymbol_events)则perf_event_bpf_emit_ksymbols(prog, type)
8294  退出
8295  默认
8296  退出
8299  如果非atomic_read( & nr_bpf_events)则返回
8302  bpf_event = (struct perf_bpf_event){prog = prog, event_id = {header = {type = PERF_RECORD_BPF_EVENT, size = event_id的长度, }, type = type, flags = flags, id = id, }, }
8315  BUILD_BUG_ON - break compile if a condition is true(BPF_TAG_SIZE % sizeof(u64))
8317  内存复制(tag, tag, BPF_TAG_SIZE)
8318  Iterate all events that need to receive side-band events.* For new callers; ensure that account_pmu_sb_event() includes* your event, otherwise it might not get delivered.
调用者
名称描述
bpf_prog_load