Hi,
As per the docs, I loaded msr as root but likwid still doesn’t have access to msr.
[sajid@xrmlite ~]$ sudo -s
[root@xrmlite sajid]# modprobe msr
[root@xrmlite sajid]# exit
[sajid@xrmlite ~]$ likwid-perfctr -g FLOPS_AVX -C 3 -S 20ms
--------------------------------------------------------------------------------
CPU name: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
CPU type: Intel Xeon Broadwell EN/EP/EX processor
CPU clock: 2.10 GHz
Cannot get access to MSRs. Please check permissions to the MSRs
Is there an alternative ?OS : CentOS 7.4
likwid version : 4.3.2
Build recipe: used spack package manager
[sajid@xrmlite ~]$ spack find -ldf likwid
==> 1 installed packages.
-- linux-centos7-x86_64 / g...@7.3.0 -----------------------------
r76dngv lik...@4.3.2%gcc cflags="-O3 -mavx2" cxxflags="-O3 -mavx2"
zmy36jg ^l...@5.3.4%gcc cflags="-O3 -mavx2" cxxflags="-O3 -mavx2"
7zig44d ^ncurses@6.1%gcc cflags="-O3 -mavx2" cxxflags="-O3 -mavx2"
mcblpx4 ^readline@7.0%gcc cflags="-O3 -mavx2" cxxflags="-O3 -mavx2"
tdjcr4u ^pe...@5.26.2%gcc cflags="-O3 -mavx2" cxxflags="-O3 -mavx2"
jim3cxh ^gd...@1.14.1%gcc cflags="-O3 -mavx2" cxxflags="-O3 -mavx2"
as requested :
[sajid@xrmlite ~]$ ls -la /dev/cpu/*/msr
crw-------. 1 root root 202, 0 Jul 23 15:14 /dev/cpu/0/msr
crw-------. 1 root root 202, 1 Jul 23 15:14 /dev/cpu/1/msr
crw-------. 1 root root 202, 10 Jul 23 15:14 /dev/cpu/10/msr
crw-------. 1 root root 202, 11 Jul 23 15:14 /dev/cpu/11/msr
crw-------. 1 root root 202, 12 Jul 23 15:14 /dev/cpu/12/msr
crw-------. 1 root root 202, 13 Jul 23 15:14 /dev/cpu/13/msr
crw-------. 1 root root 202, 14 Jul 23 15:14 /dev/cpu/14/msr
crw-------. 1 root root 202, 15 Jul 23 15:14 /dev/cpu/15/msr
crw-------. 1 root root 202, 16 Jul 23 15:14 /dev/cpu/16/msr
crw-------. 1 root root 202, 17 Jul 23 15:14 /dev/cpu/17/msr
crw-------. 1 root root 202, 18 Jul 23 15:14 /dev/cpu/18/msr
crw-------. 1 root root 202, 19 Jul 23 15:14 /dev/cpu/19/msr
crw-------. 1 root root 202, 2 Jul 23 15:14 /dev/cpu/2/msr
crw-------. 1 root root 202, 20 Jul 23 15:14 /dev/cpu/20/msr
crw-------. 1 root root 202, 21 Jul 23 15:14 /dev/cpu/21/msr
crw-------. 1 root root 202, 22 Jul 23 15:14 /dev/cpu/22/msr
crw-------. 1 root root 202, 23 Jul 23 15:14 /dev/cpu/23/msr
crw-------. 1 root root 202, 24 Jul 23 15:14 /dev/cpu/24/msr
crw-------. 1 root root 202, 25 Jul 23 15:14 /dev/cpu/25/msr
crw-------. 1 root root 202, 26 Jul 23 15:14 /dev/cpu/26/msr
crw-------. 1 root root 202, 27 Jul 23 15:14 /dev/cpu/27/msr
crw-------. 1 root root 202, 28 Jul 23 15:14 /dev/cpu/28/msr
crw-------. 1 root root 202, 29 Jul 23 15:14 /dev/cpu/29/msr
crw-------. 1 root root 202, 3 Jul 23 15:14 /dev/cpu/3/msr
crw-------. 1 root root 202, 30 Jul 23 15:14 /dev/cpu/30/msr
crw-------. 1 root root 202, 31 Jul 23 15:14 /dev/cpu/31/msr
crw-------. 1 root root 202, 4 Jul 23 15:14 /dev/cpu/4/msr
crw-------. 1 root root 202, 5 Jul 23 15:14 /dev/cpu/5/msr
crw-------. 1 root root 202, 6 Jul 23 15:14 /dev/cpu/6/msr
crw-------. 1 root root 202, 7 Jul 23 15:14 /dev/cpu/7/msr
crw-------. 1 root root 202, 8 Jul 23 15:14 /dev/cpu/8/msr
crw-------. 1 root root 202, 9 Jul 23 15:14 /dev/cpu/9/msr
No apparmor as far as I can see