<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bpf on Chris J Arges</title><link>https://chrisarges.net/tags/bpf/</link><description>Recent content in Bpf on Chris J Arges</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 21 Mar 2019 11:54:37 -0500</lastBuildDate><atom:link href="https://chrisarges.net/tags/bpf/index.xml" rel="self" type="application/rss+xml"/><item><title>bpf for linux tracing</title><link>https://chrisarges.net/posts/2019-03-21-bpf-for-tracing/</link><pubDate>Thu, 21 Mar 2019 11:54:37 -0500</pubDate><guid>https://chrisarges.net/posts/2019-03-21-bpf-for-tracing/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;/h2&gt;&#10;&lt;p&gt;Originally called eBPF for extended Berkeley Packet Filter, BPF is an in-kernel&#10;bytecode interpreter that is very multi-purpose. In this post, I&amp;rsquo;m going to&#10;focus on its tracing capabilities.&lt;/p&gt;&#10;&lt;p&gt;To use BPF one can use the bpf &lt;a href="http://man7.org/linux/man-pages/man2/bpf.2.html"&gt;syscall&lt;/a&gt;. This provides a way to both load&#10;BPF bytecode programs and also create memory maps for sharing data between&#10;kernel and user space.&lt;/p&gt;&#10;&lt;p&gt;Because of the complexity, using bpf in a DIY method becomes a bit complex.&#10;There are many ready to use tools such as &lt;a href="https://github.com/iovisor/bcc"&gt;BCC&lt;/a&gt; and libbpf that make usage&#10;way easier.&lt;/p&gt;</description></item></channel></rss>