moldabekov / ebpfdbg

eBPF verifier log viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ebpfdbg (eBPF verifier log viewer)

This project is aimed to help debug large eBPF verifier error logs. This simple utility allows to post-process eBPF verifier log to a human-readable HTML page.

How to use

1. Get a file with eBPF verifier log

If you see an error message from eBPF verifier due to loading of your program, you need to extract full eBPF verifier logs. Make sure your log is not truncated to default 65535 bytes. Save it to a file.

2. Run eBPF verifier against it

You need to have Go compiler 1.19 or higher on your system. Run the following:

go get github.com/ph1048/ebpfdbg/cmd/
go run github.com/ph1048/ebpfdbg/cmd/ serve --input path/to/log

3. Open URL in web browser

Depending on the verifier log size, this page might be heavy.

Contribution

Ways to contribute:

  1. Create issues for problems and suggestions
  2. Post your full eBPF verifier logs (if possible)

About

eBPF verifier log viewer

License:Mozilla Public License 2.0


Languages

Language:Go 100.0%