Last active
January 29, 2024 16:10
-
-
Save azat/c6f808cc7d270142ed3f3eb297646a15 to your computer and use it in GitHub Desktop.
Wrapper for llvm addr2line (faster then binutils) for perf
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
#!/usr/bin/env bash | |
# This is wrapper for faster addr2line, that is required for "perf --call-graph dwarf" | |
# NOTE: since v6.3 perf supports specifying addr2line and supports LLVM so it is not required there | |
# stdbuf is important here to avoid buffering, otherwise perf will stuck | |
stdbuf -o0 -i0 sed -e 's/,//' -e 's/^$/ffffffffffffff/' | llvm-addr2line "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This wrapper almost 7x faster