Description of problem: perf_test_events 测试集eacces失败,Testing EACCES generation...FAILED /proc/sys/kernel/perf_event_paranoid =1和2 都是这样 Version-Release number of selected component (if applicable): # uname -r 4.19.91-26_rc3.an8.x86_64 # uname -r 4.19.91-26_rc3.an8.aarch64 How reproducible: Steps to Reproduce: 1.git clone http://github.com/deater/perf_event_tests.git 2.cd perf_event_tests && make 3../tests/error_returns/eacces Actual results: # ./tests/error_returns/eacces This tries to get perf_event_open() to generate an EACCES return. + Trying to attach to CPU with "any thread" set Paranoid = 2 Unexpectedly opened properly. + Trying to attach to PID1 paranoid=2 uid=0 Was able to open as you areroot running as root Testing EACCES generation... FAILED Expected results: Additional info: 类似https://github.com/deater/perf_event_tests/issues/13 普通用户可以执行成功,root 失败 链接中说 https://github.com/deater/perf_event_tests/commit/d2b3ee19c02c3f917414ef421a54186392f8c00c 修复了root失败的问题 -->但是最新包含这个修复的测试代码,用例依然失败