Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\bpf_trace.c Create Date:2022-07-28 12:36:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:____bpf_perf_prog_read_value

Proto:static inline __attribute__((__always_inline__)) u64 ____bpf_perf_prog_read_value(struct bpf_perf_event_data_kern *ctx, struct bpf_perf_event_value *buf, u32 size)

Type:u64

Parameter:

TypeParameterName
struct bpf_perf_event_data_kern *ctx
struct bpf_perf_event_value *buf
u32size
987  err = -EINVAL
989  If Value for the false possibility is greater at compile time(size != sizeof(structbpf_perf_event_value)) Then Go to clear
991  err = perf_event_read_local(event, & counter, & enabled, & running)
993  If Value for the false possibility is greater at compile time(err) Then Go to clear
995  Return 0
996  clear :
997  memset(buf, 0, size)
998  Return err