commit | 8974bb09a2385c4dc5219e4c964d795a8208b57d | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Mon Oct 16 10:42:16 2023 -0700 |
committer | Yabin Cui <yabinc@google.com> | Mon Oct 16 11:40:51 2023 -0700 |
tree | e6520a32a80d1e60beab793f17795fa8938114c1 | |
parent | 530f66deb763d7d3ba6a950de9d9e9183591163a [diff] |
simpleperf: Write to perf_event_allow_path only when needed In arcvm, perf_event_allow_path is already -1. And we don't have permission to write -1 to it, even when running as root. Also refactor return value of ReadPerfEventAllowStatus. Bug: 293953824 Test: run simpleperf manually Change-Id: Ie01e47cc21bc690c3f1e46ba99d5af0e7ceb917c