Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing linux-tools-common #55

Open
akielaries opened this issue Oct 31, 2023 · 0 comments
Open

Installing linux-tools-common #55

akielaries opened this issue Oct 31, 2023 · 0 comments

Comments

@akielaries
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant