Name | Date | Size | |
---|---|---|---|
.. | 12-Mar-2015 | 4 KiB | |
find_runtime_symbols.py | 12-Mar-2015 | 6.4 KiB | |
OWNERS | 12-Mar-2015 | 23 | |
prepare_symbol_info.py | 12-Mar-2015 | 9.2 KiB | |
PRESUBMIT.py | 12-Mar-2015 | 1.4 KiB | |
README | 12-Mar-2015 | 822 | |
reduce_debugline.py | 12-Mar-2015 | 1.8 KiB | |
static_symbols.py | 12-Mar-2015 | 8.8 KiB | |
tests/ | 12-Mar-2015 | 4 KiB |
README
1This script maps runtime addresses to symbol names. It is robust over 2Address Space Layout Randomization (ASLR) since it uses runtime addresses with 3runtime mapping information (/proc/.../maps). 4Like 'pprof --symbols' in gperftools <http://code.google.com/p/gperftools/>. 5 6 7Step 1: Prepare symbol information. 8 9It is required to collect symbol information before mapping runtime addresses 10to symbol names. 11 12./prepare_symbol_info.py /path/to/maps [/another/path/to/symbol_info_dir] 13 14The required 'maps' file is /proc/.../maps of the process at runtime. 15 16 17Step 2: Find symbols. 18 19./find_runtime_symbols.py /path/to/symbol_info_dir < addresses.txt 20 21'symbol_info_dir' is the result of the Step 1. 22The stdin should be a list of hex addresses to map, one per line. 23 24The results will be printed to stdout like 'pprof --symbols'. 25