xref: /DragonOS/user/apps/test_ebpf/syscall_ebpf/README.md (revision fae6e9ade46a52976ad5d099643d51cc20876448)
1# syscall_ebpf
2
3## Prerequisites
4
51. Install bpf-linker: `cargo install bpf-linker`
6
7## Build eBPF
8
9```bash
10cargo xtask build-ebpf
11```
12
13To perform a release build you can use the `--release` flag.
14You may also change the target architecture with the `--target` flag.
15
16## Build Userspace
17
18```bash
19cargo build
20```
21
22## Build eBPF and Userspace
23
24```bash
25cargo xtask build
26```
27
28## Run
29
30```bash
31RUST_LOG=info cargo xtask run
32```
33