1*fae6e9adSlinfeng# syscall_ebpf 2*fae6e9adSlinfeng 3*fae6e9adSlinfeng## Prerequisites 4*fae6e9adSlinfeng 5*fae6e9adSlinfeng1. Install bpf-linker: `cargo install bpf-linker` 6*fae6e9adSlinfeng 7*fae6e9adSlinfeng## Build eBPF 8*fae6e9adSlinfeng 9*fae6e9adSlinfeng```bash 10*fae6e9adSlinfengcargo xtask build-ebpf 11*fae6e9adSlinfeng``` 12*fae6e9adSlinfeng 13*fae6e9adSlinfengTo perform a release build you can use the `--release` flag. 14*fae6e9adSlinfengYou may also change the target architecture with the `--target` flag. 15*fae6e9adSlinfeng 16*fae6e9adSlinfeng## Build Userspace 17*fae6e9adSlinfeng 18*fae6e9adSlinfeng```bash 19*fae6e9adSlinfengcargo build 20*fae6e9adSlinfeng``` 21*fae6e9adSlinfeng 22*fae6e9adSlinfeng## Build eBPF and Userspace 23*fae6e9adSlinfeng 24*fae6e9adSlinfeng```bash 25*fae6e9adSlinfengcargo xtask build 26*fae6e9adSlinfeng``` 27*fae6e9adSlinfeng 28*fae6e9adSlinfeng## Run 29*fae6e9adSlinfeng 30*fae6e9adSlinfeng```bash 31*fae6e9adSlinfengRUST_LOG=info cargo xtask run 32*fae6e9adSlinfeng``` 33