3 * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
18 #define WPA_TRACE_LEN 16
23 #define WPA_TRACE_INFO void *btrace[WPA_TRACE_LEN]; int btrace_num;
24 #define wpa_trace_dump(title, ptr) \
25 wpa_trace_dump_func((title), (ptr)->btrace, (ptr)->btrace_num)
26 void wpa_trace_dump_func(const char *title, void **btrace, int btrace_num);
27 #define wpa_trace_record(ptr) \
28 (ptr)->btrace_num = backtrace((ptr)->btrace, WPA_TRACE_LEN)
29 void wpa_trace_show(const char *title);
33 #define WPA_TRACE_INFO
34 #define wpa_trace_dump(title, ptr) do { } while (0)
35 #define wpa_trace_record(ptr) do { } while (0)
36 #define wpa_trace_show(title) do { } while (0)
38 #endif /* WPA_TRACE */