Skip to content
BPF: Tracing and More episode artwork

Mar 22, 2021 46 min

BPF: Tracing and More

from CNCAST Hosted by judson feedlyn

This episode aired on Youtube in the CNCF official Channel on Dec 15, 2017 Brendan Gregg. ​A world of new capabilities is emerging for the Linux 4.x series, thanks to enhancements that have been included in Linux for the Berkeley Packet Filter (BPF): an in-kernel virtual machine that can execute user space-defined programs. It is finding uses for security auditing and enforcement, enhancing networking (including eXpress Data Path), and performance observability and troubleshooting. Many new open source tools that have been written in the past 12 months for performance analysis that use BPF. Tracing superpowers have finally arrived for Linux! For its use with tracing, BPF provides the programmable capabilities to the existing t racing frameworks: kprobes, uprobes, and tracepoints. In particular, BPF allows timestamps to be recorded and compared from custom events, allowing latency to be studied in many new places: kernel and application internals. It also allows data to be efficiently summarized in-kernel, including as histograms. This has allowed dozens of new observability tools to be developed so far, including measuring latency distributions for file system I/O and run queue latency, printing details of storage device I/O and TCP retransmits, investigating blocked stack traces and memory leaks, and a whole lot more. This talk will summarize BPF capabilities and use cases so far, and then focus on its use to enhance Linux tracing, especially with the open source bcc collection. bcc includes BPF versions of old classics, and many new tools, including execsnoop, opensnoop, funcccount, ext4slower, and more (many of which I developed). Perhaps you'd like to develop new tools, or use the existing tools to find performance wins large and small, especially when instrumenting areas that previously had zero visibility. I'll also summarize how we intend to use these new capabilities to enhance systems analysis at Netflix. This video is based on the youtube video with the same title, it is licensed under Creative Commons Attribution license (reuse allowed) as stated in youtube the March 22, 2021

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

BPF: Tracing and More

0:00 46:17

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of CNCAST?

This episode is 46 minutes long.

When was this CNCAST episode published?

This episode was published on March 22, 2021.

Can I download this CNCAST episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.