This sort of piggy-backs off #54 regarding the kernel version but I am trying to get linux's perf profiling tool working on the base 20.04 image. By default, apt on this version is looking for linux kernel related tools at the version 5.4 - 5.15 and does not immediately recognize versions related to the current kernel, 4.9.253. Has there been any success getting perf or any of the linux-tools-* repos working on this OS and kernel version combination? When trying to compile perf from the default source linux-headers on the image I see this is what we have available:
$ ls /usr/src/ | grep linux
linux-headers-4.9.253-tegra-ubuntu18.04_aarch64
When trying to build /usr/src/linux-headers-4.9.253-tegra-ubuntu18.04_aarch64/kernel-4.9/tools/perf
$ sudo make
BUILD: Doing 'make -j4' parallel build
Makefile.perf:8: ../scripts/utilities.mak: No such file or directory
make[1]: *** No rule to make target '../scripts/utilities.mak'. Stop.
make: *** [Makefile:70: all] Error 2
The error above seems to be common across some NVIDIA and other related forums I have browsed thru but given the mismatch in the kernel version and our ubuntu version it is tricky trying to figure out the correct source to fetch for installing perf. Is there any particular solution to this?
This sort of piggy-backs off #54 regarding the kernel version but I am trying to get linux's perf profiling tool working on the base 20.04 image. By default, apt on this version is looking for linux kernel related tools at the version 5.4 - 5.15 and does not immediately recognize versions related to the current kernel, 4.9.253. Has there been any success getting perf or any of the linux-tools-* repos working on this OS and kernel version combination? When trying to compile perf from the default source linux-headers on the image I see this is what we have available:
When trying to build
/usr/src/linux-headers-4.9.253-tegra-ubuntu18.04_aarch64/kernel-4.9/tools/perf
The error above seems to be common across some NVIDIA and other related forums I have browsed thru but given the mismatch in the kernel version and our ubuntu version it is tricky trying to figure out the correct source to fetch for installing perf. Is there any particular solution to this?