Lines Matching refs:stats
2104 struct bpf_prog_stats *stats; in bpf_prog_inc_misses_counter() local
2107 stats = this_cpu_ptr(prog->stats); in bpf_prog_inc_misses_counter()
2108 flags = u64_stats_update_begin_irqsave(&stats->syncp); in bpf_prog_inc_misses_counter()
2109 u64_stats_inc(&stats->misses); in bpf_prog_inc_misses_counter()
2110 u64_stats_update_end_irqrestore(&stats->syncp, flags); in bpf_prog_inc_misses_counter()
2114 struct bpf_prog_kstats *stats) in bpf_prog_get_stats() argument
2124 st = per_cpu_ptr(prog->stats, cpu); in bpf_prog_get_stats()
2135 stats->nsecs = nsecs; in bpf_prog_get_stats()
2136 stats->cnt = cnt; in bpf_prog_get_stats()
2137 stats->misses = misses; in bpf_prog_get_stats()
2145 struct bpf_prog_kstats stats; in bpf_prog_show_fdinfo() local
2147 bpf_prog_get_stats(prog, &stats); in bpf_prog_show_fdinfo()
2164 stats.nsecs, in bpf_prog_show_fdinfo()
2165 stats.cnt, in bpf_prog_show_fdinfo()
2166 stats.misses, in bpf_prog_show_fdinfo()
3922 struct bpf_prog_kstats stats; in bpf_prog_get_info_by_fd() local
3967 bpf_prog_get_stats(prog, &stats); in bpf_prog_get_info_by_fd()
3968 info.run_time_ns = stats.nsecs; in bpf_prog_get_info_by_fd()
3969 info.run_cnt = stats.cnt; in bpf_prog_get_info_by_fd()
3970 info.recursion_misses = stats.misses; in bpf_prog_get_info_by_fd()