aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2024-10-07 18:50:09 +0200
committerThomas Gleixner <[email protected]>2024-10-15 17:30:32 +0200
commitfb60c004f33e0fa2e87b9456b87f1b2709436b88 (patch)
treef2a0c16459c7465732a3b32c6f681d20a5b1c50d /tools/perf/scripts/python/task-analyzer.py
parent96a9a0421c77301f9b551f3460ac04471a3c0612 (diff)
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 <[email protected]> Reviewed-by: Zhen Lei <[email protected]> Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions