A tool to list and diagnose bpf programs. (Who watches the watchers..? :)

Clone this repo:

Branches

  1. 7eac21b fix by Jess Frazelle · 12 days ago master
  2. 909a758 update vendor by Jess Frazelle · 12 days ago
  3. fe4b3ff update cgoenabled by Jess Frazelle · 12 days ago
  4. f571f46 update generated project files by Jess Frazelle · 12 days ago
  5. 1d4b9b5 run dep prune by Jess Frazelle · 12 days ago

bpfps

Travis CI

A tool to list and diagnose bpf programs. (Who watches the watchers..? :)

Shoutout to cilium's golang bpf package for doing a lot of heavy lifting here.

Installation

Binaries

Via Go

$ go get github.com/genuinetools/bpfps

Using your package manager

Usage

$ bpfps -h
 _            __
| |__  _ __  / _|_ __  ___
| '_ \| '_ \| |_| '_ \/ __|
| |_) | |_) |  _| |_) \__ \
|_.__/| .__/|_| | .__/|___/
      |_|       |_|

 A tool to list and diagnose bpf programs.  (Who watches the watchers..? :)
 Version: v0.1.1
 Build: be7363d

  -d    run in debug mode
  -v    print version and exit (shorthand)
  -version
        print version and exit
$ sudo bpfps                                                                                                             
BID                 NAME                TYPE                UID                 MAPS                LOADTIME
21                                      Array               0                   []uint32(nil)       17h25m55.523229433s
22                                      Array               0                   []uint32(nil)       17h25m55.530713603s