lkml.org 
[lkml]   [2015]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC][PATCH 01/17 v2] tracing: Add TRACE_SYSTEM_VAR to intel-sst
    From: "Steven Rostedt (Red Hat)" <rostedt@goodmis.org>

    New code will require TRACE_SYSTEM to be a valid C variable name,
    but some tracepoints have TRACE_SYSTEM with '-' and not '_', so
    it can not be used. Instead, add a TRACE_SYSTEM_VAR that can
    give the tracing infrastructure a unique name for the trace system.

    Cc: Mark Brown <broonie@linaro.org>
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
    ---
    include/trace/events/intel-sst.h | 7 +++++++
    1 file changed, 7 insertions(+)

    diff --git a/include/trace/events/intel-sst.h b/include/trace/events/intel-sst.h
    index 76c72d3f1902..edc24e6dea1b 100644
    --- a/include/trace/events/intel-sst.h
    +++ b/include/trace/events/intel-sst.h
    @@ -1,6 +1,13 @@
    #undef TRACE_SYSTEM
    #define TRACE_SYSTEM intel-sst

    +/*
    + * The TRACE_SYSTEM_VAR defaults to TRACE_SYSTEM, but must be a
    + * legitimate C variable. It is not exported to user space.
    + */
    +#undef TRACE_SYSTEM_VAR
    +#define TRACE_SYSTEM_VAR intel_sst
    +
    #if !defined(_TRACE_INTEL_SST_H) || defined(TRACE_HEADER_MULTI_READ)
    #define _TRACE_INTEL_SST_H

    --
    2.1.4



    \
     
     \ /
      Last update: 2015-04-02 04:41    [W:6.756 / U:0.348 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site