Are the kernel-tools packages available for 5.10.65 as part of JP 5.0.1. I am trying to use the bpftool, but I am prompted:
You may need to install the following packages for this specific kernel:
linux-tools-5.10.65-tegra
linux-cloud-tools-5.10.65-tegra
You may also want to install one of the following packages to keep up to date:
linux-tools-tegra
linux-cloud-tools-tegra
None of these appear to be available. I have attempted to build from source, but run into build errors. Are these available anywhere, or are there any pointers to building these from the public sources?
bpftool is part of the apt package linux-tools-common
apt install linux-tools-common
However running /usr/sbin/bpftool after installation gives the following:
iain@ubuntu:/usr/sbin$ bpftool
WARNING: bpftool not found for kernel 5.10.65
You may need to install the following packages for this specific kernel:
linux-tools-5.10.65-tegra
linux-cloud-tools-5.10.65-tegra
You may also want to install one of the following packages to keep up to date:
linux-tools-tegra
linux-cloud-tools-tegra
I believe this is because there are kernel specific hooks required for the tool to function. Looking at the kernel sources there are indeed references to both the bpftool and perf tools. I believe there should be a debian package for linux-tools-5.10.65-tegra built as part of the kernel and hosted somewhere by nvidia.