diff options
| author | 2026-10-13 10:21:51 -0700 | |
|---|---|---|
| committer | 2026-10-15 09:26:51 -0300 | |
| commit | 6acdf93f8df09a8d5cfd0823ff2e0b8be14e85ad (patch) | |
| tree | e1698429f35dea7d76bb69172f88540fe225df42 /scripts/Makefile.thinlto | |
| parent | perf symbol: Get rid of machine_or_dso_e_machine() (diff) | |
perf tools: Factor out dso__find_binary_type()
Separate out the logic to detect binary type of a DSO. It checks if
the candidate file contains ".text" section. There could be data-only
DSOs but as our use cases focus on the code (perf annotate or intel
PT), we can ignore them for now.
But it also can fail due to open file limit. Handle the case by
retrying with _dso__data_open_lock.
Introduce bintype_searched flag and it accessors to prevent repeated
(failed) search.
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
[ Fixed the clang -Wthread-safety-analysis error: _dso__data_open_lock is not held on every path ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
