This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: SystemTap support for different version of the kernel
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: systemtap at sources dot redhat dot com
- Date: 08 Sep 2005 20:44:39 -0400
- Subject: Re: SystemTap support for different version of the kernel
- References: <4320CEC4.1000904@us.ibm.com>
hien wrote:
> [...] So when we write tapset, should we provide multiple versions
> that support different kernels?
Some of us discussed this very case yesterday.
In general, one may rely on the version-sensitive tapset search path
(see the man page) to place differently ported versions of a script
into different subdirectories of ../tapset: 2.6.9/ or 2.6.11/ or 2.6/
(if it is broadly applicable).
In your particular case, this is not actually necessary since you can
insert the C-level version macros right into your %{ %} function:
#if LINUX_VERSION_CODE >= KERNEL_VERSION(....)
#else
#endif
We also discussed the possibility of supporting a script-level
equivalent of this mechanism, but I would like to avoid building this
additional feature unless the others are too limiting.
- FChE