Re: [PATCH v1] perf cpumap: Increment reference count for online cpumap
From: Namhyung Kim
Date: Thu Mar 20 2025 - 12:01:32 EST
On Tue, 18 Mar 2025 10:19:14 -0700, Ian Rogers wrote:
> Thomas Richter <tmricht@xxxxxxxxxxxxx> reported a double put on the
> cpumap for the placeholder core PMU:
> https://lore.kernel.org/lkml/20250318095132.1502654-3-tmricht@xxxxxxxxxxxxx/
> Requiring the caller to get the cpumap is not how these things are
> usually done, switch cpu_map__online to do the get and then fix up any
> use cases where a put is needed.
>
> [...]
Applied to perf-tools-next, thanks!
Best regards,
Namhyung