uBPF

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

  • Owner: iovisor/ubpf
  • Platform: Windows,Linux,Mac
  • License:: Apache License 2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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>.

Main metrics

Overview
Name With Owneriovisor/ubpf
Primary LanguageC
Program languagePython (Language Count: 8)
Platform
License:Apache License 2.0
所有者活动
Created At2015-09-15 02:48:22
Pushed At2025-06-07 15:10:08
Last Commit At
Release Count0
用户参与
Stargazers Count891
Watchers Count30
Fork Count152
Commits Count609
Has Issues Enabled
Issues Count141
Issue Open Count38
Pull Requests Count371
Pull Requests Open Count5
Pull Requests Close Count143
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private