Commit Graph

25 Commits (d70e29158037a083d5886d30d2029bd054974af5)

Author SHA1 Message Date
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.
Alessandro Decina 157c0e2831 bpf: generate bindings for SOL_SOCKET and SO_* socket options
This is needed for bpf_getsockopt() and bpf_setsockopt()
Alessandro Decina 5effc972ac aya: add support for BPF_PROG_TYPE_SCHED_CLS programs
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.
Alessandro Decina dda8534d9d xtask: aya-bpf-bindings: generate bindings for xdp_action
Alessandro Decina 696ca1ffa8 aya-bpf-bindings: generate bindings for pt_regs and sk_action
Alessandro Decina d9634ae945 aya: add maps::StackTraceMap
Map type for BPF_MAP_TYPE_STACK_TRACE.
Alessandro Decina f9554d6db5 aya: fix bindings for PERF_EVENT_IOC_{ENABLE|DISABLE|SET_BPF}
Alessandro Decina 92b4ed2664 aya: add support for function calls
Alessandro Decina 29f2d9b2d9 aya: switch to rustified enums
Alessandro Decina bdca32cebf aya-bpf-bindings: fix anonymous enums
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.
Alessandro Decina 9d112c35c7 xtask: aya-bpf-bindings: generate bindings for aarch64
Alessandro Decina fb0c8f0bc9 xtask: add code generator for aya
Alessandro Decina d9c3489165 aya-gen: rename probe_read_getter to read_getter
The same code can be used to wrap with preserve_access_index()
Alessandro Decina 9cd04a79e7 xtask: use more aya-gen
Alessandro Decina 16975e87d8 xtask: rework code generator for bpf helpers
Alessandro Decina 7ae3ddf2fa xtask: use aya-gen to generate the getters
Alessandro Decina 7815711196 bpf: add aya-bpf-bindings
Move the generated bindings to aya-bpf-bindings.
Alessandro Decina b5cb1f479f xask: add bindings::write
Alessandro Decina ee205627b7 xtask: rename bindgen module to bindings
Alessandro Decina 1bb3846071 xtask: fix getters source order
Generate getters in the same order as the fields they access. Avoids git
noise and makes for better docs.
Alessandro Decina 25170a539b xtask: start moving bindgen to its own module
Alessandro Decina dc15c978f5 aya-bpf: generate bpf_probe_read getters for kernel types
Alessandro Decina cdf960aaa1 bpf: initial bpf bindings