Skip to content

bpfdeploy-io/bpftrace-vscode

Repository files navigation


VS Code extension for bpftrace

The goal of this plugin is to aid eBPF developers with their bpftrace scripts from their VS Code environment. Use this with your favorite VS Code theme!

We have started with syntax highlighting, but we aim to add more features that leverage VS Code's plugin API. If you have any ideas, please let us know!

Syntax highlight features:

  • Understands probes and predicates
  • Labels bpftrace builtins
  • Highlights escape sequences within strings

Preview

Installation

You can search directly for "bpftrace" in the Visual Studio Marketplace or install directly through your command line:

$ ext install bpfdeploy.bpftrace

Contributing

The possibilities are endless with VS Code extensions so we encourage all ideas and contributions.

Bug reports may be filed on our Github issue tracker.

Testing

Our testing strategy is currently manual.

The official bpftrace repo contains a set of tools that we confirm our changes against as we make changes. We have added a git submodule of the version of the bptrace repo we have tested our latest changes on.

If you see an issue, please send us the bpftrace script if possible so we can add it in our test cases!

License

In alignment with bpftrace, we've licensed this plugin under the Apache License, Version 2.0.

https://www.apache.org/licenses/LICENSE-2.0

Acknowledgements

We want to say thank you to the bpftrace community for providing the high-level tracing tool and continuing to keep their documentation up to date.

Maintained by bpfdeploy.io