commit | 876809ac10a4b2e8020ad2bc1d28e3d786ef93ea | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Wed Jun 22 12:14:45 2016 -0700 |
committer | Yabin Cui <yabinc@google.com> | Wed Jun 22 12:14:45 2016 -0700 |
tree | a4c97c1237353d10ff105b2017a012356c9a868a | |
parent | cee718a1c68eaaf7c3cc81be9a4c89fca1ea96ad [diff] |
Simpleperf: check root privilege for system wide profiling. Giving the suggestion to run as root is better than reporting a bunch of failures trying to open perf_event files. Bug: 29574526 Change-Id: Id7b7586a5aa7e79e4ef821f9ab710ccdf550ed94 Test: run `simpleperf record -a` with non root and check the error message.