2 * Copyright (c) 2014 Qualcomm Atheros, Inc.
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 #if !defined(_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
20 #include <linux/tracepoint.h>
24 #define TRACE_SYSTEM ath
26 #if !defined(CONFIG_ATH_TRACEPOINTS)
29 #define TRACE_EVENT(name, proto, ...) static inline void trace_ ## name(proto) {}
31 #endif /* CONFIG_ATH_TRACEPOINTS */
35 TP_PROTO(struct wiphy
*wiphy
,
36 struct va_format
*vaf
),
41 __string(device
, wiphy_name(wiphy
))
42 __string(driver
, KBUILD_MODNAME
)
43 __dynamic_array(char, msg
, ATH_DBG_MAX_LEN
)
47 __assign_str(device
, wiphy_name(wiphy
));
48 __assign_str(driver
, KBUILD_MODNAME
);
49 WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg
),
52 *vaf
->va
) >= ATH_DBG_MAX_LEN
);
63 #endif /* _TRACE_H || TRACE_HEADER_MULTI_READ */
65 #undef TRACE_INCLUDE_PATH
66 #define TRACE_INCLUDE_PATH .
67 #undef TRACE_INCLUDE_FILE
68 #define TRACE_INCLUDE_FILE trace
70 /* This part must be outside protection */
71 #include <trace/define_trace.h>