Alessandro Decina
|
ec5822d78e
|
bpf: sk_skb: wrap more helpers
|
3 years ago |
Alessandro Decina
|
122a5306e7
|
aya, aya-bpf-bindings: regenerate bindings
|
3 years ago |
Alessandro Decina
|
8cd669ca9a
|
xtask: fix include paths for kernel headers bundled with libbpf
|
3 years ago |
Alessandro Decina
|
97cb0db0ad
|
bpf/aya-bpf-cty: target_arch for bpf*-unknown-none was renamed to "bpf"
|
3 years ago |
Alessandro Decina
|
67d35cc1d3
|
bpf: fix PerfMap::output() API when appending context data
map.output(&ctx, &data, nr_bytes) can be used to append nr_bytes from
the current context to the &data event.
|
3 years ago |
Alessandro Decina
|
73c48a5029
|
bpf: add support for BPF_PROG_TYPE_CGROUP_SKB programs
Example:
fn cgroup_skb_egress(skb: SkSkbContext) -> i32 {
// allow data to go through
1
}
|
3 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.
|
3 years ago |
Alessandro Decina
|
240c65507b
|
bpf: add HashMap::remove()
|
3 years ago |
Alessandro Decina
|
696ae6079c
|
bpf: Add HashMap::pinned API
|
4 years ago |
Alessandro Decina
|
97c96383bd
|
bpf: improve SockOpsContext API
|
4 years ago |
Alessandro Decina
|
cb3d71429c
|
bpf: improve SkMsgContext API
|
4 years ago |
Alessandro Decina
|
bf4892d0db
|
bpf: add support for Queue and SockMap maps
|
4 years ago |
Alessandro Decina
|
157c0e2831
|
bpf: generate bindings for SOL_SOCKET and SO_* socket options
This is needed for bpf_getsockopt() and bpf_setsockopt()
|
4 years ago |
Alessandro Decina
|
575e85c412
|
bpf: add id and pinning fields to bpf_map_def
|
4 years ago |
Alessandro Decina
|
ab8d512b60
|
bpf: add HashMap::insert
|
4 years ago |
Alessandro Decina
|
8f55cd728c
|
bpf: SkSkbContext: add ::l3_csum_replace
|
4 years ago |
Alessandro Decina
|
4febbc3fae
|
bpf: perf_map: fix type error
|
4 years ago |
Alessandro Decina
|
8e6f447e9b
|
bpf: sk_skb: add helper methods
This adds support for skb_store_bytes, skb_load_bytes and
l4_csum_replace to SkSkbContext.
|
4 years ago |
Alessandro Decina
|
274ea91b5e
|
bpf: aya-bpf-bindings: commit generated bindings
|
4 years ago |
Alessandro Decina
|
afcc5dc662
|
bpf: add support for BPF_PROG_TYPE_SCHED_CLS programs
|
4 years ago |
Alessandro Decina
|
1b314ded2f
|
bpf: add SockHash::redirect
|
4 years ago |
Alessandro Decina
|
e11edc072b
|
bpf: add more bindings
Initial support for Array, HashMap and SockHash maps, and for SkSkb,
SkMsg, SockOps and XDP programs.
|
4 years ago |
Alessandro Decina
|
696ca1ffa8
|
aya-bpf-bindings: generate bindings for pt_regs and sk_action
|
4 years ago |
Alessandro Decina
|
bdca32cebf
|
aya-bpf-bindings: fix anonymous enums
|
4 years ago |
Alessandro Decina
|
713494609e
|
aya-bpf-bindings: remove unused code
|
4 years ago |
Alessandro Decina
|
7815711196
|
bpf: add aya-bpf-bindings
Move the generated bindings to aya-bpf-bindings.
|
4 years ago |
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.
|
4 years ago |
Alessandro Decina
|
dc15c978f5
|
aya-bpf: generate bpf_probe_read getters for kernel types
|
4 years ago |
Alessandro Decina
|
cdf960aaa1
|
bpf: initial bpf bindings
|
4 years ago |