title | description |
---|---|
KFunc 'cgroup_rstat_flush' |
This page documents the 'cgroup_rstat_flush' eBPF kfunc, including its defintion, usage, program types that can use it, and examples. |
Flush stats in cgrp
's subtree
Collect all per-cpu stats in cgrp
's subtree into the global countersand propagate them upwards. After this function returns, all cgroups in the subtree have up-to-date ->stat.
This also gets all cgroups in the subtree including cgrp
off the ->updated_children lists.
This function may block.
Parameters
cgrp
: target cgroup
#!c void cgroup_rstat_flush(struct cgroup *cgrp)
!!! note This function may sleep, and therefore can only be used from sleepable programs.
!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome
The following program types can make use of this kfunc:
!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome