This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Linux Kernel Markers format string idea
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: Mathieu Desnoyers <compudj at krystal dot dyndns dot org>
- Cc: "Frank Ch. Eigler" <fche at redhat dot com>, ltt-dev at shafik dot org, systemtap at sources dot redhat dot com, linux-sparse at vger dot kernel dot org, michel dot dagenais at polymtl dot ca
- Date: Tue, 26 Dec 2006 14:48:13 -0500
- Subject: Re: Linux Kernel Markers format string idea
- References: <20061221162035.GA9609@Krystal>
Hi -
On Thu, Dec 21, 2006 at 11:20:35AM -0500, Mathieu Desnoyers wrote:
> [...] I just had an idea about a format string extension that would
> help fix the missing type checking with format strings for Linux
> Kernel Markers. [...] The idea is to add the type between brackets
> after the conversion specifier. For a pointer to a structure :
> "%p[struct mystruct *]" [...]
It's probably an improvement, though as it is still at the
programmers' discretion, it is less useful for checking and more as
documenting. I remain ambivalent about whether exposing this level of
detail (complex typing) is a good idea, or whether imposing a small
fixed set of types (string/number/blob) is better.
- FChE