SystemTap support for different version of the kernel
Frank Ch. Eigler
fche@redhat.com
Fri Sep 9 00:44:00 GMT 2005
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
More information about the Systemtap
mailing list