Re: [PATCH 2/2] tracing/events: introduce __dynamic_array()

From: Christoph Hellwig
Date: Mon Jun 01 2009 - 04:30:24 EST


On Mon, Jun 01, 2009 at 03:35:46PM +0800, Li Zefan wrote:
> __string() is limited:
>
> - it's a char array, but we may want to define array with other types
> - a source string should be available, but we may just know the string size
>
> We introduce __dynamic_array() to break those limitations, and __string()
> becomes a wrapper of it. As a side effect, now __get_str() can be used
> in TP_fast_assign but not only TP_print.
>
> Take XFS for example, we have the string length in the dirent, but the
> string itself is not NULL-terminated, so __dynamic_array() can be used:

Nice one from the users POV! Thanks a lot.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/