summaryrefslogtreecommitdiff
path: root/simpleperf/environment.h
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-06-01 15:39:39 -0700
committerYabin Cui <yabinc@google.com>2016-06-01 15:46:07 -0700
commitebf79f3a65c81ef0f8cd7a3b875771be88157fcc (patch)
treecef9949781d2a3f07ff762412f8ca7e68217d853 /simpleperf/environment.h
parent85a3e6e14fd777b92199b2e39a3b80acd77a7a0f (diff)
downloadextras-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.h2
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_