<div dir="ltr">Hello, Kienan<span class="gmail-im" style="color:rgb(80,0,80)"><div><br></div><div><br></div><div><b>Right. Which kernel are you actually running at this time? You can check<br>using: `uname -a`</b><br></div></span><div>Linux philippe 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun  3 11:32:55 UTC 2 x86_64 x86_64 x86_64 GNU/Linux<br></div><span class="gmail-im" style="color:rgb(80,0,80)"><div><br></div><div><b>Since you've got a few different images and headers installed, it is<br>possible to check that same info the linux-source package: `dpkg -l |<br>grep linux-source`.</b><br></div></span><div>ii  linux-source                                   5.15.0.116.116                                    all          Linux kernel source with Ubuntu patches<br>ii  linux-source-5.15.0                       5.15.0-116.126                                    all          Linux kernel source for version 5.15.0 with Ubuntu patches<br>ii  linux-source-6.5.0                      6.5.0-44.44~22.04.1                               all          Linux kernel source for version 6.5.0 with Ubuntu patches<br></div><span class="gmail-im" style="color:rgb(80,0,80)"><div><b>Could you run either `apt-cache policy` or `apt policy` and `apt-mark<br>showhold` in order to know which sources you have configured.</b><br></div></span><div>For this part, <i><b>apt-mark showhold</b></i> gave me nothing I don't know what is means.</div><div><br></div><div>I am looking at the links, but nothing seems to match my kernel version. </div><div><br></div><div>Thanks for your assistance.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 17 juill. 2024, à 11 h 46, François Belias <<a href="mailto:beliasossim@gmail.com">beliasossim@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello, Kienan<div><br></div><div><br></div><div><b>Right. Which kernel are you actually running at this time? You can check<br>using: `uname -a`</b><br></div><div>Linux philippe 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun  3 11:32:55 UTC 2 x86_64 x86_64 x86_64 GNU/Linux<br></div><div><br></div><div><b>Since you've got a few different images and headers installed, it is<br>possible to check that same info the linux-source package: `dpkg -l |<br>grep linux-source`.</b><br></div><div>ii  linux-source                                   5.15.0.116.116                                    all          Linux kernel source with Ubuntu patches<br>ii  linux-source-5.15.0                       5.15.0-116.126                                    all          Linux kernel source for version 5.15.0 with Ubuntu patches<br>ii  linux-source-6.5.0                      6.5.0-44.44~22.04.1                               all          Linux kernel source for version 6.5.0 with Ubuntu patches<br></div><div><b>Could you run either `apt-cache policy` or `apt policy` and `apt-mark<br>showhold` in order to know which sources you have configured.</b><br></div><div>For this part, <i><b>apt-mark showhold</b></i> gave me nothing I don't know what is means.</div><div><br></div><div>I am looking at the links, but nothing seems to match my kernel version. </div><div><br></div><div>Thanks for your assistance.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 17 juill. 2024, à 10 h 55, Kienan Stewart <<a href="mailto:kstewart@efficios.com" target="_blank">kstewart@efficios.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi François,<br>
<br>
On 7/16/24 4:34 PM, François Belias wrote:<br>
> Hello Kienan,<br>
> <br>
> When I proceed with the following steps:<br>
> <br>
> ```<br>
> # Warning: this removes all untracked content from the lttng-modules <br>
> directory<br>
> cd /path/to/lttng-modules-source<br>
> git clean -dxf<br>
> <br>
> make<br>
> sudo make modules_install<br>
> sudo depmod -a<br>
> ```<br>
> <br>
> I encounter a warning in <br>
> `/home/philippe/lttng-modules/src/probes/Kbuild:79` stating "File <br>
> ./arch/x86/kvm/lapic.h not found. Probe 'kvm' x86-specific is disabled. <br>
> Use full kernel source tree to enable it." Although everything compiles <br>
> fine and I'm able to load modules, when I execute `sudo lttng list -k`, <br>
> I don't see the tracepoints `kvm_entry` and `kvm_exit`, which I believe <br>
> should be available. Could this be due to not using my full kernel tree <br>
> during compilation?<br>
<br>
<br>
Exactly. Those probes depend on having the full kernel source as they <br>
require private headers which aren't shipped as part of the <br>
`linux-headers` package.<br>
<br>
> <br>
> Here are the answers to your questions:<br>
> <br>
> - *Where did `/usr/src/linux-source-6.5.0` come from?*<br>
>    I initially attempted `sudo apt-get update && sudo apt-get install <br>
> linux-source`, but it gave me this answer */linux-source is already the <br>
> newest version (5.15.0.116.116)/*`, which doesn't match my current <br>
> kernel version. So, I downloaded it directly from <a href="http://kernel.org" rel="noreferrer" target="_blank">kernel.org</a> <br>
> <<a href="http://kernel.org" rel="noreferrer" target="_blank">http://kernel.org</a>> using this command: `wget <br>
> <a href="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.5.tar.xz" rel="noreferrer" target="_blank">https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.5.tar.xz`</a> <br>
> <<a href="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.5.tar.xz" rel="noreferrer" target="_blank">https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.5.tar.xz`</a>>.<br>
> <br>
<br>
Right. Which kernel are you actually running at this time? You can check <br>
using: `uname -a`<br>
<br>
In any case, Linux upstream 6.5 is not the same as Ubuntus's 6.5.<br>
<br>
> - *Which Linux distribution and version are you using?* <br>
>    Running `lsb_release -a` gives me:<br>
>    ```<br>
>    No LSB modules are available.<br>
>    Distributor ID: Ubuntu<br>
>    Description:    Ubuntu 22.04.4 LTS<br>
>    Release:        22.04<br>
>    Codename:       jammy<br>
>    ```<br>
> <br>
> - *Assuming your distribution has kernel packages, which do you have <br>
> installed, and do you have the corresponding kernel headers package <br>
> installed?*<br>
> <br>
>    Running `dpkg -l | grep linux-image` shows these installed packages:<br>
>    ```<br>
>    ii  linux-image-5.15.0-116-generic           5.15.0-116.126     <br>
>   amd64   Signed kernel image generic<br>
>    ii  linux-image-6.5.0-28-generic             6.5.0-28.29~22.04.1 <br>
>   amd64   Signed kernel image generic<br>
>    ii  linux-image-6.5.0-41-generic             6.5.0-41.41~22.04.2 <br>
>   amd64   Signed kernel image generic<br>
>    ii  linux-image-6.5.0-44-generic             6.5.0-44.44~22.04.1 <br>
>   amd64   Signed kernel image generic<br>
>    ii  linux-image-generic                      5.15.0.116.116     <br>
>   amd64   Generic Linux kernel image<br>
>    ii  linux-image-generic-hwe-22.04            6.5.0.44.44~22.04.1 <br>
>   amd64   Generic Linux kernel image<br>
>    ```<br>
> <br>
>    And `dpkg -l | grep linux-headers` shows these installed header packages:<br>
>    ```<br>
>    ii  linux-headers-5.15.0-116                 5.15.0-116.126      all <br>
>      Header files related to Linux kernel version 5.15.0<br>
>    ii  linux-headers-5.15.0-116-generic         5.15.0-116.126     <br>
>   amd64   Linux kernel headers for version 5.15.0 on 64 bit x86 SMP<br>
>    ii  linux-headers-6.5.0-28-generic           6.5.0-28.29~22.04.1 <br>
>   amd64   Linux kernel headers for version 6.5.0 on 64 bit x86 SMP<br>
>    ii  linux-headers-6.5.0-41-generic           6.5.0-41.41~22.04.2 <br>
>   amd64   Linux kernel headers for version 6.5.0 on 64 bit x86 SMP<br>
>    ii  linux-headers-6.5.0-44-generic           6.5.0-44.44~22.04.1 <br>
>   amd64   Linux kernel headers for version 6.5.0 on 64 bit x86 SMP<br>
>    ii  linux-headers-generic                    5.15.0.116.116     <br>
>   amd64   Generic Linux kernel headers<br>
>    ii  linux-headers-generic-hwe-22.04          6.5.0.44.44~22.04.1 <br>
>   amd64   Generic Linux kernel headers<br>
>    ```<br>
> <br>
<br>
Since you've got a few different images and headers installed, it is <br>
possible to check that same info the linux-source package: `dpkg -l | <br>
grep linux-source`.<br>
<br>
Maybe one thing tripping this process up is that you don't have an apt <br>
source that provides linux-source that matches the kernel you are using. <br>
Could you run either `apt-cache policy` or `apt policy` and `apt-mark <br>
showhold` in order to know which sources you have configured.<br>
<br>
There are also alternative sources for the full source tree:<br>
<br>
- You could download the specific package from <a href="http://packages.ubuntu.com" rel="noreferrer" target="_blank">packages.ubuntu.com</a>. See <br>
<a href="https://packages.ubuntu.com" rel="noreferrer" target="_blank">https://packages.ubuntu.com</a> and use `apt install ./downloaded_package.deb`<br>
<br>
- You could clone the kernel source for Ubuntu and checkout the <br>
appropriate tag. See <br>
<a href="https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/refs/tags" rel="noreferrer" target="_blank">https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/refs/tags</a><br>
<br>
thanks,<br>
kienan<br>
</blockquote></div>
</blockquote></div>