Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-x86
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe-x86
  • Repository

Switch branch/tag
  • ipipe-x86
  • include
  • trace
  • define_trace.h
Find file BlameHistoryPermalink
  • Xiao Guangrong's avatar
    tracing/events: fix the include file dependencies · 5ac35daa
    Xiao Guangrong authored Aug 25, 2009
    
    
    The TRACE_EVENT depends on the include/linux/tracepoint.h first
    and include/trace/ftrace.h later, if we include the ftrace.h early,
    a building error will occur.
    
    Both define TRACE_EVENT in trace_a.h and trace_b.h, if we include
    those in .c file, like this:
    
    #define CREATE_TRACE_POINTS
    include <trace/events/trace_a.h>
    include <trace/events/trace_b.h>
    
    The above will not work, because the TRACE_EVENT was re-defined by
    the previous .h file.
    Reported-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
    Signed-off-by: default avatarXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
    LKML-Reference: <4A937F5E.3020802@cn.fujitsu.com>
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    5ac35daa

Replace define_trace.h

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.

Imprint & Privacy Policy