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

..12-Mar-20154 KiB

find_runtime_symbols.py12-Mar-20156.4 KiB

OWNERS12-Mar-201523

prepare_symbol_info.py12-Mar-20159.2 KiB

PRESUBMIT.py12-Mar-20151.4 KiB

README12-Mar-2015822

reduce_debugline.py12-Mar-20151.8 KiB

static_symbols.py12-Mar-20158.8 KiB

tests/12-Mar-20154 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