Re: [PATCH v2] perf bpf-filter: Improve error messages

From: Namhyung Kim
Date: Tue Jun 10 2025 - 14:39:09 EST


On Wed, 04 Jun 2025 10:48:35 -0700, Namhyung Kim wrote:
> The BPF filter needs libbpf/BPF-skeleton support and root privilege.
> Add error messages to help users understand the problem easily.
>
> When it's not build with BPF support (make BUILD_BPF_SKEL=0).
>
> $ sudo perf record -e cycles --filter "pid != 0" true
> Error: BPF filter is requested but perf is not built with BPF.
> Please make sure to build with libbpf and BPF skeleton.
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung