eunomia-bpf / bpftime

Userspace eBPF runtime for fast Uprobe & Syscall hook & Extensions with LLVM JIT
https://eunomia.dev/bpftime/
MIT License
699 stars 70 forks source link

[BUG] There is no easy way to build in parallel on SMP systems #173

Closed agentzh closed 5 months ago

agentzh commented 6 months ago

Currently make ... -jN does not work since the Makefile invokes cmake --build instead of $(MAKE) so flags like -jN won't get passed down to the sub-make which does the real work.

Maybe we can apply a patch like this?

https://gist.github.com/agentzh/6ef6ee15d5e131675dd2992289fc860e

Then we can invoke it on an SMP Linux system like this:

make ... JOBS=$(nproc)

Without parallelism, it is too slow to build bpftime.