perf: add linux perf tool

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
Vincent Li
2024-12-21 18:00:47 -08:00
parent 51ff36eb32
commit d88bdd74b3
2 changed files with 7 additions and 0 deletions

View File

@@ -23752,3 +23752,4 @@ usr/lib/libcpupower.so.1
#usr/share/locale/ka/LC_MESSAGES/cpupower.mo
#usr/share/locale/pt/LC_MESSAGES/cpupower.mo
usr/sbin/bpftool
usr/sbin/perf

View File

@@ -184,6 +184,9 @@ endif
cd $(DIR_APP)/tools/bpf/bpftool && sed -i -e 's/^prefix ?= \/usr\/local/prefix ?= \/usr/' Makefile
cd $(DIR_APP)/tools/bpf/bpftool && make $(MAKETUNING)
# Build perf tool
cd $(DIR_APP)/tools/perf && NO_JEVENTS=1 NO_LIBTRACEEVENT=1 make $(MAKETUNING)
# Install the kernel
cd $(DIR_APP) && cp -v arch/$(KERNEL_ARCH)/boot/$(KERNEL_TARGET) /boot/vmlinuz-$(KVER)
cd $(DIR_APP) && cp -v System.map /boot/System.map-$(KVER)
@@ -231,6 +234,9 @@ endif
# Install bpftool
cd $(DIR_APP)/tools/bpf/bpftool && make install
# Install perf tool
cd $(DIR_APP)/tools/perf && install -m 755 perf /usr/sbin/
# Make sure we can build external modules
touch -r /lib/modules/$(KVER)/build/Makefile \
/lib/modules/$(KVER)/build/include/generated/uapi/linux/version.h