diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2014-06-17 14:59:16 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-06-21 06:18:42 +0200 |
commit | 4d4c9cc839a308be3289a361ccba4447ee140552 (patch) | |
tree | 404a0a22a3700c16ef3437b69fefe46c06cf5f91 /fs/btrfs/lzo.c | |
parent | tracing: syscall_regfunc() should not skip kernel threads (diff) | |
download | linux-4d4c9cc839a308be3289a361ccba4447ee140552.tar.xz linux-4d4c9cc839a308be3289a361ccba4447ee140552.zip |
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 <tony.luck@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'fs/btrfs/lzo.c')
0 files changed, 0 insertions, 0 deletions