Starship icon indicating copy to clipboard operation
Starship copied to clipboard

Prototyping a libbpf wasm binding library for wasmtime

Open nascentcore-eng opened this issue 2 years ago • 5 comments

@yunwei37 will add more detail.

This work should be done in the eunomia-bpf/wasm-bpf

nascentcore-eng avatar Feb 08 '23 14:02 nascentcore-eng

There is a test repo in https://github.com/eunomia-bpf/wasmtime-test, where they are trying to mirage to wasmtime.

Some problems related to wasmtime is reported in https://github.com/bytecodealliance/wasmtime/issues/5775

An issue for tracking this is opened in https://github.com/eunomia-bpf/wasm-bpf/issues/15

yunwei37 avatar Feb 14 '23 15:02 yunwei37

https://github.com/eunomia-bpf/WasmEdge/tree/master/plugins/wasm-bpf Need to show how to use wasmedge go sdk to work with ebpf object file

nascentcore-eng avatar Feb 25 '23 04:02 nascentcore-eng

https://github.com/eunomia-bpf/c-struct-bindgen#usage---genereate-struct-to-struct-binding JSON string output from c struct

nascentcore-eng avatar Feb 25 '23 04:02 nascentcore-eng

Any updates @yunwei37

nascentcore-eng avatar Mar 09 '23 13:03 nascentcore-eng

see https://github.com/eunomia-bpf/WasmEdge, we have a wasmedge libbpf plugin in https://github.com/eunomia-bpf/WasmEdge/tree/master/plugins/wasm-bpf

You can directly use this plugin with wasmedge go sdk, see https://wasmedge.org/book/en/sdk/go.html

BPF programs can run inside wasmedge, without any changes to the outside host sdks.

yunwei37 avatar Mar 09 '23 18:03 yunwei37