MySQL 8.4.2
Source Code Documentation
mysql_server_telemetry_traces_service_imp.h
Go to the documentation of this file.
1/* Copyright (c) 2022, 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_SERVER_TELEMETRY_TRACES_SERVICE_IMP_H
25#define MYSQL_SERVER_TELEMETRY_TRACES_SERVICE_IMP_H
26
28#include <mysql/plugin.h>
29
30#include "pfs_global.h"
31
32/**
33 @file storage/perfschema/mysql_server_telemetry_traces_service_imp.h
34 The performance schema implementation of server telemetry traces service.
35*/
36extern SERVICE_TYPE(mysql_server_telemetry_traces_v1)
37 SERVICE_IMPLEMENTATION(performance_schema,
38 mysql_server_telemetry_traces_v1);
39
44
46void impl_abort_telemetry(THD *thd);
48
50#ifdef HAVE_PSI_SERVER_TELEMETRY_TRACES_INTERFACE
52#endif /* HAVE_PSI_SERVER_TELEMETRY_TRACES_INTERFACE */
53
54#endif /* MYSQL_SERVER_TELEMETRY_TRACES_SERVICE_IMP_H */
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
mysql_mutex_t LOCK_pfs_tracing_callback
Definition: mysql_server_telemetry_traces_service_imp.cc:206
void server_telemetry_tracing_lock()
Definition: mysql_server_telemetry_traces_service_imp.cc:239
bool impl_unregister_telemetry(telemetry_t *telemetry)
Definition: mysql_server_telemetry_traces_service_imp.cc:268
void cleanup_mysql_server_telemetry_traces_service()
Definition: mysql_server_telemetry_traces_service_imp.cc:229
void initialize_mysql_server_telemetry_traces_service()
Definition: mysql_server_telemetry_traces_service_imp.cc:215
const mysql_service_mysql_server_telemetry_traces_v1_t SERVICE_IMPLEMENTATION(performance_schema, mysql_server_telemetry_traces_v1)
PFS_cacheline_atomic_ptr< telemetry_t * > g_telemetry
Definition: mysql_server_telemetry_traces_service_imp.cc:203
bool impl_register_telemetry(telemetry_t *telemetry)
Definition: mysql_server_telemetry_traces_service_imp.cc:251
void impl_abort_telemetry(THD *thd)
Definition: mysql_server_telemetry_traces_service_imp.cc:284
void server_telemetry_tracing_unlock()
Definition: mysql_server_telemetry_traces_service_imp.cc:245
Miscellaneous global dependencies (declarations).
#define SERVICE_TYPE(name)
Generates the standard Service type name.
Definition: service.h:76
An atomic<T> variable, guaranteed to be alone in a CPU cache line.
Definition: pfs_global.h:111
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:50
Definition: server_telemetry_traces_bits.h:137