orbpf-ko icon indicating copy to clipboard operation
orbpf-ko copied to clipboard

The orbpf (eBPF+) Linux kernel module from OpenResty Inc.

trafficstars

Name

orbpf-ko - The orbpf (eBPF+) Linux kernel module from OpenResty Inc.

Table of Contents

  • Name
  • Description
  • How to build
  • Load the module
  • Unload the module
  • Run sanity tests
  • Copyright
  • License

Description

This Linux/Android kernel module is an enhanced version of the eBPF runtime in the mainline Linux kernels and Android kernels.

It is also known as eBPF+.

See our Ylang blog post series for more details.

Some of the safety and halting guarentees are implemented in higher level compilers like Ylang at compile time instead of relying on the in-kernel verifier at load time.

How to build

# assuming the current working directory is the module root
# directory
KERNEL_PREFIX=/path/to/kernel/build/tree
make -C $KERNEL_PREFIX M=$PWD modules -j$(nproc)

Load the module

sudo insmod orbpf.ko

Back to TOC

Unload the module

sudo rmmod orbpf

Back to TOC

Run sanity tests

gcc -o test test.c
sudo ./test

Back to TOC

Copyright

Copyright (C) by OpenResty Inc. All rights reserved.

Copyright (C) by Linux Kernel Contributors.

Copyright (c) 2023 Kirk Nickish and https://github.com/823984418

Back to TOC

License

GPL 2.0

Back to TOC