• Steven Rostedt's avatar
    tracing: consolidate trace and trace_event headers · ea20d929
    Steven Rostedt authored
    Impact: clean up
    
    Neil Horman (et. al.) criticized the way the trace events were broken up
    into two files. The reason for that was that ftrace needed to separate out
    the declarations from where the #include <linux/tracepoint.h> was used.
    It then dawned on me that the tracepoint.h header only needs to define the
    TRACE_EVENT macro if it is not already defined.
    
    The solution is simply to test if TRACE_EVENT is defined, and if it is not
    then the linux/tracepoint.h header can define it. This change consolidates
    all the <traces>.h and <traces>_event_types.h into the <traces>.h file.
    Reported-by: default avatarNeil Horman <nhorman@tuxdriver.com>
    Reported-by: default avatarTheodore Tso <tytso@mit.edu>
    Reported-by: default avatarJiaying Zhang <jiayingz@google.com>
    Cc: Zhaolei <zhaolei@cn.fujitsu.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Jason Baron <jbaron@redhat.com>
    Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    ea20d929
events.c 294 Bytes