MySQL 8.4.2
Source Code Documentation
psi_file_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_FILE_SERVICE_H
25#define COMPONENTS_SERVICES_PSI_FILE_SERVICE_H
26
29
30/*
31 Version 1.
32 Introduced in MySQL 8.0.3
33 Abandoned in MySQL 8.0.19
34 Status: Removed, use version 2 instead.
35*/
36
37/*
38 Version 2.
39 Introduced in MySQL 8.0.19
40 Status: active
41*/
42
44/** @sa register_file_v1_t. */
45register_file_v1_t register_file;
46/** @sa create_file_v1_t. */
48/** @sa get_thread_file_name_locker_v1_t. */
49get_thread_file_name_locker_v1_t get_thread_file_name_locker;
50/** @sa get_thread_file_stream_locker_v1_t. */
51get_thread_file_stream_locker_v1_t get_thread_file_stream_locker;
52/** @sa get_thread_file_descriptor_locker_v1_t. */
53get_thread_file_descriptor_locker_v1_t get_thread_file_descriptor_locker;
54/** @sa start_file_open_wait_v1_t. */
55start_file_open_wait_v1_t start_file_open_wait;
56/** @sa end_file_open_wait_v1_t. */
57end_file_open_wait_v1_t end_file_open_wait;
58/** @sa end_file_open_wait_and_bind_to_descriptor_v1_t. */
60 end_file_open_wait_and_bind_to_descriptor;
61/** @sa end_temp_file_open_wait_and_bind_to_descriptor_v1_t. */
63 end_temp_file_open_wait_and_bind_to_descriptor;
64/** @sa start_file_wait_v1_t. */
65start_file_wait_v1_t start_file_wait;
66/** @sa end_file_wait_v1_t. */
67end_file_wait_v1_t end_file_wait;
68/** @sa start_file_close_wait_v1_t. */
69start_file_close_wait_v1_t start_file_close_wait;
70/** @sa end_file_close_wait_v1_t. */
71end_file_close_wait_v1_t end_file_close_wait;
72/** @sa start_file_rename_wait_v1_t. */
73start_file_rename_wait_v1_t start_file_rename_wait;
74/** @sa rename_file_close_wait_v1_t. */
75end_file_rename_wait_v1_t end_file_rename_wait;
77
78#endif /* COMPONENTS_SERVICES_PSI_FILE_SERVICE_H */
void(* start_file_rename_wait_v1_t)(struct PSI_file_locker *locker, size_t count, const char *old_name, const char *new_name, const char *src_file, unsigned int src_line)
Record a file instrumentation start event.
Definition: psi_file_bits.h:313
void(* end_file_rename_wait_v1_t)(struct PSI_file_locker *locker, const char *old_name, const char *new_name, int rc)
Rename a file instrumentation close operation.
Definition: psi_file_bits.h:325
void(* end_file_wait_v1_t)(struct PSI_file_locker *locker, size_t count)
Record a file instrumentation end event.
Definition: psi_file_bits.h:283
struct PSI_file *(* end_file_open_wait_v1_t)(struct PSI_file_locker *locker, void *result)
End a file instrumentation open operation, for file streams.
Definition: psi_file_bits.h:240
void(* start_file_wait_v1_t)(struct PSI_file_locker *locker, size_t count, const char *src_file, unsigned int src_line)
Record a file instrumentation start event.
Definition: psi_file_bits.h:267
struct PSI_file_locker *(* get_thread_file_descriptor_locker_v1_t)(struct PSI_file_locker_state_v1 *state, File file, enum PSI_file_operation op)
Get a file instrumentation locker.
Definition: psi_file_bits.h:220
void(* end_file_open_wait_and_bind_to_descriptor_v1_t)(struct PSI_file_locker *locker, File file)
End a file instrumentation open operation, for non stream files.
Definition: psi_file_bits.h:248
void(* start_file_close_wait_v1_t)(struct PSI_file_locker *locker, const char *src_file, unsigned int src_line)
Start a file instrumentation close operation.
Definition: psi_file_bits.h:292
struct PSI_file_locker *(* get_thread_file_stream_locker_v1_t)(struct PSI_file_locker_state_v1 *state, struct PSI_file *file, enum PSI_file_operation op)
Get a file stream instrumentation locker.
Definition: psi_file_bits.h:209
void(* end_temp_file_open_wait_and_bind_to_descriptor_v1_t)(struct PSI_file_locker *locker, File file, const char *filename)
End a file instrumentation open operation, for non stream temporary files.
Definition: psi_file_bits.h:257
void(* create_file_v1_t)(PSI_file_key key, const char *name, File file)
Create a file instrumentation for a created file.
Definition: psi_file_bits.h:187
void(* register_file_v1_t)(const char *category, struct PSI_file_info_v1 *info, int count)
File registration API.
Definition: psi_file_bits.h:176
void(* end_file_close_wait_v1_t)(struct PSI_file_locker *locker, int rc)
End a file instrumentation close operation.
Definition: psi_file_bits.h:301
struct PSI_file_locker *(* get_thread_file_name_locker_v1_t)(struct PSI_file_locker_state_v1 *state, PSI_file_key key, enum PSI_file_operation op, const char *name, const void *identity)
Get a file instrumentation locker, for opening or creating a file.
Definition: psi_file_bits.h:198
void(* start_file_open_wait_v1_t)(struct PSI_file_locker *locker, const char *src_file, unsigned int src_line)
Start a file instrumentation open operation.
Definition: psi_file_bits.h:230
Performance schema instrumentation interface.
static File create_file(THD *thd, char *path, sql_exchange *exchange, IO_CACHE *cache)
Definition: query_result.cc:207
#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