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-07-17 22:09:37
最后一次提交
發布數0
用户参与
星數898
關注者數30
派生數152
提交數612
已啟用問題?
問題數142
打開的問題數38
拉請求數374
打開的拉請求數8
關閉的拉請求數145
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?