lttng-modules-2.13.18 Condition for Kernel 5.14.0-582.el9.x86_64 of Centos Stream 9.

Kienan Stewart kstewart at efficios.com
Wed May 14 15:57:38 EDT 2025


Hi Jean-Marc,

On 5/14/25 3:16 PM, Jean-Marc Chevalier via lttng-dev wrote:
> For lttng-modules-2.13.18
> 
> I have this error with kernel version 5.14.0-582.el9.x86_64:
> 
> lttng-modules-2.13.18/src/lttng-statedump-impl.c:415:20: error: 'dev_base_lock' undeclared (first use in this function); did you mean 'device_lock'?
> 
> I got it to create modules by changing the condition on line 396
> 
> Original:
> #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,9,0))
> 
> Modification:
> #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,9,0)) || (LTTNG_LINUX_VERSION_CODE == LTTNG_KERNEL_VERSION(5,14,0))
> 
> I don't know how you distinguish the version after the dash character for RHEL kernels.
> 

For RHEL kernels you can use the LTTNG_RHEL_KERNEL_RANGE macro. E.g.

```
LTTNG_RHEL_KERNEL_RANGE(5,14,0,503,21,1,  5,15,0,0,0,0))
```

thanks,
kienan

> - JM
> 
> --
> - Jean-Marc Chevalier
>    Technicien
>    Génie informatique Génie logiciel
>    Local:     M-4002
>    Téléphone: 514-340-4711 x4266
> 



More information about the lttng-dev mailing list