MySQL 8.0.29
Source Code Documentation
pfs_tls_channel.h
Go to the documentation of this file.
1/* Copyright (c) 2020, 2022, 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 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 PFS_TLS_CHANNEL_H
24#define PFS_TLS_CHANNEL_H
25
26/**
27 @file storage/perfschema/pfs_tls_channel.h
28 Performance schema instrumentation (declarations).
29*/
30#include <vector>
31
34
35/* A convinience wrapper */
36using tls_channels = std::vector<TLS_channel_property_iterator *>;
37
38/**
39 Global structure to store all instrumented TLS channels registered with PFS
40*/
42
43/**
44 RW lock that protects list of instrumented TLS channels.
45 @sa g_instrumented_tls_channels
46*/
48
49/**
50 Register a TLS channel for instrumentation with PFS
51
52 @param [in] provider Iterator implementation to fetch all properties
53*/
55
56/**
57 Un-register a TLS channel for instrumentation with PFS
58
59 @param [in] provider Iterator implementation
60*/
62
63/**
64 Initialize internal data structures to instrument TLS channels
65*/
67
68/**
69 Deinitialize internal data structures to instrument TLS channels
70*/
72
73#endif // !PFS_TLS_CHANNEL_H
Instrumentation helpers for rwlock.
mysql_rwlock_t LOCK_pfs_tls_channels
RW lock that protects list of instrumented TLS channels.
Definition: pfs_tls_channel.cc:200
tls_channels g_instrumented_tls_channels
Global structure to store all instrumented TLS channels registered with PFS.
Definition: pfs_tls_channel.cc:197
void init_pfs_tls_channels_instrumentation()
Initialize internal data structures to instrument TLS channels.
Definition: pfs_tls_channel.cc:206
void pfs_register_tls_channel_v1(TLS_channel_property_iterator *provider)
Register a TLS channel for instrumentation with PFS.
Definition: pfs_tls_channel.cc:218
void cleanup_pfs_tls_channels_instrumentation()
Deinitialize internal data structures to instrument TLS channels.
Definition: pfs_tls_channel.cc:213
std::vector< TLS_channel_property_iterator * > tls_channels
Definition: pfs_tls_channel.h:36
void pfs_unregister_tls_channel_v1(TLS_channel_property_iterator *provider)
Un-register a TLS channel for instrumentation with PFS.
Definition: pfs_tls_channel.cc:233
Performance schema instrumentation interface.
Property iterator callbacks.
Definition: psi_tls_channel_bits.h:114
An instrumented rwlock structure.
Definition: mysql_rwlock_bits.h:50