OSDN Git Service

simpleperf: check kernel symbol addresses before dumping them.
authorYabin Cui <yabinc@google.com>
Fri, 8 Jul 2016 18:27:48 +0000 (11:27 -0700)
committerYabin Cui <yabinc@google.com>
Tue, 12 Jul 2016 20:52:51 +0000 (13:52 -0700)
commitaf69895fec14e33be1ac0af31d62ca87844a89b3
tree3a114a103c3182289798e15664b6b203acee15ab
parent78f176baafaffbe5192b7565c4e7d68ce998e731
simpleperf: check kernel symbol addresses before dumping them.

If kernel symbols have zero addresses, there is no need to dump them,
and we can give useful suggestion.

Bug: 29574526
Test: manually set /proc/sys/kernel/kptr_restrict and run simpleperf record.
Change-Id: I850531c7e4c5315a44e08cf3b73852e77fef8eb8
simpleperf/cmd_record.cpp
simpleperf/environment.cpp
simpleperf/environment.h