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

TOMOYO Linux Cross Reference
Linux/include/trace/events/initcall.h

Version: ~ [ linux-4.20-rc6 ] ~ [ linux-4.19.8 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.87 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.144 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.166 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.128 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.61 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.31.14 ] ~ [ linux-2.6.30.10 ] ~ [ linux-2.6.29.6 ] ~ [ linux-2.6.28.10 ] ~ [ linux-2.6.27.62 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #undef TRACE_SYSTEM
  3 #define TRACE_SYSTEM initcall
  4 
  5 #if !defined(_TRACE_INITCALL_H) || defined(TRACE_HEADER_MULTI_READ)
  6 #define _TRACE_INITCALL_H
  7 
  8 #include <linux/tracepoint.h>
  9 
 10 TRACE_EVENT(initcall_level,
 11 
 12         TP_PROTO(const char *level),
 13 
 14         TP_ARGS(level),
 15 
 16         TP_STRUCT__entry(
 17                 __string(level, level)
 18         ),
 19 
 20         TP_fast_assign(
 21                 __assign_str(level, level);
 22         ),
 23 
 24         TP_printk("level=%s", __get_str(level))
 25 );
 26 
 27 TRACE_EVENT(initcall_start,
 28 
 29         TP_PROTO(initcall_t func),
 30 
 31         TP_ARGS(func),
 32 
 33         TP_STRUCT__entry(
 34                 /*
 35                  * Use field_struct to avoid is_signed_type()
 36                  * comparison of a function pointer
 37                  */
 38                 __field_struct(initcall_t, func)
 39         ),
 40 
 41         TP_fast_assign(
 42                 __entry->func = func;
 43         ),
 44 
 45         TP_printk("func=%pS", __entry->func)
 46 );
 47 
 48 TRACE_EVENT(initcall_finish,
 49 
 50         TP_PROTO(initcall_t func, int ret),
 51 
 52         TP_ARGS(func, ret),
 53 
 54         TP_STRUCT__entry(
 55                 /*
 56                  * Use field_struct to avoid is_signed_type()
 57                  * comparison of a function pointer
 58                  */
 59                 __field_struct(initcall_t,      func)
 60                 __field(int,                    ret)
 61         ),
 62 
 63         TP_fast_assign(
 64                 __entry->func = func;
 65                 __entry->ret = ret;
 66         ),
 67 
 68         TP_printk("func=%pS ret=%d", __entry->func, __entry->ret)
 69 );
 70 
 71 #endif /* if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) */
 72 
 73 /* This part must be outside protection */
 74 #include <trace/define_trace.h>
 75 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp