Skip to content

AOT: Add portability analyser AST pass - #1871

Merged
danobi merged 4 commits into
bpftrace:masterfrom
danobi:portability
Jun 9, 2021
Merged

danobi merged 4 commits into
bpftrace:masterfrom
danobi:portability

Conversation

@danobi

@danobi danobi commented Jun 7, 2021

Copy link
Copy Markdown
Member

This PR is part of the AOT work. More details available here.

Portability analysis pass will reject scripts that use features that are
not yet AOT compatible. The expectation is over time we can relax the
portability checks as AOT supports more features.

Note that AOT is currently intentionally undocumented. Once a basic
proof of concept is ready I'll document it.

Checklist
  • Language changes are updated in docs/reference_guide.md
  • User-visible and non-trivial changes updated in CHANGELOG.md
  • The new behaviour is covered by tests

danobi added 2 commits June 7, 2021 16:50
Portability analysis pass will reject scripts that use features that are
not yet AOT compatible. The expectation is over time we can relax the
portability checks as AOT supports more features.

Note that although we added an `--aot OUT` parameter, we do not document
it. We'll document it once something is working.
danobi added 2 commits June 7, 2021 17:31
See inline comments for more details on why each feature is disabled.
I currently believe they can all be eventually supported with minimally
invasive code changes.

Re-enabling of these features will come after the initial
proof-of-concept is completed.

@fbs fbs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@danobi
danobi merged commit b4fab10 into bpftrace:master Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants