Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_prog_get_stats

Proto:static void bpf_prog_get_stats(const struct bpf_prog *prog, struct bpf_prog_stats *stats)

Type:void

Parameter:

TypeParameterName
const struct bpf_prog *prog
struct bpf_prog_stats *stats
1447  nsecs = 0 , cnt = 0
1450  for_each_possible_cpu(cpu)
1455  st = per_cpu_ptr(stats, cpu)
1456  Do
1458  tnsecs = nsecs
1459  tcnt = cnt
1460  When u64_stats_fetch_retry_irq( & syncp, start) cycle
1461  nsecs += tnsecs
1462  cnt += tcnt
1464  nsecs = nsecs
1465  cnt = cnt
Caller
NameDescribe
bpf_prog_show_fdinfo
bpf_prog_get_info_by_fd