diff options
author | Yabin Cui <yabinc@google.com> | 2016-06-01 15:39:39 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-06-01 15:46:07 -0700 |
commit | ebf79f3a65c81ef0f8cd7a3b875771be88157fcc (patch) | |
tree | cef9949781d2a3f07ff762412f8ca7e68217d853 /simpleperf/environment.h | |
parent | 85a3e6e14fd777b92199b2e39a3b80acd77a7a0f (diff) | |
download | extras-ebf79f3a65c81ef0f8cd7a3b875771be88157fcc.tar.gz |
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
Diffstat (limited to 'simpleperf/environment.h')
-rw-r--r-- | simpleperf/environment.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/simpleperf/environment.h b/simpleperf/environment.h index cb44ebe3..b8eac610 100644 --- a/simpleperf/environment.h +++ b/simpleperf/environment.h @@ -69,4 +69,6 @@ bool GetValidThreadsFromThreadString(const std::string& tid_str, std::set<pid_t> bool GetExecPath(std::string* exec_path); +bool CheckPerfEventLimit(); + #endif // SIMPLE_PERF_ENVIRONMENT_H_ |