Skip to content

perf/core: Optimize LBR callstack handling

Namhyung Kim lkml 1 version Applied

Status from this message: The following commit has been merged into the perf/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3perf/core: Pass GFP flags to attach_task_ctx_data()kernel/events/core.c+8 -80 replies
2/3perf/core: Try to allocate task_ctx_data quicklykernel/events/core.c+7 -00 replies
3/3perf/core: Simplify __detach_global_ctx_data()kernel/events/core.c+4 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] perf/core: Optimize LBR callstack handling

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(-)
Signature · 1 line
2.53.0.273.g2a3d683680-goog