~drizzle-trunk/drizzle/development

1126.10.23 by Padraig O'Sullivan
Added a new header file to be included by files which want to insert dtrace
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
4
 *  Copyright (C) 2009 Sun Microsystems, Inc.
1126.10.23 by Padraig O'Sullivan
Added a new header file to be included by files which want to insert dtrace
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; either version 2 of the License, or
9
 *  (at your option) any later version.
10
 *
11
 *  This program is distributed in the hope that it will be useful,
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 *  GNU General Public License for more details.
15
 *
16
 *  You should have received a copy of the GNU General Public License
17
 *  along with this program; if not, write to the Free Software
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 */
20
2234 by Brian Aker
Mass removal of ifdef/endif in favor of pragma once.
21
#pragma once
1126.10.23 by Padraig O'Sullivan
Added a new header file to be included by files which want to insert dtrace
22
1662.2.1 by Monty Taylor
Backed out two bits that snuck in to the merge.
23
#ifdef HAVE_DTRACE
2173.2.1 by Monty Taylor
Fixes incorrect usage of include
24
#include <drizzled/generated_probes.h>
1126.10.23 by Padraig O'Sullivan
Added a new header file to be included by files which want to insert dtrace
25
#else
26
#define DRIZZLE_COMMAND_DONE(arg0)
27
#define DRIZZLE_COMMAND_DONE_ENABLED() (0)
28
#define DRIZZLE_COMMAND_START(arg0, arg1)
29
#define DRIZZLE_COMMAND_START_ENABLED() (0)
30
#define DRIZZLE_CONNECTION_DONE(arg0)
31
#define DRIZZLE_CONNECTION_DONE_ENABLED() (0)
32
#define DRIZZLE_CONNECTION_START(arg0)
33
#define DRIZZLE_CONNECTION_START_ENABLED() (0)
34
#define DRIZZLE_DELETE_DONE(arg0, arg1)
35
#define DRIZZLE_DELETE_DONE_ENABLED() (0)
36
#define DRIZZLE_DELETE_ROW_DONE(arg0)
37
#define DRIZZLE_DELETE_ROW_DONE_ENABLED() (0)
38
#define DRIZZLE_DELETE_ROW_START(arg0, arg1)
39
#define DRIZZLE_DELETE_ROW_START_ENABLED() (0)
40
#define DRIZZLE_DELETE_START(arg0)
41
#define DRIZZLE_DELETE_START_ENABLED() (0)
42
#define DRIZZLE_FILESORT_DONE(arg0, arg1)
43
#define DRIZZLE_FILESORT_DONE_ENABLED() (0)
44
#define DRIZZLE_FILESORT_START(arg0, arg1)
45
#define DRIZZLE_FILESORT_START_ENABLED() (0)
1241.7.7 by Padraig O'Sullivan
Corrected the declaration for the cursor related probes when dtrace is not enabled.
46
#define DRIZZLE_CURSOR_RDLOCK_DONE(arg0)
47
#define DRIZZLE_CURSOR_RDLOCK_DONE_ENABLED() (0)
48
#define DRIZZLE_CURSOR_RDLOCK_START(arg0, arg1)
49
#define DRIZZLE_CURSOR_RDLOCK_START_ENABLED() (0)
50
#define DRIZZLE_CURSOR_UNLOCK_DONE(arg0)
51
#define DRIZZLE_CURSOR_UNLOCK_DONE_ENABLED() (0)
52
#define DRIZZLE_CURSOR_UNLOCK_START(arg0, arg1)
53
#define DRIZZLE_CURSOR_UNLOCK_START_ENABLED() (0)
54
#define DRIZZLE_CURSOR_WRLOCK_DONE(arg0)
55
#define DRIZZLE_CURSOR_WRLOCK_DONE_ENABLED() (0)
56
#define DRIZZLE_CURSOR_WRLOCK_START(arg0, arg1)
57
#define DRIZZLE_CURSOR_WRLOCK_START_ENABLED() (0)
1126.10.23 by Padraig O'Sullivan
Added a new header file to be included by files which want to insert dtrace
58
#define DRIZZLE_INSERT_DONE(arg0, arg1)
59
#define DRIZZLE_INSERT_DONE_ENABLED() (0)
60
#define DRIZZLE_INSERT_ROW_DONE(arg0)
61
#define DRIZZLE_INSERT_ROW_DONE_ENABLED() (0)
62
#define DRIZZLE_INSERT_ROW_START(arg0, arg1)
63
#define DRIZZLE_INSERT_ROW_START_ENABLED() (0)
64
#define DRIZZLE_INSERT_SELECT_DONE(arg0, arg1)
65
#define DRIZZLE_INSERT_SELECT_DONE_ENABLED() (0)
66
#define DRIZZLE_INSERT_SELECT_START(arg0)
67
#define DRIZZLE_INSERT_SELECT_START_ENABLED() (0)
68
#define DRIZZLE_INSERT_START(arg0)
69
#define DRIZZLE_INSERT_START_ENABLED() (0)
70
#define DRIZZLE_QUERY_DONE(arg0)
71
#define DRIZZLE_QUERY_DONE_ENABLED() (0)
72
#define DRIZZLE_QUERY_EXEC_DONE(arg0)
73
#define DRIZZLE_QUERY_EXEC_DONE_ENABLED() (0)
74
#define DRIZZLE_QUERY_EXEC_START(arg0, arg1, arg2)
75
#define DRIZZLE_QUERY_EXEC_START_ENABLED() (0)
1241.7.6 by Padraig O'Sullivan
Added some dtrace probes for tracing the optimizer.
76
#define DRIZZLE_QUERY_OPT_START(arg0, arg1)
77
#define DRIZZLE_QUERY_OPT_START_ENABLED() (0)
78
#define DRIZZLE_QUERY_OPT_DONE(arg0)
79
#define DRIZZLE_QUERY_OPT_DONE_ENABLED() (0)
80
#define DRIZZLE_QUERY_OPT_CHOOSE_PLAN_START(arg0, arg1)
81
#define DRIZZLE_QUERY_OPT_CHOOSE_PLAN_START_ENABLED() (0)
82
#define DRIZZLE_QUERY_OPT_CHOOSE_PLAN_DONE(arg0)
83
#define DRIZZLE_QUERY_OPT_CHOOSE_PLAN_DONE_ENABLED() (0)
1126.10.23 by Padraig O'Sullivan
Added a new header file to be included by files which want to insert dtrace
84
#define DRIZZLE_QUERY_PARSE_DONE(arg0)
85
#define DRIZZLE_QUERY_PARSE_DONE_ENABLED() (0)
86
#define DRIZZLE_QUERY_PARSE_START(arg0)
87
#define DRIZZLE_QUERY_PARSE_START_ENABLED() (0)
88
#define DRIZZLE_QUERY_START(arg0, arg1, arg2)
89
#define DRIZZLE_QUERY_START_ENABLED() (0)
90
#define DRIZZLE_SELECT_DONE(arg0, arg1)
91
#define DRIZZLE_SELECT_DONE_ENABLED() (0)
92
#define DRIZZLE_SELECT_START(arg0)
93
#define DRIZZLE_SELECT_START_ENABLED() (0)
94
#define DRIZZLE_UPDATE_DONE(arg0, arg1, arg2)
95
#define DRIZZLE_UPDATE_DONE_ENABLED() (0)
96
#define DRIZZLE_UPDATE_ROW_DONE(arg0)
97
#define DRIZZLE_UPDATE_ROW_DONE_ENABLED() (0)
98
#define DRIZZLE_UPDATE_ROW_START(arg0, arg1)
99
#define DRIZZLE_UPDATE_ROW_START_ENABLED() (0)
100
#define DRIZZLE_UPDATE_START(arg0)
101
#define DRIZZLE_UPDATE_START_ENABLED() (0)
102
#endif
103