OSDN Git Service

simpleperf: support [vdso].
authorYabin Cui <yabinc@google.com>
Fri, 19 May 2017 19:57:44 +0000 (12:57 -0700)
committerYabin Cui <yabinc@google.com>
Fri, 19 May 2017 22:12:04 +0000 (15:12 -0700)
commit63a1c3d83a68e9d94f37b71afe76d0769d744448
treec1ce718db9892825761737404d0716280863971b
parent542c1b32fa9b9b878ff353336dc36df4d6f442e7
simpleperf: support [vdso].

Before this CL, there is no way to parse symbols from [vdso] or unwind
through it. In this CL, simpleperf dumps [vdso] segment in its own memory space
to local file system, so it can be used for getting symbols or unwinding.
It takes care that vdso files for 32bit version and 64bit version are not
misused.

Bug: None.
Test: run simpleperf_unit_test.
Test: run simpleperf on processes using vdso.

Change-Id: I9233daf1d07df262a4a0fcdeadd3e544f3ccc906
simpleperf/cmd_record.cpp
simpleperf/dso.cpp
simpleperf/dso.h
simpleperf/environment.cpp
simpleperf/environment.h
simpleperf/environment_test.cpp
simpleperf/thread_tree.cpp
simpleperf/thread_tree.h