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

bpf-perf-workshop

> 编程语言
开源

BPF 性能工具研讨会 这是由 Brendan Gregg 创建的 90 分钟的研讨会,其中使用了《BPF 性能优化》一书中的一些练习。

191 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

BPF 性能工具研讨会 这是由 Brendan Gregg 创建的 90 分钟的研讨会,其中使用了《BPF 性能优化》一书中的一些练习。

BPF Performance Tools Workshop

This is a 90-minute workshop created by Brendan Gregg, and uses some exercises from the book BPF Performance Tools: Linux System and Application Observability. BPF enables a new class of custom, efficient, and production safe performance analysis tools. Historically BPF stood for Berkeley Packet Filter, but since it has become a general purpose execution environment it is now a technology name and no longer an acronym. BPF is part of the Linux kernel.

This workshop is composed of slides, exercises, discussion, and demos. This repository contains two of those four parts: the slides and exercises, the other two are only available in class.

  • USENIX LISA2019 Slides (PDF)

Prerequisites

You can either:

  • SSH to a lab instance (see bit of paper), or,
  • Setup your own system with BCC & bpftrace. Sample instructions below.

System Setup

If you choose to setup your own system, here is a script for Ubuntu:

bash
sudo apt-get update
sudo apt-get install sysstat bpfcc-tools bpftrace gcc
git clone https://github.com/brendangregg/bpf-perf-workshop
cd bpf-perf-workshop/src
make && cd ..

Just for reference, you can fetch these repos:

bash
git clone https://github.com/iovisor/bcc
git clone https://github.com/iovisor/bpftrace

Checking your system works

Testing the opensnoop(8) tool from both BCC and bpftrace (Ubuntu package naming scheme: BCC tools end in -bpfcc, and bpftrace .bt):

$ sudo bash

opensnoop-bpfcc

[...]

opensnoop.bt

[...]

Those should produce output and not error. Ctrl-C to end each.

References

You may wish to open these in tabs. For labs 1-3 (BCC):

  • BCC tools
  • BCC tutorial

For labs 4-5 (bpftrace):

  • bpftrace tutorial
  • bpftrace reference guide
  • bpftrace tools
  • BPF book tools

Labs

  • lab1: Investigate latency
  • lab2: Investigate SSH login performance
  • lab3: Analyze a CPU issue
  • lab4: Develop new bpftrace tools
  • lab5: Advanced bpftrace tools (optional)

Copyright Brendan Gregg, 2019. All rights reserved.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

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

> 工具信息

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

> 相关工具

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