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

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

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/trace/define_custom_trace.h (Version linux-6.12-rc7) and /include/trace/define_custom_trace.h (Version linux-6.1.116)


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