diff options
| author | Ian Rogers <irogers@google.com> | 2025-12-06 18:23:45 -0800 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-12-17 07:30:51 -0800 |
| commit | 5c5f6fe32df2edb4f72bdca62ec2b9f20b7c5ba4 (patch) | |
| tree | bf351ba9a25b63397ce6d8d5e9ac74cb98958096 /tools/perf/scripts/python | |
| parent | perf tools: Disable BPF skeleton if no libopenssl found (diff) | |
| download | linux-5c5f6fe32df2edb4f72bdca62ec2b9f20b7c5ba4.tar.gz linux-5c5f6fe32df2edb4f72bdca62ec2b9f20b7c5ba4.zip | |
perf symbol: Fix ENOENT case for filename__read_build_id
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.
Fixes: 834ebb5678d7 ("perf tools: Don't read build-ids from non-regular files")
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
