Stream: git-wasmtime

Topic: wasmtime / issue #7060 Can cranelift support eBPF?


view this post on Zulip Wasmtime GitHub notifications bot (Sep 19 2023 at 12:30):

chengshuyi opened issue #7060:

Thanks for filing a feature request! Please fill out the TODOs below.

Feature

cranelift-codegen adds a new eBPF backend

Benefit

eBPF bytecode can be generated from cranelift intermediate code. Cranelift is more lightweight and has fewer dependencies than llvm.

Implementation

I used clif to simply implement some functions[1]. If possible, I can improve this part of the function.

[1] https://github.com/aliyun/coolbpf/blob/master/lwcb/bpfir/src/be/isel.rs

view this post on Zulip Wasmtime GitHub notifications bot (Sep 19 2023 at 12:31):

chengshuyi edited issue #7060:

Thanks for filing a feature request! Please fill out the TODOs below.

Feature

cranelift-codegen adds a new eBPF backend

Benefit

eBPF bytecode can be generated from cranelift intermediate code. Cranelift is more lightweight and has fewer dependencies than llvm.

Implementation

I used clif to simply implement some functions[1]. If possible, I can improve this part of the function.

[1] https://github.com/aliyun/coolbpf/blob/master/lwcb/bpfir/src/module.rs

view this post on Zulip Wasmtime GitHub notifications bot (Sep 19 2023 at 12:33):

chengshuyi edited issue #7060:

Thanks for filing a feature request! Please fill out the TODOs below.

Feature

cranelift-codegen adds a new eBPF backend

Benefit

eBPF bytecode can be generated from cranelift intermediate code. Cranelift is more lightweight and has fewer dependencies than llvm. To be precise, the binary program I used to implement eBPF bytecode generation using cranelift is only about 10MB and has almost no dependencies.

Implementation

I used clif to simply implement some functions[1]. If possible, I can improve this part of the function.

[1] https://github.com/aliyun/coolbpf/blob/master/lwcb/bpfir/src/module.rs

view this post on Zulip Wasmtime GitHub notifications bot (Sep 19 2023 at 12:47):

bjorn3 commented on issue #7060:

I opened an issue for this a couple of years ago: https://github.com/bytecodealliance/wasmtime/issues/1129 I didn't have any concrete use cases for it back then though, so it has been labeled as moonshot.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 19 2023 at 13:01):

chengshuyi commented on issue #7060:

I opened an issue for this a couple of years ago: #1129 I didn't have any concrete use cases for it back then though, so it has been labeled as moonshot.

Thanks for you quick reply. We are developing the ebpf scripting language to be able to write eBPF programs in a simple C-like language. We prefer to be able to deploy lightweight cranelift on the environment instead of llvm. I don’t know if this can be considered a case.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 03 2023 at 04:04):

alexcrichton closed issue #7060:

Thanks for filing a feature request! Please fill out the TODOs below.

Feature

cranelift-codegen adds a new eBPF backend

Benefit

eBPF bytecode can be generated from cranelift intermediate code. Cranelift is more lightweight and has fewer dependencies than llvm. To be precise, the binary program I used to implement eBPF bytecode generation using cranelift is only about 10MB and has almost no dependencies.

Implementation

I used clif to simply implement some functions[1]. If possible, I can improve this part of the function.

[1] https://github.com/aliyun/coolbpf/blob/master/lwcb/bpfir/src/module.rs

view this post on Zulip Wasmtime GitHub notifications bot (Dec 03 2023 at 04:04):

alexcrichton commented on issue #7060:

Closing as a duplicate of https://github.com/bytecodealliance/wasmtime/issues/1129


Last updated: Nov 22 2024 at 16:03 UTC