gpt4 book ai didi

linux - Perf 在 Ubuntu 中无法正常工作

转载 作者:IT王子 更新时间:2023-10-29 01:21:53 24 4
gpt4 key购买 nike

我安装了 perf 但当我尝试使用它时显示此消息

Kernel address maps (/proc/{kallsyms,modules}) were restricted. Check /proc/sys/kernel/kptr_restrict before running 'perf record'.

As no suitable kallsyms nor vmlinux was found, kernel samples can't be resolved.

Samples in kernel modules can't be resolved as well.

也尝试了 GTK 但它显示此消息

GTK browser requested but could not find libperf-gtk.so

我该怎么办?

最佳答案

尝试将kptr_restrict设置为0:

sudo sh -c " echo 0 > /proc/sys/kernel/kptr_restrict"

请注意,GTK 错误与此无关,但表明您缺少库。

关于linux - Perf 在 Ubuntu 中无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28475521/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com