百科.dev
全部条目趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
B

bcc

> 编程语言
开源

BCC - 基于BPF的Linux IO分析、联网、监测等工具

22.6K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

BCC - 基于BPF的Linux IO分析、联网、监测等工具

BPF编译器 Collection (BCC) BCC是用于创建高效内核追踪和操纵程序的工具包,并包括了几个有用的工具和实例. 它使用扩展的BPF(Berkeley Packet Filters),正式取名为eBPF,这个新功能最初被添加到Linux 3.15中. BCC使用的大部分需要Linux 4.1及以上. eBPF被Ingo Molnár描述为: 这个循环中更有趣的特征之一是能够将eBPF程序(由内核执行的用户自定义,沙盒字节码)附加到kprobes上. 这使得用户在现场内核图像上自定义的仪器无法对内核进行负面的崩溃,悬挂或干扰. BCC使得BPF程序更容易被写入,其内核仪表在C中(并包括一个环绕LLVM的C包装器),前端在Python和lua中. 它适合许多任务,包括性能分析和网络流量

核心特点

  • •examples/tracing/bitehist.py: Block I/O size histogram. Examples.
  • •examples/tracing/disksnoop.py: Trace block device I/O latency. Examples.
  • •examples/hello_world.py: Prints "Hello, World!" for new processes.
  • •examples/tracing/mysqld_query.py: Trace MySQL server queries using USDT probes. Examples.
  • •examples/tracing/nodejs_http_server.py: Trace Node.js HTTP server requests using USDT probes. Examples.
  • •examples/tracing/stacksnoop: Trace a kernel function and print all kernel stack traces. Examples.
  • •tools/statsnoop: Trace stat() syscalls. Examples.
  • •examples/tracing/task_switch.py: Count task switches with from and to PIDs.
  • •examples/tracing/tcpv4connect.py: Trace TCP IPv4 active connections. Examples.
  • •examples/tracing/trace_fields.py: Simple example of printing fields from traced events.

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月9日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言
百科.dev

开发者百科,帮助你快速发现语言、框架、数据库、DevOps 与云原生等优质开发者工具。

快捷入口

  • 首页
  • 全部条目
  • 趋势榜
  • 开源项目

关于我们

  • 关于我们
  • 社区公约
  • 技术资讯

参与我们

发现好用的开发者工具?欢迎提交分享。

提交条目
© 2026 开发者百科 baike.dev数据每日更新 · 发现优质开发者工具