MySQL 9.1.0
Source Code Documentation
psi_idle.h
Go to the documentation of this file.
1/* Copyright (c) 2008, 2024, Oracle and/or its affiliates.
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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef MYSQL_PSI_IDLE_H
25#define MYSQL_PSI_IDLE_H
26
27/**
28 @file include/mysql/psi/psi_idle.h
29 Performance schema instrumentation interface.
30
31 @defgroup psi_abi_idle Idle Instrumentation (ABI)
32 @ingroup psi_abi
33 @{
34*/
35
36#include "my_inttypes.h"
37#include "my_macros.h"
38
39/* HAVE_PSI_*_INTERFACE */
40#include "my_psi_config.h" // IWYU pragma: keep
41
42#include "my_sharedlib.h"
44
45/**
46 @def PSI_IDLE_VERSION_1
47 Performance Schema Idle Interface number for version 1.
48 This version is supported.
49*/
50#define PSI_IDLE_VERSION_1 1
51
52/**
53 @def PSI_CURRENT_IDLE_VERSION
54 Performance Schema Idle Interface number for the most recent version.
55 The most current version is @c PSI_IDLE_VERSION_1
56*/
57#define PSI_CURRENT_IDLE_VERSION 1
58
59/** Entry point for the performance schema interface. */
61 /**
62 ABI interface finder.
63 Calling this method with an interface version number returns either
64 an instance of the ABI for this version, or NULL.
65 @sa PSI_IDLE_VERSION_1
66 @sa PSI_IDLE_VERSION_2
67 @sa PSI_CURRENT_IDLE_VERSION
68 */
69 void *(*get_interface)(int version);
70};
72
73#ifdef HAVE_PSI_IDLE_INTERFACE
74
75/**
76 Performance Schema Idle Interface, version 1.
77 @since PSI_IDLE_VERSION_1
78*/
80 /** @sa start_idle_wait_v1_t. */
82 /** @sa end_idle_wait_v1_t. */
84};
85
87
89
90#endif /* HAVE_PSI_IDLE_INTERFACE */
91
92/** @} (end of group psi_abi_idle) */
93
94#endif /* MYSQL_PSI_IDLE_H */
void(* end_idle_wait_v1_t)(struct PSI_idle_locker *locker)
Record an idle instrumentation wait end event.
Definition: psi_idle_bits.h:81
MYSQL_PLUGIN_IMPORT PSI_idle_service_t * psi_idle_service
Definition: psi_noop.cc:604
struct PSI_idle_locker *(* start_idle_wait_v1_t)(struct PSI_idle_locker_state_v1 *state, const char *src_file, unsigned int src_line)
Record an idle instrumentation wait start event.
Definition: psi_idle_bits.h:73
Some integer typedefs for easier portability.
Some common macros.
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
Functions related to handling of plugins and other dynamically loaded libraries.
#define MYSQL_PLUGIN_IMPORT
Definition: my_sharedlib.h:71
Performance schema instrumentation interface.
required uint64 version
Definition: replication_group_member_actions.proto:41
Entry point for the performance schema interface.
Definition: psi_idle.h:60
Performance Schema Idle Interface, version 1.
Definition: psi_idle.h:79
end_idle_wait_v1_t end_idle_wait
Definition: psi_idle.h:83
start_idle_wait_v1_t start_idle_wait
Definition: psi_idle.h:81