uBPF

用户空间 eBPF 虚拟机。「Userspace eBPF VM」

  • 所有者: iovisor/ubpf
  • 平台: Windows,Linux,Mac
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

uBPF

Userspace eBPF VM

Build Status
Coverage Status

About

This project aims to create an Apache-licensed library for executing eBPF programs. The primary implementation of eBPF lives in the Linux kernel, but due to its GPL license it can't be used in many projects.

Linux documentation for the eBPF instruction set

Instruction set reference

This project includes an eBPF assembler, disassembler, interpreter,
and JIT compiler for x86-64.

Building

Run make -C vm to build the VM. This produces a static library libubpf.a
and a simple executable used by the testsuite. After building the
library you can install using make -C vm install via either root or
sudo.

Compiling C to eBPF

You'll need Clang 3.7.

clang-3.7 -O2 -target bpf -c prog.c -o prog.o

You can then pass the contents of prog.o to ubpf_load_elf, or to the stdin of
the vm/test binary.

Contributing

Please fork the project on GitHub and open a pull request. You can run all the
tests with nosetests.

License

Copyright 2015, Big Switch Networks, Inc. Licensed under the Apache License, Version 2.0
<LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0>.

主要指标

概览
名称与所有者iovisor/ubpf
主编程语言C
编程语言Python (语言数: 8)
平台
许可证Apache License 2.0
所有者活动
创建于2015-09-15 02:48:22
推送于2025-06-07 15:10:08
最后一次提交
发布数0
用户参与
星数891
关注者数30
派生数152
提交数609
已启用问题?
问题数141
打开的问题数38
拉请求数371
打开的拉请求数5
关闭的拉请求数143
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?