]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Merge branch 'mm-bpf-kfuncs-to-access-memcg-data'
authorAlexei Starovoitov <ast@kernel.org>
Tue, 23 Dec 2025 06:20:22 +0000 (22:20 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Dec 2025 06:20:22 +0000 (22:20 -0800)
commit042d4c0642b35facee87628a61d81cc77debbc41
tree6cf27a817e33f436316232ce92007eacf09e5439
parentf785a31395d9cafb8b2c42c7358fad72a6463142
parent6e57cdde70c10f4654356cc45467ebce0a5c3f88
Merge branch 'mm-bpf-kfuncs-to-access-memcg-data'

Roman Gushchin says:

====================
mm: bpf kfuncs to access memcg data

Introduce kfuncs to simplify the access to the memcg data.
These kfuncs can be used to accelerate monitoring use cases and
for implementing custom OOM policies once BPF OOM is landed.

This patchset was separated out from the BPF OOM patchset to simplify
the logistics and accelerate the landing of the part which is useful
by itself. No functional changes since BPF OOM v2.

v4:
  - refactored memcg vm event and stat item idx checks (by Alexei)

v3:
  - dropped redundant kfuncs flags (by Alexei)
  - fixed kdocs warnings (by Alexei)
  - merged memcg stats access patches into one (by Alexei)
  - restored root memcg usage reporting, added a comment
  - added checks for enum boundaries
  - added Shakeel and JP as co-maintainers (by Shakeel)

v2:
  - added mem_cgroup_disabled() checks (by Shakeel B.)
  - added special handling of the root memcg in bpf_mem_cgroup_usage()
  (by Shakeel B.)
  - minor fixes in the kselftest (by Shakeel B.)
  - added a MAINTAINERS entry (by Shakeel B.)

v1:
  https://lore.kernel.org/bpf/87ike29s5r.fsf@linux.dev/T/#t
====================

Link: https://patch.msgid.link/20251223044156.208250-1-roman.gushchin@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>