forked from scylladb/seastar
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow use of llvm-addr2line as the command
Prior to this change the addr2line.py script always uses addr2line as the binary to decode stack frames. This change allows the path and/or name of the binary to be provided explicitly on the command line. This allows the of llvm-addr2line, an alternative implementation based on llvm-symbolizer, which in my experiments is over *200* times as fast as addr2line in decoding some redpanda stack traces. See https://sourceware.org/bugzilla/show_bug.cgi?id=29010 for more on the addr2line slowness. This change also slightly changes the 'dummy line' strategy used to detect when addr2line has finished outputting frames for the current address to make it compatible with llvm-addr2line. Fixes scylladb#1035.
- Loading branch information
1 parent
f214fb9
commit 2a9504b
Showing
2 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters