commit | bcf045413b6760d6a31a8fdfb85b22b7854d12df | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Mon Apr 06 16:26:41 2020 -0700 |
committer | Yabin Cui <yabinc@google.com> | Mon Apr 06 23:46:23 2020 -0700 |
tree | 6b6c42e543d0d9a33efdb555a234a7dd1425e4d9 | |
parent | c118258b5f24ae4ce3fbff947ef26b1c80d3a3df [diff] |
simpleperf: fix CanRecordRawData. sys.init.perf_lsm_hooks isn't accessible in app context, thus checking it in CanRecordRawData() breaks recording app with --trace-offcpu option. Fix it by not recording raw data in non-root users. Bug: 153381808 Test: run simpleperf_unit_test. Test: run test.py *TraceOffCpu*. Change-Id: Id87c73d25b19b265c022c4fa6ebb8e7d3a84152b (cherry picked from commit c98cb1193d73c1fa616d0d366a221751fde38f67)