commit | c98cb1193d73c1fa616d0d366a221751fde38f67 | [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 16:31:10 2020 -0700 |
tree | da314bf4ccb9a63cda092562a10e7b172fa9d835 | |
parent | 4d1a421368e14e976de90ea0c40fb70c08d514a8 [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