Public bug reported: Currently the perf tool has 3 possible ways of converting addresses into source code line numbers: - LLVM library - BFD library - addr2line executable
In Ubuntu, perf is not built with LLVM or libbfd, so it falls back to using "addr2line". On large binaries this runs extremely slow and gives errors, making it effectively unusable. This is a longstanding issue; for some context and previous reports see - https://michcioperz.com/post/slow-perf-script/ - https://github.com/flamegraph-rs/flamegraph/issues/74 - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911815 - bug 1894407 The option of linking with BFD was rejected in bug 1894407. The possibility of linking with LLVM is a newer option, with the upstream support being added in Sep 2024; see the upstream commit message describing why it is now recommended as the primary choice: https://github.com/torvalds/linux/commit/c3f8644c21df9b7db97eb70e08e2826368aaafa0. ** Affects: linux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2138328 Title: linux-tools: consider linking perf against LLVM To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2138328/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
