mozillazg's Blog
  • Feed
  • About
  • Archives

Rewriting the control plane of BCC libbpf tools in Golang with libbpfgo

2022-11-26

ebpf Tags en-version / libbpf / libbpfgo Lang zh
  • Preface¶
  • Goals¶
  • Status¶

Preface¶

Today I'll introduction a new open source project: mozillazg/libbpfgo-tools . It rewritted the control plane of bcc/libbpf-tools in golang with libbpfgo .

Goals¶

The goals of this project is:

  • All ebpf related codes reuse from bcc repo and no need to changing these c codes.
  • We only implement user space codes in golang with libbpfgo.

Status¶

From now, we implemented 28/46 of bcc libbpf-tools:

  • bashreadline
  • bindsnoop
  • biolatency
  • biopattern
  • biosnoop
  • biostacks
  • bitesize
  • cpudist
  • drsnoop
  • execsnoop
  • filelife
  • filetop
  • mdflush
  • mountsnoop
  • oomkill
  • opensnoop
  • readahead
  • sigsnoop
  • solisten
  • statsnoop
  • syscount
  • tcpconnect
  • tcpconnlat
  • tcplife
  • tcprtt
  • tcpsynbl
  • tcptracer

微信扫一扫:分享

Scan me!

微信里点“发现”,扫一下

二维码便可将本文分享至朋友圈。

有任何建议和想法欢迎在下方评论区留言或者加我微信交流

Related Posts:

  • Frequently asked questions about using btf raw tracepoint with ebpf/libbpf programs
  • Frequently asked questions about using raw tracepoint with ebpf/libbpf programs
  • Frequently asked questions about using tracepoint with ebpf/libbpf programs
  • libbpfgo example: setting up the development environment and writing the first eBPF program
  • libbpfgo example: get process info in eBPF program

Comments


© 2025 mozillazg · Powered by pelican-bootstrap3, Pelican, Bootstrap · Privacy

Creative Commons License "mozillazg's Blog" by mozillazg is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License, except where indicated otherwise.

Back to top