Re: [PATCH v2 1/2] tracing/events: make __string() more general

From: Christoph Hellwig
Date: Tue May 26 2009 - 02:02:56 EST

On Tue, May 26, 2009 at 12:04:28PM +0800, Li Zefan wrote:
> This changes __string(..., src) to __string(..., len), thus makes it more
> general, and then block TRACE_EVENT() can use it.
> Also introduce __fetch_str(), which is used in TP_assign() and returns
> the address of the string, while __get_str() is used in TP_print().

If you want to make it really generaly dealing with NULL string pointers
would be extremly helpful. I ran into that limitation (and the length
one fixed here) when converting the XFS tracing over.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at