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

From: Leon Hwang

Date: Fri Dec 04 2026 - 01:05:07 EST


On 4/12/26 12:02, Alexei Starovoitov wrote:
> 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.

Okay, let me drop the change in kernel/events/core.c.

Thanks,
Leon