MySQL 8.4.2
Source Code Documentation
psi_rwlock_service.h
Go to the documentation of this file.
1/* Copyright (c) 2017, 2024, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef COMPONENTS_SERVICES_PSI_RWLOCK_SERVICE_H
25#define COMPONENTS_SERVICES_PSI_RWLOCK_SERVICE_H
26
29
30#if 0
31/*
32 Version 1.
33 Introduced in MySQL 8.0.3
34 Obsoleted in MySQL 8.0.17
35 Status: Obsolete, use version 2 instead.
36*/
37BEGIN_SERVICE_DEFINITION(psi_rwlock_v1)
38/** @sa register_rwlock_v1_t. */
39register_rwlock_v1_t register_rwlock;
40/** @sa init_rwlock_v1_t. */
41init_rwlock_v1_t init_rwlock;
42/** @sa destroy_rwlock_v1_t. */
44/** @sa start_rwlock_rdwait_v1_t. */
45start_rwlock_rdwait_v1_t start_rwlock_rdwait;
46/** @sa end_rwlock_rdwait_v1_t. */
47end_rwlock_rdwait_v1_t end_rwlock_rdwait;
48/** @sa start_rwlock_wrwait_v1_t. */
49start_rwlock_wrwait_v1_t start_rwlock_wrwait;
50/** @sa end_rwlock_wrwait_v1_t. */
51end_rwlock_wrwait_v1_t end_rwlock_wrwait;
52/** @sa unlock_rwlock_v1_t. */
53unlock_rwlock_v1_t unlock_rwlock;
54END_SERVICE_DEFINITION(psi_rwlock_v1)
55#endif
56
57/*
58 Version 2.
59 Introduced in MySQL 8.0.17
60 Status: active
61*/
63/** @sa register_rwlock_v1_t. */
64register_rwlock_v1_t register_rwlock;
65/** @sa init_rwlock_v1_t. */
66init_rwlock_v1_t init_rwlock;
67/** @sa destroy_rwlock_v1_t. */
69/** @sa start_rwlock_rdwait_v1_t. */
70start_rwlock_rdwait_v1_t start_rwlock_rdwait;
71/** @sa end_rwlock_rdwait_v1_t. */
72end_rwlock_rdwait_v1_t end_rwlock_rdwait;
73/** @sa start_rwlock_wrwait_v1_t. */
74start_rwlock_wrwait_v1_t start_rwlock_wrwait;
75/** @sa end_rwlock_wrwait_v1_t. */
76end_rwlock_wrwait_v1_t end_rwlock_wrwait;
77/** @sa unlock_rwlock_v2_t. */
78unlock_rwlock_v2_t unlock_rwlock;
80
81#endif /* COMPONENTS_SERVICES_PSI_RWLOCK_SERVICE_H */
void destroy_rwlock(PFS_rwlock *pfs)
Destroy instrumentation for a rwlock instance.
Definition: pfs_instr.cc:430
void(* unlock_rwlock_v1_t)(struct PSI_rwlock *rwlock)
Record a rwlock instrumentation unlock event.
Definition: psi_rwlock_bits.h:283
struct PSI_rwlock_locker *(* start_rwlock_wrwait_v1_t)(struct PSI_rwlock_locker_state_v1 *state, struct PSI_rwlock *rwlock, enum PSI_rwlock_operation op, const char *src_file, unsigned int src_line)
Record a rwlock instrumentation write wait start event.
Definition: psi_rwlock_bits.h:267
void(* end_rwlock_rdwait_v1_t)(struct PSI_rwlock_locker *locker, int rc)
Record a rwlock instrumentation read wait end event.
Definition: psi_rwlock_bits.h:255
struct PSI_rwlock_locker *(* start_rwlock_rdwait_v1_t)(struct PSI_rwlock_locker_state_v1 *state, struct PSI_rwlock *rwlock, enum PSI_rwlock_operation op, const char *src_file, unsigned int src_line)
Record a rwlock instrumentation read wait start event.
Definition: psi_rwlock_bits.h:246
void(* destroy_rwlock_v1_t)(struct PSI_rwlock *rwlock)
Rwlock instrumentation destruction API.
Definition: psi_rwlock_bits.h:235
struct PSI_rwlock *(* init_rwlock_v1_t)(PSI_rwlock_key key, const void *identity)
Rwlock instrumentation initialization API.
Definition: psi_rwlock_bits.h:228
void(* end_rwlock_wrwait_v1_t)(struct PSI_rwlock_locker *locker, int rc)
Record a rwlock instrumentation write wait end event.
Definition: psi_rwlock_bits.h:276
void(* register_rwlock_v1_t)(const char *category, struct PSI_rwlock_info_v1 *info, int count)
Rwlock registration API.
Definition: psi_rwlock_bits.h:218
void(* unlock_rwlock_v2_t)(struct PSI_rwlock *rwlock, enum PSI_rwlock_operation op)
Record a rwlock instrumentation unlock event.
Definition: psi_rwlock_bits.h:290
Performance schema instrumentation interface.
#define END_SERVICE_DEFINITION(name)
A macro to end the last Service definition started with the BEGIN_SERVICE_DEFINITION macro.
Definition: service.h:91
#define BEGIN_SERVICE_DEFINITION(name)
Declares a new Service.
Definition: service.h:86