bcc-bpf - 无法运行 bcc-tools 分析器
问题描述
我正在尝试运行密件抄送工具的“profile.py”,并遇到以下错误:
./bcc/tools/profile.py
Sampling at 49 Hertz of all threads by user + kernel stack... Hit Ctrl-C to end.
In file included from <built-in>:1:
././include/linux/kconfig.h:5:10: fatal error: 'generated/autoconf.h' file not found
#include <generated/autoconf.h>
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Traceback (most recent call last):
File "./bcc/tools/profile.py", line 265, in <module>
b = BPF(text=bpf_text)
File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 325, in __init__
raise Exception("Failed to compile BPF text")
linux 头文件位于 /lib/modules 的正常位置下。这是在内核版本 4.19.88 下运行的。
任何指针将不胜感激。
解决方案
推荐阅读
- c# - HtmlAgilityPack - 删除所有属性
- mysql - Leetcode 数据库 584. COALESCE(referee_id,0) 含义
- heroku - 使用来自 name.com 的自定义域和 heroku
- java - 为学校项目创建作业列表,但我收到 NullPointerException
- delphi - 德尔福。文件写入,错误 - E2036 需要变量
- c# - oData EndPoint:是否影响 SQL 查询?
- python - 在 ubuntu 18.04 中更改 python 的默认版本
- javascript - 查找属性为小数的具有最大值的对象属性
- qt - 如何动态绘制多边形并使其点/标记在 QML 中可移动?
- c++ - 我应该使用 std::optional 还是继承添加可选的类成员?