• Home
  • History
  • Annotate
  • only in /external/chromium_org/tools/find_runtime_symbols/
NameDateSize

..11-Jul-20144 KiB

find_runtime_symbols.py11-Jul-20146.4 KiB

OWNERS11-Jul-201423

prepare_symbol_info.py11-Jul-20148.2 KiB

PRESUBMIT.py11-Jul-20141.4 KiB

README11-Jul-2014822

reduce_debugline.py11-Jul-20141.8 KiB

static_symbols.py11-Jul-20148.8 KiB

tests/11-Jul-20144 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