Dave Tucker
19af687480
codegen: add btf_decl_tag
...
This is required to add support for BTF_KIND_DECL_TAG
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
3 years ago
Ubuntu
0beb0c501f
Add bpf_lpm_trie_key to aya codegen to generate bindings
3 years ago
Dave Tucker
f8021c33fc
codegen: Add bindings for BPF_F flags
...
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
3 years ago
Dave Tucker
23d1920854
codegen: add bindings for btf structs
...
This adds `bpf_btf_info` which can be used to get BPF information via a
syscall. It also adds `btf_line_info` and `btf_func_info` which are
required to parse the line and func info sections of BTF
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
3 years ago
Alessandro Decina
eb654d1e3e
xtask: codegen: fix bindings for archs other than x86
3 years ago
alessandrod
03e9935358
Bump libbpf to 92c1e61a605410b16d6330fdd4a7a4e03add86d4
...
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
3 years ago
Alessandro Decina
7af1cf136c
aya: generate bindings for more perf types
3 years ago
Alessandro Decina
4fcb1d75b9
aya-gen: bump bindgen to 0.59
3 years ago
Alessandro Decina
2d16843d5d
xtask: clippy warnings
4 years ago
Simone Margaritelli
8311abfdcb
added support for armv7-unknown-linux-gnueabi and armv7-unknown-linux-gnueabihf
...
* new: added support for armv7-unknown-linux-gnueabi (closes alessandrod/aya/issues/22)
* fix: replaced custom type defintions with proper libc types
* fix: fixed pointless parameter binding
* new: added linker for armv7-unknown-linux-gnueabihf to cargo config
4 years ago
Alessandro Decina
8cd669ca9a
xtask: fix include paths for kernel headers bundled with libbpf
4 years ago
Arnabjyoti Kalita
6974d349e8
programs: add support for attaching and detaching TC programs
...
This change adds support for attaching TC programs directly from aya, without
having to use iproute2/tc.
4 years ago
Alessandro Decina
c44393d59b
xtask: codegen: use uapi kernel headers from libbpf
...
libbpf periodically syncs uapi headers from the kernel. Use those to
generate bindings so that we don't have to rely on distro packages
when we cut releases.
4 years ago
Alessandro Decina
d9634ae945
aya: add maps::StackTraceMap
...
Map type for BPF_MAP_TYPE_STACK_TRACE.
4 years ago
Alessandro Decina
f9554d6db5
aya: fix bindings for PERF_EVENT_IOC_{ENABLE|DISABLE|SET_BPF}
4 years ago
Alessandro Decina
92b4ed2664
aya: add support for function calls
4 years ago
Alessandro Decina
29f2d9b2d9
aya: switch to rustified enums
4 years ago
Alessandro Decina
f0444233b3
xtask: rework command line
...
xtask codegen --libbpf-dir <libbpf-dir> [SUBCOMMAND]
If SUBCOMMAND (eg aya or aya-bpf-bindings) is not given, codegen
everything.
4 years ago
Alessandro Decina
fb0c8f0bc9
xtask: add code generator for aya
4 years ago