summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2024-10-07 19:50:09 +0300
committerThomas Gleixner <tglx@linutronix.de>2024-10-15 18:30:32 +0300
commitfb60c004f33e0fa2e87b9456b87f1b2709436b88 (patch)
treef2a0c16459c7465732a3b32c6f681d20a5b1c50d /tools/perf/scripts/python/syscall-counts.py
parent96a9a0421c77301f9b551f3460ac04471a3c0612 (diff)
downloadlinux-fb60c004f33e0fa2e87b9456b87f1b2709436b88.tar.xz
debugobjects: Rework object allocation
The current allocation scheme tries to allocate from the per CPU pool first. If that fails it allocates one object from the global pool and then refills the per CPU pool from the global pool. That is in the way of switching the pool management to batch mode as the global pool needs to be a strict stack of batches, which does not allow to allocate single objects. Rework the code to refill the per CPU pool first and then allocate the object from the refilled batch. Also try to allocate from the to free pool first to avoid freeing and reallocating objects. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Zhen Lei <thunder.leizhen@huawei.com> Link: https://lore.kernel.org/all/20241007164913.893554162@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions