Re: [PATCH bpf-next v1 2/5] cgroup: bpf: add cgroup_rstat_updated() and cgroup_rstat_flush() kfuncs

From: Tejun Heo
Date: Fri May 20 2022 - 03:24:59 EST


On Fri, May 20, 2022 at 01:21:30AM +0000, Yosry Ahmed wrote:
> Add cgroup_rstat_updated() and cgroup_rstat_flush() kfuncs to bpf
> tracing programs. bpf programs that make use of rstat can use these
> functions to inform rstat when they update stats for a cgroup, and when
> they need to flush the stats.
>
> Signed-off-by: Yosry Ahmed <yosryahmed@xxxxxxxxxx>

Do patch 1 and 2 need to be separate? Also, can you explain and comment why
it's __weak?

Thanks.

--
tejun