函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-27 14:06:04
Last Modify:2022-05-19 18:06:12 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_prog_show_fdinfo

函数原型:static void bpf_prog_show_fdinfo(struct seq_file *m, struct file *filp)

返回类型:void

参数:

类型参数名称
struct seq_file *m
struct file *filp
1471  prog等于 needed for tty driver, and maybe others
1472  char prog_tag[tag的长度 * 2 + 1] = {}
1475  bpf_prog_get_stats(prog, & stats)
1476  二进制数据转换为ASCII码的十六进制字符串
1477  seq_printf(m, "prog_type:\t%u\nprog_jited:\t%u\nprog_tag:\t%s\nmemlock:\t%llu\nprog_id:\t%u\nrun_time_ns:\t%llu\nrun_cnt:\t%llu\n", Type of BPF program , Is our filter JIT'ed? , prog_tag, Number of allocated pages * 1ULL << PAGE_SHIFT determines the page size , id, nsecs, cnt)