1*b4c3e9b5SBjoern A. Zeeb /* 2*b4c3e9b5SBjoern A. Zeeb * Copyright (c) 2011 Broadcom Corporation 3*b4c3e9b5SBjoern A. Zeeb * 4*b4c3e9b5SBjoern A. Zeeb * Permission to use, copy, modify, and/or distribute this software for any 5*b4c3e9b5SBjoern A. Zeeb * purpose with or without fee is hereby granted, provided that the above 6*b4c3e9b5SBjoern A. Zeeb * copyright notice and this permission notice appear in all copies. 7*b4c3e9b5SBjoern A. Zeeb * 8*b4c3e9b5SBjoern A. Zeeb * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9*b4c3e9b5SBjoern A. Zeeb * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10*b4c3e9b5SBjoern A. Zeeb * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 11*b4c3e9b5SBjoern A. Zeeb * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12*b4c3e9b5SBjoern A. Zeeb * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 13*b4c3e9b5SBjoern A. Zeeb * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 14*b4c3e9b5SBjoern A. Zeeb * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15*b4c3e9b5SBjoern A. Zeeb */ 16*b4c3e9b5SBjoern A. Zeeb 17*b4c3e9b5SBjoern A. Zeeb #ifndef __BRCMS_TRACE_EVENTS_H 18*b4c3e9b5SBjoern A. Zeeb #define __BRCMS_TRACE_EVENTS_H 19*b4c3e9b5SBjoern A. Zeeb 20*b4c3e9b5SBjoern A. Zeeb #include <linux/types.h> 21*b4c3e9b5SBjoern A. Zeeb #include <linux/device.h> 22*b4c3e9b5SBjoern A. Zeeb #include <linux/tracepoint.h> 23*b4c3e9b5SBjoern A. Zeeb #include "mac80211_if.h" 24*b4c3e9b5SBjoern A. Zeeb 25*b4c3e9b5SBjoern A. Zeeb #ifndef CONFIG_BRCM_TRACING 26*b4c3e9b5SBjoern A. Zeeb #undef TRACE_EVENT 27*b4c3e9b5SBjoern A. Zeeb #define TRACE_EVENT(name, proto, ...) \ 28*b4c3e9b5SBjoern A. Zeeb static inline void trace_ ## name(proto) {} 29*b4c3e9b5SBjoern A. Zeeb #undef DECLARE_EVENT_CLASS 30*b4c3e9b5SBjoern A. Zeeb #define DECLARE_EVENT_CLASS(...) 31*b4c3e9b5SBjoern A. Zeeb #undef DEFINE_EVENT 32*b4c3e9b5SBjoern A. Zeeb #define DEFINE_EVENT(evt_class, name, proto, ...) \ 33*b4c3e9b5SBjoern A. Zeeb static inline void trace_ ## name(proto) {} 34*b4c3e9b5SBjoern A. Zeeb #endif 35*b4c3e9b5SBjoern A. Zeeb 36*b4c3e9b5SBjoern A. Zeeb #include "brcms_trace_brcmsmac.h" 37*b4c3e9b5SBjoern A. Zeeb #include "brcms_trace_brcmsmac_tx.h" 38*b4c3e9b5SBjoern A. Zeeb #include "brcms_trace_brcmsmac_msg.h" 39*b4c3e9b5SBjoern A. Zeeb 40*b4c3e9b5SBjoern A. Zeeb #endif /* __TRACE_BRCMSMAC_H */ 41