Comments (2)
eBPF_Supermarket/CPU_Subsystem/BCC_sar/src/cpu_loadavg/get_loadavg.py
from lmp.
Describe the bug myrq.h:23:30: error: use of undeclared identifier 'UCLAMP_BUCKETS'; did you mean 'UCLAMP_CNT'? struct uclamp_bucket bucket[UCLAMP_BUCKETS]; ^~~~~~~~~~~~~~ UCLAMP_CNT include/linux/sched.h:277:2: note: 'UCLAMP_CNT' declared here
Desktop (please complete the following information):
- OS: centos7 linux5.4.54.
我这边在5.4.0-132-generic的内核版本上执行 sudo python3 ./get_loadavg.py 没有出现这样的报错,可以成果运行,如果可以的话,请你给我提供更多运行的细节。
或者如果仍然提示UCLAMP_BUCKETS没有被定义的话,你可以试着参照eBPF_Supermarket/CPU_Subsystem/bpftrace_application/runqlen_se.c中:
struct uclamp_rq {
unsigned int value;
struct uclamp_bucket bucket[5];
};
将UCLAMP_BUCKETS定义为5试着看可以运行不?
还有就是请确定你已经成功配置bcc环境
from lmp.
Related Issues (20)
- 使用 Prometheus 和 Grafana 构建 Linux 内核监控平台(基于 eBPF 程序采集内核数据)
- Process_image 项目:目标是开发一个Linux用户态进程生命周期画像工具 HOT 3
- Stack_Analyzer项目:基于eBPF的调用栈统计工具 HOT 6
- 使用eBPF优化FUSE read方法性能
- net_watcher项目:基于eBPF的无侵入式网络分析工具开发建设
- net_manager 项目:对 linux 内核网络进行优化和加速 HOT 2
- fast_fuse项目:使用eBPF优化FUSE read/write 等方法性能 HOT 4
- mem_watcher 项目:目标是分析主机中指定进程或者服务内存使用情况 HOT 1
- cpu_watcher 项目:目标是分析cpu 的运行状态 HOT 4
- kvm_watcher 项目:目标是分析 kvm 的状态信息 HOT 15
- cilium_ebpf_probe 代码编译需要修复
- sidecar 代码编译需要修复
- eBPF DNS Cache HOT 4
- BCC_sar下的各个功能整合到 cpu_watcher:
- fs_watcher项目:目标是检测文件系统的性能指标 HOT 10
- [BUG]get_loadavg HOT 1
- c++符号解析支持
- MagicEyes:Linux内核观测与诊断工具框架
- [BUG] compile eBPF_proc_image error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lmp.