This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SystemTap support for different version of the kernel


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]