~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/trace/define_custom_trace.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * Trace files that want to automate creation of all tracepoints defined
  4  * in their file should include this file. The following are macros that the
  5  * trace file may define:
  6  *
  7  * TRACE_SYSTEM defines the system the tracepoint is for
  8  *
  9  * TRACE_INCLUDE_FILE if the file name is something other than TRACE_SYSTEM.h
 10  *     This macro may be defined to tell define_trace.h what file to include.
 11  *     Note, leave off the ".h".
 12  *
 13  * TRACE_INCLUDE_PATH if the path is something other than core kernel include/trace
 14  *     then this macro can define the path to use. Note, the path is relative to
 15  *     define_trace.h, not the file including it. Full path names for out of tree
 16  *     modules must be used.
 17  */
 18 
 19 #ifdef CREATE_CUSTOM_TRACE_EVENTS
 20 
 21 /* Prevent recursion */
 22 #undef CREATE_CUSTOM_TRACE_EVENTS
 23 
 24 #include <linux/stringify.h>
 25 
 26 #undef TRACE_CUSTOM_EVENT
 27 #define TRACE_CUSTOM_EVENT(name, proto, args, tstruct, assign, print)
 28 
 29 #undef DEFINE_CUSTOM_EVENT
 30 #define DEFINE_CUSTOM_EVENT(template, name, proto, args)
 31 
 32 #undef TRACE_INCLUDE
 33 #undef __TRACE_INCLUDE
 34 
 35 #ifndef TRACE_INCLUDE_FILE
 36 # define TRACE_INCLUDE_FILE TRACE_SYSTEM
 37 # define UNDEF_TRACE_INCLUDE_FILE
 38 #endif
 39 
 40 #ifndef TRACE_INCLUDE_PATH
 41 # define __TRACE_INCLUDE(system) <trace/events/system.h>
 42 # define UNDEF_TRACE_INCLUDE_PATH
 43 #else
 44 # define __TRACE_INCLUDE(system) __stringify(TRACE_INCLUDE_PATH/system.h)
 45 #endif
 46 
 47 # define TRACE_INCLUDE(system) __TRACE_INCLUDE(system)
 48 
 49 /* Let the trace headers be reread */
 50 #define TRACE_CUSTOM_MULTI_READ
 51 
 52 #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
 53 
 54 #ifdef TRACEPOINTS_ENABLED
 55 #include <trace/trace_custom_events.h>
 56 #endif
 57 
 58 #undef TRACE_CUSTOM_EVENT
 59 #undef DECLARE_CUSTOM_EVENT_CLASS
 60 #undef DEFINE_CUSTOM_EVENT
 61 #undef TRACE_CUSTOM_MULTI_READ
 62 
 63 /* Only undef what we defined in this file */
 64 #ifdef UNDEF_TRACE_INCLUDE_FILE
 65 # undef TRACE_INCLUDE_FILE
 66 # undef UNDEF_TRACE_INCLUDE_FILE
 67 #endif
 68 
 69 #ifdef UNDEF_TRACE_INCLUDE_PATH
 70 # undef TRACE_INCLUDE_PATH
 71 # undef UNDEF_TRACE_INCLUDE_PATH
 72 #endif
 73 
 74 /* We may be processing more files */
 75 #define CREATE_CUSTOM_TRACE_POINTS
 76 
 77 #endif /* CREATE_CUSTOM_TRACE_POINTS */
 78 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php