MySQL 8.0.29
Source Code Documentation
psi_rwlock_service.h
Go to the documentation of this file.
1/* Copyright (c) 2017, 2022, 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 also distributed 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 included with MySQL.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License, version 2.0, for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef COMPONENTS_SERVICES_PSI_RWLOCK_SERVICE_H
24#define COMPONENTS_SERVICES_PSI_RWLOCK_SERVICE_H
25
28
29#if 0
30/*
31 Version 1.
32 Introduced in MySQL 8.0.3
33 Obsoleted in MySQL 8.0.17
34 Status: Obsolete, use version 2 instead.
35*/
36BEGIN_SERVICE_DEFINITION(psi_rwlock_v1)
37/** @sa register_rwlock_v1_t. */
38register_rwlock_v1_t register_rwlock;
39/** @sa init_rwlock_v1_t. */
40init_rwlock_v1_t init_rwlock;
41/** @sa destroy_rwlock_v1_t. */
43/** @sa start_rwlock_rdwait_v1_t. */
44start_rwlock_rdwait_v1_t start_rwlock_rdwait;
45/** @sa end_rwlock_rdwait_v1_t. */
46end_rwlock_rdwait_v1_t end_rwlock_rdwait;
47/** @sa start_rwlock_wrwait_v1_t. */
48start_rwlock_wrwait_v1_t start_rwlock_wrwait;
49/** @sa end_rwlock_wrwait_v1_t. */
50end_rwlock_wrwait_v1_t end_rwlock_wrwait;
51/** @sa unlock_rwlock_v1_t. */
52unlock_rwlock_v1_t unlock_rwlock;
53END_SERVICE_DEFINITION(psi_rwlock_v1)
54#endif
55
56/*
57 Version 2.
58 Introduced in MySQL 8.0.17
59 Status: active
60*/
62/** @sa register_rwlock_v1_t. */
63register_rwlock_v1_t register_rwlock;
64/** @sa init_rwlock_v1_t. */
65init_rwlock_v1_t init_rwlock;
66/** @sa destroy_rwlock_v1_t. */
68/** @sa start_rwlock_rdwait_v1_t. */
69start_rwlock_rdwait_v1_t start_rwlock_rdwait;
70/** @sa end_rwlock_rdwait_v1_t. */
71end_rwlock_rdwait_v1_t end_rwlock_rdwait;
72/** @sa start_rwlock_wrwait_v1_t. */
73start_rwlock_wrwait_v1_t start_rwlock_wrwait;
74/** @sa end_rwlock_wrwait_v1_t. */
75end_rwlock_wrwait_v1_t end_rwlock_wrwait;
76/** @sa unlock_rwlock_v2_t. */
77unlock_rwlock_v2_t unlock_rwlock;
79
80#endif /* COMPONENTS_SERVICES_PSI_RWLOCK_SERVICE_H */
void destroy_rwlock(PFS_rwlock *pfs)
Destroy instrumentation for a rwlock instance.
Definition: pfs_instr.cc:428
void(* unlock_rwlock_v1_t)(struct PSI_rwlock *rwlock)
Record a rwlock instrumentation unlock event.
Definition: psi_rwlock_bits.h:282
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:266
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:254
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:245
void(* destroy_rwlock_v1_t)(struct PSI_rwlock *rwlock)
Rwlock instrumentation destruction API.
Definition: psi_rwlock_bits.h:234
struct PSI_rwlock *(* init_rwlock_v1_t)(PSI_rwlock_key key, const void *identity)
Rwlock instrumentation initialization API.
Definition: psi_rwlock_bits.h:227
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:275
void(* register_rwlock_v1_t)(const char *category, struct PSI_rwlock_info_v1 *info, int count)
Rwlock registration API.
Definition: psi_rwlock_bits.h:217
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:289
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:90
#define BEGIN_SERVICE_DEFINITION(name)
Declares a new Service.
Definition: service.h:85