函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\arraymap.c Create Date:2022-07-27 14:28:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:perf_event_fd_array_get_ptr

函数原型:static void *perf_event_fd_array_get_ptr(struct bpf_map *map, struct file *map_file, int fd)

返回类型:void

参数:

类型参数名称
struct bpf_map *map
struct file *map_file
intfd
918  perf_file等于perf_event_get(fd)
919  如果是错误则返回:perf_file
922  ee等于错误号
923  event等于 needed for tty driver, and maybe others
924  如果perf_event_read_local(event, & value, NULL, NULL)恒等于负EOPNOTSUPP则转到:err_out
927  ee等于bpf_event_entry_gen(perf_file, map_file)
928  如果ee则返回:ee
930  ee等于错误号
931  err_out :
932  fput(perf_file)
933  返回:ee