Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-28 12:53:20
Last Modify:2022-05-19 18:06:12 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_prog_show_fdinfo

Proto:static void bpf_prog_show_fdinfo(struct seq_file *m, struct file *filp)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
struct file *filp
1471  prog = needed for tty driver, and maybe others
1472  char prog_tag[ size of tag * 2 + 1] = {}
1475  bpf_prog_get_stats(prog, & stats)
1476  2hex - convert binary data to an ascii hexadecimal string*@dst: ascii hexadecimal result*@src: binary data*@count: binary data length
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)