[PATCH 0/3] perf/core: Optimize LBR callstack handling
From: Namhyung Kim
Date: Wed Feb 11 2026 - 17:32:40 EST
Hello,
I found other problematic cases wrt LBR callstacks. Basically O(N^2)
loop for every threads is too costly on large machines. We can use
faster memory allocation and free methods to reduce the overhead.
Actually this approach is suggested by AI (Gemini).
Thanks,
Namhyung
Namhyung Kim (3):
perf/core: Pass GFP flags to attach_task_ctx_data()
perf/core: Try to allocate task_ctx_data quickly
perf/core: Simplify __detach_global_ctx_data()
kernel/events/core.c | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
--
2.53.0.273.g2a3d683680-goog