当我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
这是一个错误吗?我怎样才能解决这个问题?
好吧,输出中的这一行是关键:
事实证明,您需要以 root 身份运行它:
如果他们在终端上打印“您必须是 root”消息或其他内容而不是崩溃,那就太好了......