Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_event_bpf_event

Proto:void perf_event_bpf_event(struct bpf_prog *prog, enum perf_bpf_event_type type, u16 flags)

Type:void

Parameter:

TypeParameterName
struct bpf_prog *prog
enum perf_bpf_event_typetype
u16flags
8285  If type <= PERF_BPF_EVENT_UNKNOWN || type >= non-ABI Then Return
8290  Case type == PERF_BPF_EVENT_PROG_LOAD
8291  Case type == PERF_BPF_EVENT_PROG_UNLOAD
8292  If atomic_read( & nr_ksymbol_events) Then perf_event_bpf_emit_ksymbols(prog, type)
8294  Break
8295  Default
8296  Break
8299  If Not atomic_read( & nr_bpf_events) Then Return
8302  bpf_event = (struct perf_bpf_event){prog = prog, event_id = {header = {type = PERF_RECORD_BPF_EVENT, size = size of 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  No 3D Now!(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.
Caller
NameDescribe
bpf_prog_load