Coder Social home page Coder Social logo

eunomia-bpf / eunomia-cc Goto Github PK

View Code? Open in Web Editor NEW
7.0 6.0 1.0 1.96 MB

Compile and Run eBPF with WASM (Development move to https://github.com/eunomia-bpf/eunomia-bpf)

Home Page: https://github.com/eunomia-bpf/eunomia-bpf

License: MIT License

Makefile 9.18% C 11.43% Rust 79.39%
ebpf ebpf-co-re wasi-sdk wasm webassembly

eunomia-cc's Introduction

The eBPF compile toolchain for eunomia-bpf

eunomia-bpf is a compilation framework and runtime library to build, distribute, dynamically load, and run CO-RE eBPF applications in multiple languages and WebAssembly.

It supports:

  • writing eBPF kernel code only (to build simple CO-RE libbpf eBPF applications)
  • writing the kernel part in both BCC and libbpf styles
  • writing eBPF userspace programs in multiple languages in a WASM module, and distributing it with simple JSON data or WASM OCI images.

The runtime is based on libbpf only and provides CO-RE to BCC-style eBPF programs without depending on the LLVM library.

The further development of this compiler toolchain will be move to eunomia-bpf main repository.

eunomia-cc's People

Contributors

jadeflute0127 avatar yunwei37 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jadeflute0127

eunomia-cc's Issues

Add a github actions to build this project

  1. add a ./build.sh in repo, contains:
    • git submodule update... , to get submodule
    • apt get or others, to find package
    • run makefile to generate package.json
  2. add the build.sh in CI

[FEATURE] minimize the size of docker image

Is your feature request related to a problem? Please describe.

yunwei37/ebpm                                 latest    1fa90cb7d17b   2 days ago      1.35GB

Describe the solution you'd like

It should not be so large. Maybe replace ubuntu with clang image?

Add a docker or podman image

add a podman image to compile user code:

suppose we have a dir contains these files:

  • config.json
  • example.ebpf.c
  • example.ebpf.h

we need a script to:

  1. copy them to this repo,
  2. replace the contains of client.bpf.c and event.h with them
  3. run compile
  4. copy .output/package.json back to user

Run the container like this:

$ docker run -it -v /src:/src centos ./run.sh

[FEATURE] add cmd to generate a project template

Is your feature request related to a problem? Please describe.

currently we have sevral issues:

  • vscode include path error
  • IDE disable
  • template cannot be auto generate

Describe the solution you'd like

Add a cmd to generate a project template:

SOURCE_DIR=[target dir] make template

a new project folder will be copied to target dir, include at lease:

├── bootstrap.bpf.c
├── bootstrap.bpf.h
├── config.json
└── README.md

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.