Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) 2011 Broadcom Corporation
0003  *
0004  * Permission to use, copy, modify, and/or distribute this software for any
0005  * purpose with or without fee is hereby granted, provided that the above
0006  * copyright notice and this permission notice appear in all copies.
0007  *
0008  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
0009  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
0010  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
0011  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0012  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
0013  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
0014  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0015  */
0016 
0017 #ifndef __BRCMS_TRACE_EVENTS_H
0018 #define __BRCMS_TRACE_EVENTS_H
0019 
0020 #include <linux/types.h>
0021 #include <linux/device.h>
0022 #include <linux/tracepoint.h>
0023 #include "mac80211_if.h"
0024 
0025 #ifndef CONFIG_BRCM_TRACING
0026 #undef TRACE_EVENT
0027 #define TRACE_EVENT(name, proto, ...) \
0028 static inline void trace_ ## name(proto) {}
0029 #undef DECLARE_EVENT_CLASS
0030 #define DECLARE_EVENT_CLASS(...)
0031 #undef DEFINE_EVENT
0032 #define DEFINE_EVENT(evt_class, name, proto, ...) \
0033 static inline void trace_ ## name(proto) {}
0034 #endif
0035 
0036 #include "brcms_trace_brcmsmac.h"
0037 #include "brcms_trace_brcmsmac_tx.h"
0038 #include "brcms_trace_brcmsmac_msg.h"
0039 
0040 #endif /* __TRACE_BRCMSMAC_H */