When I run intel_gpu_top
on my 16.04 system, it crashes at line 145 in intel_mmio.c
:
~$ intel_gpu_top
(intel_gpu_top:25862) intel-mmio-CRITICAL: Test assertion failure function intel_mmio_use_pci_bar, file ../../lib/intel_mmio.c:145:
(intel_gpu_top:25862) intel-mmio-CRITICAL: Failed assertion: !(error != 0)
(intel_gpu_top:25862) intel-mmio-CRITICAL: Last errno: 13, Permission denied
(intel_gpu_top:25862) intel-mmio-CRITICAL: Couldn't map MMIO region
Stack trace:
#0 [_init+0x83d9]
#1 [_init+0x6036]
#2 [_init+0x1301]
#3 [__libc_start_main+0xf0]
#4 [_init+0x2f61]
#5 [<unknown>+0x2f61]
Test (null) failed.
**** DEBUG ****
(intel_gpu_top:25862) intel-mmio-CRITICAL: Test assertion failure function intel_mmio_use_pci_bar, file ../../lib/intel_mmio.c:145:
(intel_gpu_top:25862) intel-mmio-CRITICAL: Failed assertion: !(error != 0)
(intel_gpu_top:25862) intel-mmio-CRITICAL: Last errno: 13, Permission denied
(intel_gpu_top:25862) intel-mmio-CRITICAL: Couldn't map MMIO region
This guy has the same problem.
Is this a bug? How can I fix this?
Well, this line in the output was key:
Turns out that you need to run it as root:
It would be nice if they printed a "You must be root" message or something to the terminal instead of just crashing.....