Skip to content

KFunc bpf_mem_cgroup_vm_events

v7.0

Read memory cGroup's virtual memory event counter.

Definition

Allows to read memory cGroup event counters.

Parameters

memcg: memory cGroup

event: event id

Returns

The current value of the corresponding events counter.

Signature

long unsigned int bpf_mem_cgroup_vm_events(struct mem_cgroup *memcg, vm_event_item event)

Usage

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

Docs could be improved

This part of the docs is incomplete, contributions are very welcome