intel_gpu_top
当我在 16.04 系统上运行时,它在第 145 行崩溃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
这是一个错误吗?我该如何修复它?
答案1
嗯,输出中的这一行是关键:
(intel_gpu_top:25862) intel-mmio-CRITICAL: Last errno: 13, Permission denied
事实证明您需要以 root 身份运行它:
sudo intel_gpu_top
如果他们能在终端上打印“您必须是 root”消息或其他内容而不是直接崩溃就好了......