From: Steven Rostedt Date: Tue, 17 Jun 2014 12:59:16 +0000 (-0400) Subject: tracing: Add __field_struct macro for TRACE_EVENT() X-Git-Tag: omap-for-v3.16/fixes-rc4~59^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d4c9cc839a308be3289a361ccba4447ee140552;p=pandora-kernel.git tracing: Add __field_struct macro for TRACE_EVENT() Currently the __field() macro in TRACE_EVENT is only good for primitive values, such as integers and pointers, but it fails on complex data types such as structures or unions. This is because the __field() macro determines if the variable is signed or not with the test of: (((type)(-1)) < (type)1) Unfortunately, that fails when type is a structure. Since trace events should support structures as fields a new macro is created for such a case called __field_struct() which acts exactly the same as __field() does but it does not do the signed type check and just uses a constant false for that answer. Cc: Tony Luck Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed