Skip to content

Add compile-time optional logging for runtime API #9

@jpsamaroo

Description

@jpsamaroo

Many functions in Julia can throw exceptions, which we can't handle in BPF, but we can detect them and return nothing instead (where the function returns an important value) or do nothing (where the function performs a side-effect). This is better than UB (undefined behavior), but also can make it hard to debug kernels. We should allow users to opt-in to logging to a default buffer which will get printed to stderr automatically by BPFnative. The logging can be disabled by setting an environment variable and re-precompiling BPFnative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions