aya-rs / aya

Aya is an eBPF library for the Rust programming language, built with a focus on developer experience and operability.
https://aya-rs.dev/book/
Apache License 2.0
3.25k stars 290 forks source link

Inconsistent integer size between stackid kernelside and userside #1052

Open LeChatP opened 1 month ago

LeChatP commented 1 month ago

Hello everyone,

Kernelside: StackTrace::get_stackid() returns an i64. However, Userside: StackTraceMap::get() requires i32. In C, bpf_get_stackid() returns a long which is an i32 on 32-bit system, and i64 on 64-bit system.

Thank you for your time.