Re: [PATCH v1] perf symbol: Fix ENOENT case for filename__read_build_id

From: Namhyung Kim

Date: Tue Dec 23 2025 - 13:17:49 EST


On Sat, 06 Dec 2025 18:23:45 -0800, Ian Rogers wrote:
> Some callers of filename__read_build_id assume the error value must be
> -1, fix by making them handle all < 0 values.
>
> If is_regular_file fails in filename__read_build_id then it could be
> the file is missing (ENOENT) and it would be wrong to return
> -EWOULDBLOCK in that case. Fix the logic so -EWOULDBLOCK is only
> reported if other errors with stat haven't occurred.
>
> [...]
Applied to perf-tools, thanks!

Best regards,
Namhyung