You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aya/bpf
Michal Rostecki a3a96b8415 bpf: Change the result type of bpf_get_current_comm helper
Change it from `[i8; 16]` to `[u8; 18]`. `i8` arrays cannot be easily used in
Rust for converting to string (i.e. with `core::str::from_utf8_unchecked`)
and developers have to convert them themselves with unsafe code.

Using u8 arrays lets developers to just convert it with
`core::str::from_utf8_unchecked` without any limitations.

Example:

https://github.com/vadorovsky/aya-examples/blob/main/clone/clone-ebpf/src/main.rs

Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
2 years ago
..
aya-bpf bpf: Change the result type of bpf_get_current_comm helper 2 years ago
aya-bpf-bindings bpf: re-reun build.rs if env changed 2 years ago
aya-bpf-cty bpf: re-reun build.rs if env changed 2 years ago
aya-bpf-macros bpf: Implement BPF_PROG_TYPE_CGROUP_SOCK 2 years ago
Cargo.toml bpf: add aya-bpf-bindings 4 years ago
rustfmt.toml test: Replace RTF with Rust 2 years ago