]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf/core: Simplify perf_event_alloc()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 4 Nov 2024 13:39:17 +0000 (14:39 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Mar 2025 08:42:40 +0000 (09:42 +0100)
commit8f2221f52eced88e74c7ae22b4b2d67dc7a96bd2
treeef215370c8ab961b6aa5a101a95dcc1bd467faac
parentcaf8b765d453198d4ca5305d9e207535934b6e3b
perf/core: Simplify perf_event_alloc()

Using the previous simplifications, transition perf_event_alloc() to
the cleanup way of things -- reducing error path magic.

[ mingo: Ported it to recent kernels. ]

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Ravi Bangoria <ravi.bangoria@amd.com>
Link: https://lore.kernel.org/r/20241104135518.410755241@infradead.org
kernel/events/core.c