Skip to content

nickolaev/vscode-ebpf-assembly

Repository files navigation

ebpf-assembly

A simple eBPF assembly highlight extension for VSCode.

Usage

Dump the bpf object file like this:

$ llvm-objdump -dS --no-show-raw-insn bpf_host.o > bpf_host.S

Open the resulting *.S file in vscode and select eBPF assembly as file type.

Development

To test locally, install the extension from this folder (VS Code: "Developer: Install Extension from Location...") and reload the window. Open a .S file to verify highlighting.

Inspired by the work of @pchaigno

https://pchaigno.github.io/ebpf/2019/10/11/bpf-syntax-highlighting.html https://github.com/rouge-ruby/rouge/blob/master/lib/rouge/lexers/bpf.rb

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors