Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_event_fd_array_get_ptr

Proto:static void *perf_event_fd_array_get_ptr(struct bpf_map *map, struct file *map_file, int fd)

Type:void

Parameter:

TypeParameterName
struct bpf_map *map
struct file *map_file
intfd
918  perf_file = perf_event_get(fd)
919  If IS_ERR(perf_file) Then Return perf_file
922  ee = ERR_PTR( - EOPNOTSUPP)
923  event = needed for tty driver, and maybe others
924  If perf_event_read_local(event, & value, NULL, NULL) == -EOPNOTSUPP Then Go to err_out
927  ee = bpf_event_entry_gen(perf_file, map_file)
928  If ee Then Return ee
930  ee = ERR_PTR( - ENOMEM)
931  err_out :
932  fput(perf_file)
933  Return ee