OSDN Git Service

simpleperf: support libraries without build ids when recording.
authorYabin Cui <yabinc@google.com>
Tue, 19 Nov 2019 00:40:28 +0000 (16:40 -0800)
committerYabin Cui <yabinc@google.com>
Tue, 19 Nov 2019 18:34:34 +0000 (10:34 -0800)
commita4496ada66451f5475f8f8c3d42ff23bde01258d
tree9d8ba8ccad2fea495b48f5009cf72ce43669d17e
parent9fe57a62aeaaaa083b49f494643a9d9ca24daaac
simpleperf: support libraries without build ids when recording.

Simpleperf can download unstripped libraries on device and use them
for unwinding during recording, through `app_profiler.py -lib` and
`simpleperf record --symfs` options. But it doesn't support libraries
without build ids.

To support them:
1. In app_profiler.py, download libraries without build ids in native
   lib dir.
2. In DebugElfFileFinder in dso.cpp, check path with the same basename
   in symfs_dir.

Also add document for downloading unstripped libraries on device.

Bug: none
Test: run simpleperf_unit_test.
Test: run test.py.
Change-Id: I5d9015e683f2ecb992d425a42f1f7303307b2cea
simpleperf/doc/README.md
simpleperf/dso.cpp
simpleperf/dso_test.cpp
simpleperf/scripts/app_profiler.py
simpleperf/scripts/binary_cache_builder.py
simpleperf/scripts/test.py
simpleperf/scripts/utils.py