Commit Graph

5 Commits (4742e0348281f37fd1abac01c756057bf98f1a24)

Author SHA1 Message Date
Thomas Eizinger 4742e03482
De-duplicate `panic_handler` and `main`-stub with macro 4 weeks ago
Thomas Eizinger 267796f1f5
Feature-gate `no_std` and `no_main`
The `no_std` and `no_main` attributes are only needed when we compile
the eBPF kernels for the "bpf" architecture. By feature-gating them on
the target architecture, we ensure the kernels compile just fine on a
host-architecture like x64. They won't be able to do anything
meaningfully but it is useful within the context of the larger workspace
they are embedded in as it allows `cargo build --workspace` and `cargo
test --workspace` to just work.
4 weeks ago
Thomas Eizinger c005ad30ed
Use correct cfg for panic handler 4 weeks ago
Dave Tucker 41c61560ea chore(aya-ebpf): Rename bpf -> ebpf
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
1 year ago
Tuetuopay 4452364c41 macros: add 'map' option to xdp macro
This option allows to place the program in the specific sections to
chain programs with devmaps and cpumaps.
2 years ago