1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-19 04:44:09 +00:00
Ian Rogers 2c369d91d0 perf symbol: Add blocking argument to filename__read_build_id
When synthesizing build-ids, for build ID mmap2 events, they will be
added for data mmaps if -d/--data is specified. The files opened for
their build IDs may block on the open causing perf to hang during
synthesis. There is some robustness in existing calls to
filename__read_build_id by checking the file path is to a regular
file, which unfortunately fails for symlinks. Rather than adding more
is_regular_file calls, switch filename__read_build_id to take a
"block" argument and specify O_NONBLOCK when this is false. The
existing is_regular_file checking callers and the event synthesis
callers are made to pass false and thereby avoiding the hang.

Fixes: 53b00ff358dc ("perf record: Make --buildid-mmap the default")
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250823000024.724394-3-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2025-08-25 15:07:18 -07:00
..
2025-07-25 10:37:58 -07:00
2025-06-09 11:18:17 -07:00
2025-06-09 11:18:17 -07:00
2025-07-25 10:37:56 -07:00
2025-07-25 10:37:56 -07:00
2024-08-19 14:52:13 -03:00
2025-07-25 10:37:58 -07:00
2025-07-25 10:37:58 -07:00
2025-07-02 19:01:54 -07:00
2025-07-25 10:37:57 -07:00
2024-08-12 18:05:14 -03:00
2024-08-19 14:51:46 -03:00
2025-07-25 10:37:56 -07:00
2025-07-25 10:37:56 -07:00
2024-02-12 12:35:41 -08:00
2025-05-02 15:36:14 -03:00
2025-02-10 11:46:02 -08:00
2025-07-26 16:31:43 -07:00
2023-04-06 21:40:28 -03:00
2023-09-12 17:47:00 -03:00
2025-03-10 11:31:24 -07:00
2025-03-10 11:31:24 -07:00
2025-03-24 09:38:20 -07:00
2025-07-11 12:36:40 -07:00
2025-07-11 12:36:40 -07:00
2024-12-12 15:53:36 -03:00
2025-06-09 11:18:18 -07:00
2025-06-09 11:18:18 -07:00
2025-07-26 16:31:43 -07:00
2025-07-26 16:31:43 -07:00
2023-04-10 19:20:53 -03:00
2024-09-27 15:38:52 -03:00