Ahead-Of-Time compiled bpftrace programs

This page serves as a design document for bpftrace AOT compilation support. Design is currently a work-in-progress and will be (somewhat) regularly updated.


Overall design

Current architecture

Proposed architecture

AST passes:


Simplified architecture (some unchanged parts omitted):


AOT execution:

Unsolved problems


Future goals

Towards a functional prototype

Slow march to feature completeness

Big ticket

Test suite