MySQL 8.3.0
Source Code Documentation
psi_thread.h
Go to the documentation of this file.
1/* Copyright (c) 2008, 2023, 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 MYSQL_PSI_THREAD_H
24#define MYSQL_PSI_THREAD_H
25
26/**
27 @file include/mysql/psi/psi_thread.h
28 Performance schema instrumentation interface.
29
30 @defgroup psi_abi_thread Thread Instrumentation (ABI)
31 @ingroup psi_abi
32 @{
33*/
34
35#include "my_inttypes.h"
36#include "my_macros.h"
37
38/* HAVE_PSI_*_INTERFACE */
39#include "my_psi_config.h" // IWYU pragma: keep
40
41#include "my_sharedlib.h"
43
44/**
45 @def PSI_THREAD_VERSION_1
46 Performance Schema Thread Interface number for version 1.
47 This version is obsolete.
48*/
49#define PSI_THREAD_VERSION_1 1
50
51/**
52 @def PSI_THREAD_VERSION_2
53 Performance Schema Thread Interface number for version 2.
54 This version is obsolete.
55*/
56#define PSI_THREAD_VERSION_2 2
57
58/**
59 @def PSI_THREAD_VERSION_3
60 Performance Schema Thread Interface number for version 3.
61 This version is obsolete.
62*/
63#define PSI_THREAD_VERSION_3 3
64
65/**
66 @def PSI_THREAD_VERSION_4
67 Performance Schema Thread Interface number for version 4.
68 This version is supported.
69*/
70#define PSI_THREAD_VERSION_4 4
71
72/**
73 @def PSI_THREAD_VERSION_5
74 Performance Schema Thread Interface number for version 5.
75 This version is supported.
76*/
77#define PSI_THREAD_VERSION_5 5
78
79/**
80 @def PSI_THREAD_VERSION_6
81 Performance Schema Thread Interface number for version 6.
82 This version is supported.
83*/
84#define PSI_THREAD_VERSION_6 6
85
86/**
87 @def PSI_THREAD_VERSION_7
88 Performance Schema Thread Interface number for version 7.
89 This version is supported.
90*/
91#define PSI_THREAD_VERSION_7 7
92
93/**
94 @def PSI_CURRENT_THREAD_VERSION
95 Performance Schema Thread Interface number for the most recent version.
96 The most current version is @c PSI_THREAD_VERSION_7
97*/
98#define PSI_CURRENT_THREAD_VERSION 7
99
100/** Entry point for the performance schema interface. */
102 /**
103 ABI interface finder.
104 Calling this method with an interface version number returns either
105 an instance of the ABI for this version, or NULL.
106 @sa PSI_THREAD_VERSION_1
107 @sa PSI_THREAD_VERSION_2
108 @sa PSI_THREAD_VERSION_3
109 @sa PSI_THREAD_VERSION_4
110 @sa PSI_THREAD_VERSION_5
111 @sa PSI_THREAD_VERSION_6
112 @sa PSI_CURRENT_THREAD_VERSION
113 */
114 void *(*get_interface)(int version);
115};
117
118#ifdef HAVE_PSI_THREAD_INTERFACE
119
120/**
121 Set instrumented thread used for memory counting.
122 @param [in] thd the instrumented thread
123 @param [out] backup_thd the backup thread
124*/
125typedef void (*set_mem_cnt_THD_v1_t)(THD *thd, THD **backup_thd);
126
127/**
128 Performance Schema Thread Interface, version 4.
129 @since PSI_THREAD_VERSION_4
130*/
132 /** @sa register_thread_v1_t. */
134 /** @sa spawn_thread_v1_t. */
136 /** @sa new_thread_v1_t. */
138 /** @sa set_thread_id_v1_t. */
140 /** @sa get_current_thread_internal_id_v2_t. */
142 /** @sa get_thread_internal_id_v2_t. */
144 /** @sa get_thread_by_id_v2_t. */
146 /** @sa set_thread_THD_v1_t. */
148 /** @sa set_thread_os_id_v1_t. */
150 /** @sa get_thread_v1_t. */
152 /** @sa set_thread_user_v1_t. */
154 /** @sa set_thread_account_v1_t. */
156 /** @sa set_thread_db_v1_t. */
158 /** @sa set_thread_command_v1_t. */
160 /** @sa set_connection_type_v1_t. */
162 /** @sa set_thread_start_time_v1_t. */
164 /** @sa set_thread_info_v1_t. */
166 /** @sa set_thread_resource_group_v1_t. */
168 /** @sa set_thread_resource_group_by_id_v1_t. */
170 /** @sa set_thread_v1_t. */
172 /** @sa set_thread_peer_port_vc_t. */
174 /** @sa aggregate_thread_status_v1_t. */
176 /** @sa delete_current_thread_v1_t. */
178 /** @sa delete_thread_v1_t. */
180 /** @sa set_thread_connect_attrs_v1_t. */
182 /** @sa get_current_thread_event_id_v2_t. */
184 /** @sa get_thread_event_id_v2_t. */
186 /** @sa get_thread_system_attrs_v1_t. */
188 /** @sa get_thread_system_attrs_by_id_v1_t. */
190 /** @sa register_notification_v1_t. */
192 /** @sa unregister_notification_v1_t. */
194 /** @sa notify_session_connect_v1_t. */
196 /** @sa notify_session_disconnect_v1_t. */
198 /** @sa notify_session_change_user_v1_t. */
200};
201
202/**
203 Performance Schema Thread Interface, version 5.
204 @since PSI_THREAD_VERSION_5
205 Changes from version 4:
206 - register_thread takes an expanded PSI_thread_info_v5 instrumentation,
207 which includes a new m_os_name attribute.
208 - spawn_thread takes an extra sequence number parameter
209 - new_thread takes an extra sequence number parameter
210*/
212 /** @sa register_thread_v5_t. */
214 /** @sa spawn_thread_v5_t. */
216 /** @sa new_thread_v5_t. */
218 /** @sa set_thread_id_v1_t. */
220 /** @sa get_current_thread_internal_id_v2_t. */
222 /** @sa get_thread_internal_id_v2_t. */
224 /** @sa get_thread_by_id_v2_t. */
226 /** @sa set_thread_THD_v1_t. */
228 /** @sa set_thread_os_id_v1_t. */
230 /** @sa get_thread_v1_t. */
232 /** @sa set_thread_user_v1_t. */
234 /** @sa set_thread_account_v1_t. */
236 /** @sa set_thread_db_v1_t. */
238 /** @sa set_thread_command_v1_t. */
240 /** @sa set_connection_type_v1_t. */
242 /** @sa set_thread_start_time_v1_t. */
244 /** @sa set_thread_info_v1_t. */
246 /** @sa set_thread_resource_group_v1_t. */
248 /** @sa set_thread_resource_group_by_id_v1_t. */
250 /** @sa set_thread_v1_t. */
252 /** @sa set_thread_peer_port_vc_t. */
254 /** @sa aggregate_thread_status_v1_t. */
256 /** @sa delete_current_thread_v1_t. */
258 /** @sa delete_thread_v1_t. */
260 /** @sa set_thread_connect_attrs_v1_t. */
262 /** @sa get_current_thread_event_id_v2_t. */
264 /** @sa get_thread_event_id_v2_t. */
266 /** @sa get_thread_system_attrs_v1_t. */
268 /** @sa get_thread_system_attrs_by_id_v1_t. */
270 /** @sa register_notification_v1_t. */
272 /** @sa unregister_notification_v1_t. */
274 /** @sa notify_session_connect_v1_t. */
276 /** @sa notify_session_disconnect_v1_t. */
278 /** @sa notify_session_change_user_v1_t. */
280 /** @sa set_mem_cnt_THD_v1_t. */
282};
283
284/**
285 Performance Schema Thread Interface, version 6.
286 @since PSI_THREAD_VERSION_6
287 Changes from version 5:
288 - added set_thread_secondary_engine
289*/
291 /** @sa register_thread_v5_t. */
293 /** @sa spawn_thread_v5_t. */
295 /** @sa new_thread_v5_t. */
297 /** @sa set_thread_id_v1_t. */
299 /** @sa get_current_thread_internal_id_v2_t. */
301 /** @sa get_thread_internal_id_v2_t. */
303 /** @sa get_thread_by_id_v2_t. */
305 /** @sa set_thread_THD_v1_t. */
307 /** @sa set_thread_os_id_v1_t. */
309 /** @sa get_thread_v1_t. */
311 /** @sa set_thread_user_v1_t. */
313 /** @sa set_thread_account_v1_t. */
315 /** @sa set_thread_db_v1_t. */
317 /** @sa set_thread_command_v1_t. */
319 /** @sa set_connection_type_v1_t. */
321 /** @sa set_thread_start_time_v1_t. */
323 /** @sa set_thread_info_v1_t. */
325 /** @sa set_thread_secondary_engine_v6_t. */
327 /** @sa set_thread_resource_group_v1_t. */
329 /** @sa set_thread_resource_group_by_id_v1_t. */
331 /** @sa set_thread_v1_t. */
333 /** @sa set_thread_peer_port_vc_t. */
335 /** @sa aggregate_thread_status_v1_t. */
337 /** @sa delete_current_thread_v1_t. */
339 /** @sa delete_thread_v1_t. */
341 /** @sa set_thread_connect_attrs_v1_t. */
343 /** @sa get_current_thread_event_id_v2_t. */
345 /** @sa get_thread_event_id_v2_t. */
347 /** @sa get_thread_system_attrs_v1_t. */
349 /** @sa get_thread_system_attrs_by_id_v1_t. */
351 /** @sa register_notification_v1_t. */
353 /** @sa unregister_notification_v1_t. */
355 /** @sa notify_session_connect_v1_t. */
357 /** @sa notify_session_disconnect_v1_t. */
359 /** @sa notify_session_change_user_v1_t. */
361 /** @sa set_mem_cnt_THD_v1_t. */
363};
364
365/**
366 Performance Schema Thread Interface, version 7.
367 @since PSI_THREAD_VERSION_7
368 Changes from version 6:
369 - added detect_telemetry, abort_telemetry
370*/
372 /** @sa register_thread_v5_t. */
374 /** @sa spawn_thread_v5_t. */
376 /** @sa new_thread_v5_t. */
378 /** @sa set_thread_id_v1_t. */
380 /** @sa get_current_thread_internal_id_v2_t. */
382 /** @sa get_thread_internal_id_v2_t. */
384 /** @sa get_thread_by_id_v2_t. */
386 /** @sa set_thread_THD_v1_t. */
388 /** @sa set_thread_os_id_v1_t. */
390 /** @sa get_thread_v1_t. */
392 /** @sa set_thread_user_v1_t. */
394 /** @sa set_thread_account_v1_t. */
396 /** @sa set_thread_db_v1_t. */
398 /** @sa set_thread_command_v1_t. */
400 /** @sa set_connection_type_v1_t. */
402 /** @sa set_thread_start_time_v1_t. */
404 /** @sa set_thread_info_v1_t. */
406 /** @sa set_thread_secondary_engine_v6_t. */
408 /** @sa set_thread_resource_group_v1_t. */
410 /** @sa set_thread_resource_group_by_id_v1_t. */
412 /** @sa set_thread_v1_t. */
414 /** @sa set_thread_peer_port_vc_t. */
416 /** @sa aggregate_thread_status_v1_t. */
418 /** @sa delete_current_thread_v1_t. */
420 /** @sa delete_thread_v1_t. */
422 /** @sa set_thread_connect_attrs_v1_t. */
424 /** @sa get_current_thread_event_id_v2_t. */
426 /** @sa get_thread_event_id_v2_t. */
428 /** @sa get_thread_system_attrs_v1_t. */
430 /** @sa get_thread_system_attrs_by_id_v1_t. */
432 /** @sa register_notification_v1_t. */
434 /** @sa unregister_notification_v1_t. */
436 /** @sa notify_session_connect_v1_t. */
438 /** @sa notify_session_disconnect_v1_t. */
440 /** @sa notify_session_change_user_v1_t. */
442 /** @sa set_mem_cnt_THD_v1_t. */
444
447};
448
450
452
453#endif /* HAVE_PSI_THREAD_INTERFACE */
454
455/** @} (end of group psi_abi_thread) */
456
457#endif /* MYSQL_PSI_THREAD_H */
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:35
unsigned long long(* get_thread_internal_id_v2_t)(struct PSI_thread *thread)
Read the THREAD_ID of an instrumented thread.
Definition: psi_thread_bits.h:275
void(* set_mem_cnt_THD_v1_t)(THD *thd, THD **backup_thd)
Set instrumented thread used for memory counting.
Definition: psi_thread.h:125
int(* spawn_thread_v1_t)(PSI_thread_key key, my_thread_handle *thread, const my_thread_attr_t *attr, void *(*start_routine)(void *), void *arg)
Spawn a thread.
Definition: psi_thread_bits.h:225
void(* get_current_thread_event_id_v2_t)(unsigned long long *thread_internal_id, unsigned long long *event_id)
Get the current thread current event.
Definition: psi_thread_bits.h:438
struct PSI_thread *(* new_thread_v5_t)(PSI_thread_key key, PSI_thread_seqnum seqnum, const void *identity, unsigned long long thread_id)
Definition: psi_thread_bits.h:245
void(* set_thread_THD_v1_t)(struct PSI_thread *thread, THD *thd)
Assign a THD to an instrumented thread.
Definition: psi_thread_bits.h:255
void(* set_thread_os_id_v1_t)(struct PSI_thread *thread)
Assign the current operating system thread id to an instrumented thread.
Definition: psi_thread_bits.h:291
void(* set_thread_id_v1_t)(struct PSI_thread *thread, unsigned long long id)
Assign an id to an instrumented thread.
Definition: psi_thread_bits.h:262
void(* notify_session_change_user_v1_t)(PSI_thread *thread)
Invoke the callback function registered for a change user event.
Definition: psi_thread_bits.h:593
void(* set_thread_start_time_v1_t)(time_t start_time)
Assign a start time to the instrumented thread.
Definition: psi_thread_bits.h:342
void(* notify_session_disconnect_v1_t)(PSI_thread *thread)
Invoke the callback function registered for a session disconnect event.
Definition: psi_thread_bits.h:586
void(* set_thread_command_v1_t)(int command)
Assign a current command to the instrumented thread.
Definition: psi_thread_bits.h:330
int(* spawn_thread_v5_t)(PSI_thread_key key, PSI_thread_seqnum seqnum, my_thread_handle *thread, const my_thread_attr_t *attr, void *(*start_routine)(void *), void *arg)
Definition: psi_thread_bits.h:229
void(* set_thread_info_v1_t)(const char *info, unsigned int info_len)
Assign a process info to the instrumented thread.
Definition: psi_thread_bits.h:355
void(* delete_current_thread_v1_t)(void)
Delete the current thread instrumentation.
Definition: psi_thread_bits.h:414
void(* set_thread_secondary_engine_v6_t)(bool secondary)
Set a thread EXECUTION_ENGINE attribute.
Definition: psi_thread_bits.h:361
void(* register_thread_v1_t)(const char *category, struct PSI_thread_info_v1 *info, int count)
Thread registration API.
Definition: psi_thread_bits.h:202
void(* set_thread_account_v1_t)(const char *user, int user_len, const char *host, int host_len)
Assign a user name and host name to the instrumented thread.
Definition: psi_thread_bits.h:316
int(* register_notification_v3_t)(const PSI_notification_v3 *callbacks, bool with_ref_count)
Register callback functions for the Notification service.
Definition: psi_thread_bits.h:562
void(* notify_session_connect_v1_t)(PSI_thread *thread)
Invoke the callback function registered for a session connect event.
Definition: psi_thread_bits.h:579
int(* set_thread_resource_group_v1_t)(const char *group_name, int group_name_len, void *user_data)
Assign a resource group name to the current thread.
Definition: psi_thread_bits.h:371
struct PSI_thread *(* get_thread_v1_t)(void)
Get the instrumentation for the running thread.
Definition: psi_thread_bits.h:300
void(* set_thread_user_v1_t)(const char *user, int user_len)
Assign a user name to the instrumented thread.
Definition: psi_thread_bits.h:307
void(* register_thread_v5_t)(const char *category, struct PSI_thread_info_v5 *info, int count)
Thread registration API.
Definition: psi_thread_bits.h:212
struct PSI_thread *(* new_thread_v1_t)(PSI_thread_key key, const void *identity, unsigned long long thread_id)
Create instrumentation for a thread.
Definition: psi_thread_bits.h:241
void(* aggregate_thread_status_v2_t)(struct PSI_thread *thread)
Aggregate the thread status variables.
Definition: psi_thread_bits.h:411
int(* unregister_notification_v1_t)(int handle)
Unregister callback functions for the Notification service.
Definition: psi_thread_bits.h:572
void(* delete_thread_v1_t)(struct PSI_thread *thread)
Delete a thread instrumentation.
Definition: psi_thread_bits.h:417
void(* set_thread_db_v1_t)(const char *db, int db_len)
Assign a current database to the instrumented thread.
Definition: psi_thread_bits.h:324
void(* set_thread_v1_t)(struct PSI_thread *thread)
Attach a thread instrumentation to the running thread.
Definition: psi_thread_bits.h:399
unsigned long long(* get_current_thread_internal_id_v2_t)()
Read the THREAD_ID of the current thread.
Definition: psi_thread_bits.h:268
int(* get_thread_system_attrs_v3_t)(PSI_thread_attrs_v3 *thread_attrs)
Get system attributes for the current thread.
Definition: psi_thread_bits.h:538
void(* set_thread_peer_port_v4_t)(PSI_thread *thread, unsigned int port)
Assign the remote (peer) port to the instrumented thread.
Definition: psi_thread_bits.h:407
int(* set_thread_connect_attrs_v1_t)(const char *buffer, unsigned int length, const void *from_cs)
Stores an array of connection attributes.
Definition: psi_thread_bits.h:429
MYSQL_PLUGIN_IMPORT PSI_thread_service_t * psi_thread_service
Definition: psi_noop.cc:247
int(* get_thread_system_attrs_by_id_v3_t)(PSI_thread *thread, unsigned long long thread_id, PSI_thread_attrs_v3 *thread_attrs)
Get system attributes for an instrumented thread, identified either by the thread instrumentation or ...
Definition: psi_thread_bits.h:549
struct PSI_thread *(* get_thread_by_id_v2_t)(unsigned long long processlist_id)
Get the instrumentation for the thread of given PROCESSLIST_ID.
Definition: psi_thread_bits.h:283
int(* set_thread_resource_group_by_id_v1_t)(PSI_thread *thread, unsigned long long thread_id, const char *group_name, int group_name_len, void *user_data)
Assign a resource group name to an instrumented thread, identified either by the thread instrumentati...
Definition: psi_thread_bits.h:386
void(* thread_abort_telemetry_v7_t)(PSI_thread *thread)
Definition: psi_thread_bits.h:599
void(* set_connection_type_v1_t)(opaque_vio_type conn_type)
Assign a connection type to the instrumented thread.
Definition: psi_thread_bits.h:336
void(* thread_detect_telemetry_v7_t)(PSI_thread *thread)
Definition: psi_thread_bits.h:597
void(* get_thread_event_id_v2_t)(struct PSI_thread *psi, unsigned long long *thread_internal_id, unsigned long long *event_id)
Get the thread current event.
Definition: psi_thread_bits.h:456
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:70
Performance schema instrumentation interface.
required uint64 version
Definition: replication_group_member_actions.proto:40
Entry point for the performance schema interface.
Definition: psi_thread.h:101
Performance Schema Thread Interface, version 4.
Definition: psi_thread.h:131
set_thread_os_id_v1_t set_thread_os_id
Definition: psi_thread.h:149
get_thread_v1_t get_thread
Definition: psi_thread.h:151
delete_current_thread_v1_t delete_current_thread
Definition: psi_thread.h:177
spawn_thread_v1_t spawn_thread
Definition: psi_thread.h:135
register_notification_v3_t register_notification
Definition: psi_thread.h:191
set_thread_v1_t set_thread
Definition: psi_thread.h:171
set_thread_peer_port_v4_t set_thread_peer_port
Definition: psi_thread.h:173
set_thread_db_v1_t set_thread_db
Definition: psi_thread.h:157
unregister_notification_v1_t unregister_notification
Definition: psi_thread.h:193
get_current_thread_event_id_v2_t get_current_thread_event_id
Definition: psi_thread.h:183
get_thread_internal_id_v2_t get_thread_internal_id
Definition: psi_thread.h:143
set_thread_command_v1_t set_thread_command
Definition: psi_thread.h:159
set_thread_user_v1_t set_thread_user
Definition: psi_thread.h:153
set_thread_info_v1_t set_thread_info
Definition: psi_thread.h:165
set_thread_resource_group_by_id_v1_t set_thread_resource_group_by_id
Definition: psi_thread.h:169
set_thread_connect_attrs_v1_t set_thread_connect_attrs
Definition: psi_thread.h:181
set_thread_start_time_v1_t set_thread_start_time
Definition: psi_thread.h:163
get_thread_system_attrs_v3_t get_thread_system_attrs
Definition: psi_thread.h:187
set_thread_THD_v1_t set_thread_THD
Definition: psi_thread.h:147
set_connection_type_v1_t set_connection_type
Definition: psi_thread.h:161
get_thread_event_id_v2_t get_thread_event_id
Definition: psi_thread.h:185
notify_session_change_user_v1_t notify_session_change_user
Definition: psi_thread.h:199
set_thread_resource_group_v1_t set_thread_resource_group
Definition: psi_thread.h:167
delete_thread_v1_t delete_thread
Definition: psi_thread.h:179
register_thread_v1_t register_thread
Definition: psi_thread.h:133
aggregate_thread_status_v2_t aggregate_thread_status
Definition: psi_thread.h:175
get_current_thread_internal_id_v2_t get_current_thread_internal_id
Definition: psi_thread.h:141
set_thread_account_v1_t set_thread_account
Definition: psi_thread.h:155
notify_session_connect_v1_t notify_session_connect
Definition: psi_thread.h:195
notify_session_disconnect_v1_t notify_session_disconnect
Definition: psi_thread.h:197
get_thread_by_id_v2_t get_thread_by_id
Definition: psi_thread.h:145
new_thread_v1_t new_thread
Definition: psi_thread.h:137
set_thread_id_v1_t set_thread_id
Definition: psi_thread.h:139
get_thread_system_attrs_by_id_v3_t get_thread_system_attrs_by_id
Definition: psi_thread.h:189
Performance Schema Thread Interface, version 5.
Definition: psi_thread.h:211
register_notification_v3_t register_notification
Definition: psi_thread.h:271
aggregate_thread_status_v2_t aggregate_thread_status
Definition: psi_thread.h:255
spawn_thread_v5_t spawn_thread
Definition: psi_thread.h:215
get_thread_system_attrs_by_id_v3_t get_thread_system_attrs_by_id
Definition: psi_thread.h:269
set_thread_start_time_v1_t set_thread_start_time
Definition: psi_thread.h:243
get_thread_system_attrs_v3_t get_thread_system_attrs
Definition: psi_thread.h:267
set_thread_id_v1_t set_thread_id
Definition: psi_thread.h:219
set_thread_resource_group_by_id_v1_t set_thread_resource_group_by_id
Definition: psi_thread.h:249
register_thread_v5_t register_thread
Definition: psi_thread.h:213
unregister_notification_v1_t unregister_notification
Definition: psi_thread.h:273
set_thread_account_v1_t set_thread_account
Definition: psi_thread.h:235
set_connection_type_v1_t set_connection_type
Definition: psi_thread.h:241
set_thread_THD_v1_t set_thread_THD
Definition: psi_thread.h:227
set_mem_cnt_THD_v1_t set_mem_cnt_THD
Definition: psi_thread.h:281
set_thread_user_v1_t set_thread_user
Definition: psi_thread.h:233
set_thread_v1_t set_thread
Definition: psi_thread.h:251
get_thread_internal_id_v2_t get_thread_internal_id
Definition: psi_thread.h:223
notify_session_connect_v1_t notify_session_connect
Definition: psi_thread.h:275
notify_session_change_user_v1_t notify_session_change_user
Definition: psi_thread.h:279
delete_thread_v1_t delete_thread
Definition: psi_thread.h:259
get_thread_event_id_v2_t get_thread_event_id
Definition: psi_thread.h:265
get_current_thread_internal_id_v2_t get_current_thread_internal_id
Definition: psi_thread.h:221
get_thread_by_id_v2_t get_thread_by_id
Definition: psi_thread.h:225
notify_session_disconnect_v1_t notify_session_disconnect
Definition: psi_thread.h:277
get_thread_v1_t get_thread
Definition: psi_thread.h:231
set_thread_command_v1_t set_thread_command
Definition: psi_thread.h:239
set_thread_db_v1_t set_thread_db
Definition: psi_thread.h:237
set_thread_os_id_v1_t set_thread_os_id
Definition: psi_thread.h:229
get_current_thread_event_id_v2_t get_current_thread_event_id
Definition: psi_thread.h:263
set_thread_info_v1_t set_thread_info
Definition: psi_thread.h:245
new_thread_v5_t new_thread
Definition: psi_thread.h:217
set_thread_peer_port_v4_t set_thread_peer_port
Definition: psi_thread.h:253
delete_current_thread_v1_t delete_current_thread
Definition: psi_thread.h:257
set_thread_resource_group_v1_t set_thread_resource_group
Definition: psi_thread.h:247
set_thread_connect_attrs_v1_t set_thread_connect_attrs
Definition: psi_thread.h:261
Performance Schema Thread Interface, version 6.
Definition: psi_thread.h:290
set_thread_secondary_engine_v6_t set_thread_secondary_engine
Definition: psi_thread.h:326
set_thread_resource_group_v1_t set_thread_resource_group
Definition: psi_thread.h:328
set_thread_peer_port_v4_t set_thread_peer_port
Definition: psi_thread.h:334
aggregate_thread_status_v2_t aggregate_thread_status
Definition: psi_thread.h:336
get_thread_internal_id_v2_t get_thread_internal_id
Definition: psi_thread.h:302
get_current_thread_internal_id_v2_t get_current_thread_internal_id
Definition: psi_thread.h:300
set_thread_command_v1_t set_thread_command
Definition: psi_thread.h:318
get_thread_event_id_v2_t get_thread_event_id
Definition: psi_thread.h:346
delete_thread_v1_t delete_thread
Definition: psi_thread.h:340
set_thread_THD_v1_t set_thread_THD
Definition: psi_thread.h:306
register_notification_v3_t register_notification
Definition: psi_thread.h:352
set_thread_id_v1_t set_thread_id
Definition: psi_thread.h:298
set_thread_connect_attrs_v1_t set_thread_connect_attrs
Definition: psi_thread.h:342
notify_session_change_user_v1_t notify_session_change_user
Definition: psi_thread.h:360
get_thread_by_id_v2_t get_thread_by_id
Definition: psi_thread.h:304
delete_current_thread_v1_t delete_current_thread
Definition: psi_thread.h:338
set_thread_start_time_v1_t set_thread_start_time
Definition: psi_thread.h:322
notify_session_disconnect_v1_t notify_session_disconnect
Definition: psi_thread.h:358
new_thread_v5_t new_thread
Definition: psi_thread.h:296
get_thread_system_attrs_by_id_v3_t get_thread_system_attrs_by_id
Definition: psi_thread.h:350
get_thread_system_attrs_v3_t get_thread_system_attrs
Definition: psi_thread.h:348
register_thread_v5_t register_thread
Definition: psi_thread.h:292
set_thread_info_v1_t set_thread_info
Definition: psi_thread.h:324
get_current_thread_event_id_v2_t get_current_thread_event_id
Definition: psi_thread.h:344
set_thread_v1_t set_thread
Definition: psi_thread.h:332
set_thread_resource_group_by_id_v1_t set_thread_resource_group_by_id
Definition: psi_thread.h:330
set_thread_account_v1_t set_thread_account
Definition: psi_thread.h:314
set_thread_os_id_v1_t set_thread_os_id
Definition: psi_thread.h:308
spawn_thread_v5_t spawn_thread
Definition: psi_thread.h:294
set_thread_db_v1_t set_thread_db
Definition: psi_thread.h:316
notify_session_connect_v1_t notify_session_connect
Definition: psi_thread.h:356
set_thread_user_v1_t set_thread_user
Definition: psi_thread.h:312
get_thread_v1_t get_thread
Definition: psi_thread.h:310
set_mem_cnt_THD_v1_t set_mem_cnt_THD
Definition: psi_thread.h:362
unregister_notification_v1_t unregister_notification
Definition: psi_thread.h:354
set_connection_type_v1_t set_connection_type
Definition: psi_thread.h:320
Performance Schema Thread Interface, version 7.
Definition: psi_thread.h:371
get_thread_system_attrs_v3_t get_thread_system_attrs
Definition: psi_thread.h:429
set_thread_info_v1_t set_thread_info
Definition: psi_thread.h:405
set_thread_db_v1_t set_thread_db
Definition: psi_thread.h:397
set_thread_resource_group_by_id_v1_t set_thread_resource_group_by_id
Definition: psi_thread.h:411
aggregate_thread_status_v2_t aggregate_thread_status
Definition: psi_thread.h:417
delete_thread_v1_t delete_thread
Definition: psi_thread.h:421
register_thread_v5_t register_thread
Definition: psi_thread.h:373
unregister_notification_v1_t unregister_notification
Definition: psi_thread.h:435
get_current_thread_internal_id_v2_t get_current_thread_internal_id
Definition: psi_thread.h:381
set_thread_peer_port_v4_t set_thread_peer_port
Definition: psi_thread.h:415
delete_current_thread_v1_t delete_current_thread
Definition: psi_thread.h:419
new_thread_v5_t new_thread
Definition: psi_thread.h:377
set_thread_id_v1_t set_thread_id
Definition: psi_thread.h:379
set_thread_start_time_v1_t set_thread_start_time
Definition: psi_thread.h:403
spawn_thread_v5_t spawn_thread
Definition: psi_thread.h:375
set_thread_connect_attrs_v1_t set_thread_connect_attrs
Definition: psi_thread.h:423
set_thread_resource_group_v1_t set_thread_resource_group
Definition: psi_thread.h:409
set_thread_os_id_v1_t set_thread_os_id
Definition: psi_thread.h:389
notify_session_change_user_v1_t notify_session_change_user
Definition: psi_thread.h:441
get_current_thread_event_id_v2_t get_current_thread_event_id
Definition: psi_thread.h:425
set_thread_THD_v1_t set_thread_THD
Definition: psi_thread.h:387
thread_detect_telemetry_v7_t detect_telemetry
Definition: psi_thread.h:445
set_thread_account_v1_t set_thread_account
Definition: psi_thread.h:395
set_thread_user_v1_t set_thread_user
Definition: psi_thread.h:393
set_connection_type_v1_t set_connection_type
Definition: psi_thread.h:401
get_thread_internal_id_v2_t get_thread_internal_id
Definition: psi_thread.h:383
register_notification_v3_t register_notification
Definition: psi_thread.h:433
set_mem_cnt_THD_v1_t set_mem_cnt_THD
Definition: psi_thread.h:443
notify_session_connect_v1_t notify_session_connect
Definition: psi_thread.h:437
set_thread_secondary_engine_v6_t set_thread_secondary_engine
Definition: psi_thread.h:407
get_thread_v1_t get_thread
Definition: psi_thread.h:391
set_thread_command_v1_t set_thread_command
Definition: psi_thread.h:399
get_thread_system_attrs_by_id_v3_t get_thread_system_attrs_by_id
Definition: psi_thread.h:431
notify_session_disconnect_v1_t notify_session_disconnect
Definition: psi_thread.h:439
thread_abort_telemetry_v7_t abort_telemetry
Definition: psi_thread.h:446
set_thread_v1_t set_thread
Definition: psi_thread.h:413
get_thread_event_id_v2_t get_thread_event_id
Definition: psi_thread.h:427
get_thread_by_id_v2_t get_thread_by_id
Definition: psi_thread.h:385