Coder Social home page Coder Social logo

ebpf_cilium_starter's Introduction

cilium/ebpf starter template

cilium ebpf common template for go.

requirements:

  • go: the basic go environment.
  • make: helpful predefined make commands for development.
  • clang: cilium ebpf library needs the clang to compile the ebpf program.
  • llvm: cilium ebpf library needs the llvm to process the compiled ebpf program. Such as llvm-strip when generate go code.
  • bpftools: dump kernel define, (un)load ebpf program, test ebpf program validation, etc.
  • bpftrace: helpful when debugging the ebpf programs, easily get POC with bt script. (but this is optional)

Usage:

make help
|=======================================================================================================
|Current Setting Variable:
|       CLANG:                          clang
|       CFLAGS:                         -O2 -g -Wall -Werror -I /usr/include/aarch64-linux-gnu -I ./pkg/ebpf-c/common
|       GOPROXY:                        'https://goproxy.io,direct'
|       GENERATED_TYPE:                 my_event
|       PATH_TO_VMLINUX:                ./pkg/ebpf-c/common
|       VMLINUX:                        vmlinux.h
|=======================================================================================================
|make command usage:
|       build:                                  build full program, default make command
|       generate:                               Generate the ebpf prog in kernel with clang.
|                                               if you need you can set the CFLAGS to append
|       tool_gen_vmlinux:                       generate vmlinux.h as ./pkg/ebpf-c/common/vmlinux.h
|       test_ebpf:                              if you editing the ebpf-c c files and header files
|                                               to test the ebpf can be compiled and pass ebpf verifier when load
|       tool_unload:                            bpftool unload progs.
|       tool_load:                              bpftool load progs.
|       tool_trace_printk:                      read tracing pipe debug bpf_printk
|       help:                                   show this help
|       usage:                                  show this help
|

ebpf_cilium_starter's People

Contributors

esonhugh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.