]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - kernel/trace/trace_events.c
tracing/filters: distinguish between signed and unsigned fields
authorTom Zanussi <tzanussi@gmail.com>
Tue, 28 Apr 2009 08:04:53 +0000 (03:04 -0500)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Apr 2009 12:06:03 +0000 (14:06 +0200)
commita118e4d1402f1349fe3d953493e4168a300a752d
treebd4c2fccee4528bf7d1536e33218516953904740
parent30e673b230f9d556eb81ef68a7b1a08c8b3b142c
tracing/filters: distinguish between signed and unsigned fields

The new filter comparison ops need to be able to distinguish between
signed and unsigned field types, so add an is_signed flag/param to the
event field struct/trace_define_fields().  Also define a simple macro,
is_signed_type() to determine the signedness at compile time, used in the
trace macros.  If the is_signed_type() macro won't work with a specific
type, a new slightly modified version of TRACE_FIELD() called
TRACE_FIELD_SIGN(), allows the signedness to be set explicitly.

[ Impact: extend trace-filter code for new feature ]

Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: fweisbec@gmail.com
Cc: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <1240905893.6416.120.camel@tropicana>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/ftrace_event.h
include/trace/ftrace.h
kernel/trace/trace.h
kernel/trace/trace_event_types.h
kernel/trace/trace_events.c
kernel/trace/trace_export.c