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/aya-bpf/src/maps
Tw d1b7b024dc bpf: fix a minor bug due to stackid allocation
The type casting introduces an allocation, this will cause compiling failure when linking final bpf target.
So remove this casting to fix this issue.

BTW, the following is the failure I met:

= note: 07:24:12 [ERROR] fatal error: "unable to allocate function return #1"
          PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
          Stack dump:
          0.    Running pass 'Function Pass Manager' on module 'trace_bpf-001a275b17e9eb12'.
          1.    Running pass 'BPF DAG->DAG Pattern Instruction Selection' on function '@_ZN7aya_bpf4maps11stack_trace10StackTrace11get_stackid17h32b649bc3780c0aaE'

Signed-off-by: Tw <wei.tan@intel.com>
4 years ago
..
array.rs bpf: add id and pinning fields to bpf_map_def 4 years ago
hash_map.rs programs: add support for attaching and detaching TC programs 4 years ago
mod.rs bpf: add support for STACK_TRACE map 4 years ago
perf_map.rs aya, aya-bpf-bindings: regenerate bindings 4 years ago
queue.rs xtask: fix include paths for kernel headers bundled with libbpf 4 years ago
sock_hash.rs bpf: add id and pinning fields to bpf_map_def 4 years ago
sock_map.rs bpf: add support for Queue and SockMap maps 4 years ago
stack_trace.rs bpf: fix a minor bug due to stackid allocation 4 years ago