D05 machine + CentOS7.4
kernel code
cd kernel/tools
make LDFLAGS=-static perfyou can find perf statically in kernel/tools/perf
Note:
- you may need to: yum install glibc-static
- you need install slang to enable perf report -tui. In ubuntu20.04, you need
sudo apt install libslang2-dev. you can use ldd perf to see if perf already
links slang - you may need to install a lot other libs to compile a full function perf.
(libelf-dev)