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):

Key:


AOT execution:

Unsolved problems

Notes

Future goals