~jan-kneschke/mysql-proxy/packet-tracking-assertions

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* $%BEGINLICENSE%$
 Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License as
 published by the Free Software Foundation; version 2 of the
 License.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 02110-1301  USA

 $%ENDLICENSE%$ */
/* short out DTrace macros if we don't have or want DTrace support */
#ifndef ENABLE_DTRACE

#define DTRACE_PROBE(provider, name)
#define DTRACE_PROBE1(provider, name, arg0)
#define DTRACE_PROBE2(provider, name, arg0, arg1)
#define DTRACE_PROBE3(provider, name, arg0, arg1, arg2)
#define DTRACE_PROBE4(provider, name, arg0, arg1, arg2, arg3)
#define DTRACE_PROBE5(provider, name, arg0, arg1, arg2, arg3, arg4)
#define DTRACE_PROBE6(provider, name, arg0, arg1, arg2, arg3, arg4, arg5)
#define DTRACE_PROBE7(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6)
#define DTRACE_PROBE8(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
#define DTRACE_PROBE9(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
#define DTRACE_PROBE10(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)

/* when adding new DTrace USDT probes, also add the stubs below */

#define	MYSQLPROXY_STATE_CHANGE_ENABLED() FALSE
#define	MYSQLPROXY_STATE_CHANGE(arg0, arg1, arg2)

#endif