OSDN Git Service

simpleperf: check perf event limit.
authorYabin Cui <yabinc@google.com>
Wed, 1 Jun 2016 22:39:39 +0000 (15:39 -0700)
committerYabin Cui <yabinc@google.com>
Fri, 10 Jun 2016 23:36:18 +0000 (16:36 -0700)
commit92c688b1f744dbded59f2df547f31db1638e316b
tree1c922e700176ee8d622d8826143a23d3b9d7d95f
parent600c6341e62c165c60f526174d965cc7f1b30c38
simpleperf: check perf event limit.

The property security.perf_harden is added in https://android-review.googlesource.com/#/c/233736/5. And simpleperf needs to notice that.

Bug: 29054680
Change-Id: I5f1593f5b389d182a56c4bf3bd438a1dc2b66686
(cherry picked from commit ebf79f3a65c81ef0f8cd7a3b875771be88157fcc)
simpleperf/cmd_list.cpp
simpleperf/cmd_record.cpp
simpleperf/cmd_stat.cpp
simpleperf/environment.cpp
simpleperf/environment.h
simpleperf/gtest_main.cpp
simpleperf/utils.cpp
simpleperf/utils.h