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

TOMOYO Linux Cross Reference
Linux/net/mac80211/trace_msg.h

Version: ~ [ linux-5.0-rc6 ] ~ [ linux-4.20.10 ] ~ [ linux-4.19.23 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.101 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.158 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.174 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.134 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.63 ] ~ [ 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.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 #ifdef CONFIG_MAC80211_MESSAGE_TRACING
  3 
  4 #if !defined(__MAC80211_MSG_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ)
  5 #define __MAC80211_MSG_DRIVER_TRACE
  6 
  7 #include <linux/tracepoint.h>
  8 #include <net/mac80211.h>
  9 #include "ieee80211_i.h"
 10 
 11 #undef TRACE_SYSTEM
 12 #define TRACE_SYSTEM mac80211_msg
 13 
 14 #define MAX_MSG_LEN     100
 15 
 16 DECLARE_EVENT_CLASS(mac80211_msg_event,
 17         TP_PROTO(struct va_format *vaf),
 18 
 19         TP_ARGS(vaf),
 20 
 21         TP_STRUCT__entry(
 22                 __dynamic_array(char, msg, MAX_MSG_LEN)
 23         ),
 24 
 25         TP_fast_assign(
 26                 WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg),
 27                                        MAX_MSG_LEN, vaf->fmt,
 28                                        *vaf->va) >= MAX_MSG_LEN);
 29         ),
 30 
 31         TP_printk("%s", __get_str(msg))
 32 );
 33 
 34 DEFINE_EVENT(mac80211_msg_event, mac80211_info,
 35         TP_PROTO(struct va_format *vaf),
 36         TP_ARGS(vaf)
 37 );
 38 DEFINE_EVENT(mac80211_msg_event, mac80211_dbg,
 39         TP_PROTO(struct va_format *vaf),
 40         TP_ARGS(vaf)
 41 );
 42 DEFINE_EVENT(mac80211_msg_event, mac80211_err,
 43         TP_PROTO(struct va_format *vaf),
 44         TP_ARGS(vaf)
 45 );
 46 #endif /* !__MAC80211_MSG_DRIVER_TRACE || TRACE_HEADER_MULTI_READ */
 47 
 48 #undef TRACE_INCLUDE_PATH
 49 #define TRACE_INCLUDE_PATH .
 50 #undef TRACE_INCLUDE_FILE
 51 #define TRACE_INCLUDE_FILE trace_msg
 52 #include <trace/define_trace.h>
 53 
 54 #endif
 55 

~ [ 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