MySQL  8.0.16
Source Code Documentation
psi_error.h
Go to the documentation of this file.
1 /* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 
23 #ifndef MYSQL_PSI_ERROR_H
24 #define MYSQL_PSI_ERROR_H
25 
26 /**
27  @file include/mysql/psi/psi_error.h
28  Performance schema instrumentation interface.
29 
30  @defgroup psi_abi_error Error Instrumentation (ABI)
31  @ingroup psi_abi
32  @{
33 */
34 
35 #include "my_macros.h"
36 #include "my_psi_config.h" // IWYU pragma: keep
37 #include "my_sharedlib.h"
39 
40 /**
41  @def PSI_ERROR_VERSION_1
42  Performance Schema Error Interface number for version 1.
43  This version is supported.
44 */
45 #define PSI_ERROR_VERSION_1 1
46 
47 /**
48  @def PSI_CURRENT_ERROR_VERSION
49  Performance Schema Error Interface number for the most recent version.
50  The most current version is @c PSI_ERROR_VERSION_1
51 */
52 #define PSI_CURRENT_ERROR_VERSION 1
53 
54 /** Entry point for the performance schema interface. */
56  /**
57  ABI interface finder.
58  Calling this method with an interface version number returns either
59  an instance of the ABI for this version, or NULL.
60  @sa PSI_ERROR_VERSION_1
61  @sa PSI_ERROR_VERSION_2
62  @sa PSI_CURRENT_ERROR_VERSION
63  */
64  void *(*get_interface)(int version);
65 };
67 
68 #ifdef HAVE_PSI_ERROR_INTERFACE
69 
70 /**
71  Performance Schema Error Interface, version 1.
72  @since PSI_ERROR_VERSION_1
73 */
75  /** @sa log_error_v1_t. */
77 };
78 
80 
82 
83 #endif /* HAVE_PSI_ERROR_INTERFACE */
84 
85 /** @} (end of group psi_abi_error) */
86 
87 #endif /* MYSQL_PSI_ERROR_H */
Some common macros.
Performance Schema Error Interface, version 1.
Definition: psi_error.h:74
#define MYSQL_PLUGIN_IMPORT
Definition: my_sharedlib.h:70
void(* log_error_v1_t)(unsigned int error_num, PSI_error_operation error_operation)
Log the error seen in Performance Schema buffers.
Definition: psi_error_bits.h:46
Entry point for the performance schema interface.
Definition: psi_error.h:55
Functions related to handling of plugins and other dynamically loaded libraries.
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
MYSQL_PLUGIN_IMPORT PSI_error_service_t * psi_error_service
Definition: psi_noop.cc:862
log_error_v1_t log_error
Definition: psi_error.h:76
const string version("\ersion\)
Performance schema instrumentation interface.