- Notifications
You must be signed in to change notification settings - Fork 4k
/
Copy pathmy_psi_config.h
304 lines (246 loc) · 7.53 KB
/
my_psi_config.h
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
/*
Copyright (c) 2001, 2025, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is designed to work with certain software (including
but not limited to OpenSSL) that is licensed under separate terms,
as designated in a particular file or component or in included license
documentation. The authors of MySQL hereby grant you an additional
permission to link the program and your derivative works with the
separately licensed software that they have either included with
the program or referenced in the documentation.
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, version 2.0, 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 */
#ifndefMY_PSI_CONFIG_INCLUDED
#defineMY_PSI_CONFIG_INCLUDED
/**
@file include/my_psi_config.h
Defines various enable/disable and HAVE_ macros related to the
performance schema instrumentation system, without pulling in
any system \#include files (which breaks the ABI checker).
*/
#include"my_config.h"
#ifdefWITH_PERFSCHEMA_STORAGE_ENGINE
#defineHAVE_PSI_INTERFACE
#endif/* WITH_PERFSCHEMA_STORAGE_ENGINE */
#ifdefHAVE_PSI_INTERFACE
/**
@def DISABLE_PSI_MUTEX
Compiling option to disable the mutex instrumentation.
This option is mostly intended to be used during development,
when doing special builds with only a subset of the performance schema
instrumentation, for code analysis / profiling / performance tuning of a
specific instrumentation alone.
@sa DISABLE_PSI_COND
@sa DISABLE_PSI_DATA_LOCK
@sa DISABLE_PSI_ERROR
@sa DISABLE_PSI_FILE
@sa DISABLE_PSI_IDLE
@sa DISABLE_PSI_MEMORY
@sa DISABLE_PSI_METADATA
@sa DISABLE_PSI_PS
@sa DISABLE_PSI_RWLOCK
@sa DISABLE_PSI_SOCKET
@sa DISABLE_PSI_SP
@sa DISABLE_PSI_STAGE
@sa DISABLE_PSI_STATEMENT
@sa DISABLE_PSI_STATEMENT_DIGEST
@sa DISABLE_PSI_SYSTEM
@sa DISABLE_PSI_TABLE
@sa DISABLE_PSI_THREAD
@sa DISABLE_PSI_TRANSACTION
@sa DISABLE_TLS_CHANNEL
@sa DISABLE_PSI_SERVER_TELEMETRY_TRACES
@sa DISABLE_PSI_SERVER_TELEMETRY_LOGS
@sa DISABLE_PSI_METRICS
*/
#ifndefDISABLE_PSI_MUTEX
#defineHAVE_PSI_MUTEX_INTERFACE
#endif/* DISABLE_PSI_MUTEX */
/**
@def DISABLE_PSI_RWLOCK
Compiling option to disable the rwlock instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_RWLOCK
#defineHAVE_PSI_RWLOCK_INTERFACE
#endif/* DISABLE_PSI_RWLOCK */
/**
@def DISABLE_PSI_COND
Compiling option to disable the cond instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_COND
#defineHAVE_PSI_COND_INTERFACE
#endif/* DISABLE_PSI_COND */
/**
@def DISABLE_PSI_FILE
Compiling option to disable the file instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_FILE
#defineHAVE_PSI_FILE_INTERFACE
#endif/* DISABLE_PSI_FILE */
/**
@def DISABLE_PSI_THREAD
Compiling option to disable the thread instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_THREAD
#defineHAVE_PSI_THREAD_INTERFACE
#endif/* DISABLE_PSI_THREAD */
/**
@def DISABLE_PSI_TABLE
Compiling option to disable the table instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_TABLE
#defineHAVE_PSI_TABLE_INTERFACE
#endif/* DISABLE_PSI_TABLE */
/**
@def DISABLE_PSI_STAGE
Compiling option to disable the stage instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_STAGE
#defineHAVE_PSI_STAGE_INTERFACE
#endif/* DISABLE_PSI_STAGE */
/**
@def DISABLE_PSI_STATEMENT
Compiling option to disable the statement instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_STATEMENT
#defineHAVE_PSI_STATEMENT_INTERFACE
#endif/* DISABLE_PSI_STATEMENT */
/**
@def DISABLE_PSI_SP
Compiling option to disable the stored program instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_SP
#defineHAVE_PSI_SP_INTERFACE
#endif/* DISABLE_PSI_SP */
/**
@def DISABLE_PSI_PS
Compiling option to disable the prepared statement instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_STATEMENT
#ifndefDISABLE_PSI_PS
#defineHAVE_PSI_PS_INTERFACE
#endif/* DISABLE_PSI_PS */
#endif/* DISABLE_PSI_STATEMENT */
/**
@def DISABLE_PSI_STATEMENT_DIGEST
Compiling option to disable the statement digest instrumentation.
*/
#ifndefDISABLE_PSI_STATEMENT
#ifndefDISABLE_PSI_STATEMENT_DIGEST
#defineHAVE_PSI_STATEMENT_DIGEST_INTERFACE
#endif/* DISABLE_PSI_STATEMENT_DIGEST */
#endif/* DISABLE_PSI_STATEMENT */
/**
@def DISABLE_PSI_TRANSACTION
Compiling option to disable the transaction instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_TRANSACTION
#defineHAVE_PSI_TRANSACTION_INTERFACE
#endif/* DISABLE_PSI_TRANSACTION */
/**
@def DISABLE_PSI_SOCKET
Compiling option to disable the statement instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_SOCKET
#defineHAVE_PSI_SOCKET_INTERFACE
#endif/* DISABLE_PSI_SOCKET */
/**
@def DISABLE_PSI_MEMORY
Compiling option to disable the memory instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_MEMORY
#defineHAVE_PSI_MEMORY_INTERFACE
#endif/* DISABLE_PSI_MEMORY */
/**
@def DISABLE_PSI_ERROR
Compiling option to disable the error instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_ERROR
#defineHAVE_PSI_ERROR_INTERFACE
#endif/* DISABLE_PSI_ERROR */
/**
@def DISABLE_PSI_IDLE
Compiling option to disable the idle instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_IDLE
#defineHAVE_PSI_IDLE_INTERFACE
#endif/* DISABLE_PSI_IDLE */
/**
@def DISABLE_PSI_METADATA
Compiling option to disable the metadata instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_METADATA
#defineHAVE_PSI_METADATA_INTERFACE
#endif/* DISABLE_PSI_METADATA */
/**
@def DISABLE_PSI_DATA_LOCK
Compiling option to disable the data lock instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_DATA_LOCK
#defineHAVE_PSI_DATA_LOCK_INTERFACE
#endif/* DISABLE_PSI_DATA_LOCK */
/**
@def DISABLE_PSI_SYSTEM
Compiling option to disable the system instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_SYSTEM
#defineHAVE_PSI_SYSTEM_INTERFACE
#endif/* DISABLE_PSI_SYSTEM */
/**
@def DISABLE_PSI_TLS_CHANNEL
Compiling option to disable TLS Channel instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_TLS_CHANNEL
#defineHAVE_PSI_TLS_CHANNEL_INTERFACE
#endif// !DISABLE_PSI_TLS_CHANNEL
/**
@def DISABLE_PSI_SERVER_TELEMETRY_TRACES
Compiling option to disable MySQL Server Telemetry traces instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_SERVER_TELEMETRY_TRACES
#defineHAVE_PSI_SERVER_TELEMETRY_TRACES_INTERFACE
#endif// !DISABLE_PSI_SERVER_TELEMETRY_TRACES
/**
@def DISABLE_PSI_SERVER_TELEMETRY_LOGS
Compiling option to disable MySQL Server Telemetry logs instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_SERVER_TELEMETRY_LOGS
#defineHAVE_PSI_SERVER_TELEMETRY_LOGS_INTERFACE
#endif// !DISABLE_PSI_SERVER_TELEMETRY_LOGS
/**
@def DISABLE_PSI_METRICS
Compiling option to disable MySQL Server Telemetry metrics instrumentation.
@sa DISABLE_PSI_MUTEX
*/
#ifndefDISABLE_PSI_METRICS
#defineHAVE_PSI_METRICS_INTERFACE
#endif// !DISABLE_PSI_METRICS
#endif/* HAVE_PSI_INTERFACE */
#endif// MY_PSI_CONFIG_INCLUDED