Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.49 KB

cgroup_rstat_flush.md

File metadata and controls

50 lines (32 loc) · 1.49 KB
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.

KFunc cgroup_rstat_flush

:octicons-tag-24: v6.1

Flush stats in cgrp's subtree

Definition

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.

Usage

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome

Program types

The following program types can make use of this kfunc:

Example

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome