Re: [PATCH bpf-next 1/4] bpf: Add log support for perf link_create

From: Alexei Starovoitov

Date: Thu Dec 03 2026 - 23:02:05 EST


On Wed, Dec 02, 2026 at 10:20 PM Leon Hwang <leon.hwang@xxxxxxxxx> wrote:
> Perf has no equivalent of netlink extack. I'd like to pass a 'const char
> **errmsg' to the perf attach helper, so it can return a static error
> msg. On failure, BPF_LINK_CREATE can write the msg to the log buffer if
> errmsg was set.

It won't help.