]> git.ipfire.org Git - thirdparty/linux.git/commit
perf: Split out VM accounting
authorThomas Gleixner <tglx@linutronix.de>
Tue, 12 Aug 2025 10:39:01 +0000 (12:39 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 15 Aug 2025 11:12:59 +0000 (13:12 +0200)
commit1ea3e3b0dadc06c5e6c1bdf5312e70ee861b1ba0
tree2b8073793c4b3fe48b9240df54e5c3783fb226cd
parent81e026ca47b386e4213c1beff069038a3ba8bb76
perf: Split out VM accounting

Similarly to the mlock limit calculation the VM accounting is required for
both the ringbuffer and the AUX buffer allocations.

To prepare for splitting them out into separate functions, move the
accounting into a helper function.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Link: https://lore.kernel.org/r/20250812104018.660347811@infradead.org
kernel/events/core.c