Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:____bpf_perf_event_read_value

Proto:static inline __attribute__((__always_inline__)) u64 ____bpf_perf_event_read_value(struct bpf_map *map, u64 flags, struct bpf_perf_event_value *buf, u32 size)

Type:u64

Parameter:

TypeParameterName
struct bpf_map *map
u64flags
struct bpf_perf_event_value *buf
u32size
511  err = -EINVAL
513  If Value for the false possibility is greater at compile time(size != sizeof(structbpf_perf_event_value)) Then Go to clear
515  err = get_map_perf_counter(map, flags, & counter, & enabled, & running)
517  If Value for the false possibility is greater at compile time(err) Then Go to clear
519  Return 0
520  clear :
521  memset(buf, 0, size)
522  Return err