Re: [PATCH] perf bpf_counter: Say why the perf_event_attr map can't be used
From: Namhyung Kim
Date: Mon Nov 23 2026 - 16:42:30 EST
On Fri, 20 Nov 2026 14:49:03 +0800, Hang Zhengyang wrote:
> When 'perf stat --bpf-counters' can't set up the pinned map it uses to
> share counters, all it prints is:
>
> Failed to lock perf_event_attr map
>
> Arnaldo asked for better wording when bperf was added. The map can
> fail to be created, pinned, opened, checked or locked, and the message
> says neither which step failed nor why.
>
> [...]
Applied to perf-tools-next, thanks!
Best regards
Namhyung