xref: /DragonOS/user/apps/test_ebpf/syscall_ebpf/README.md (revision 55e6f0b65f91b32638fd56581f711a816eccdcd1)
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