24#ifndef MYSQL_PSI_FILE_H
25#define MYSQL_PSI_FILE_H
49#define PSI_FILE_VERSION_1 1
56#define PSI_FILE_VERSION_2 2
63#define PSI_CURRENT_FILE_VERSION 2
78#ifdef HAVE_PSI_FILE_INTERFACE
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
MYSQL_PLUGIN_IMPORT PSI_file_service_t * psi_file_service
Definition: psi_noop.cc:442
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
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:71
Performance schema instrumentation interface.
required uint64 version
Definition: replication_group_member_actions.proto:41
Entry point for the performance schema interface.
Definition: psi_file.h:66
Performance Schema file Interface, version 2.
Definition: psi_file.h:84
start_file_close_wait_v1_t start_file_close_wait
Definition: psi_file.h:110
end_file_close_wait_v1_t end_file_close_wait
Definition: psi_file.h:112
get_thread_file_stream_locker_v1_t get_thread_file_stream_locker
Definition: psi_file.h:92
get_thread_file_descriptor_locker_v1_t get_thread_file_descriptor_locker
Definition: psi_file.h:94
end_file_rename_wait_v1_t end_file_rename_wait
Definition: psi_file.h:116
end_file_wait_v1_t end_file_wait
Definition: psi_file.h:108
end_file_open_wait_and_bind_to_descriptor_v1_t end_file_open_wait_and_bind_to_descriptor
Definition: psi_file.h:101
end_file_open_wait_v1_t end_file_open_wait
Definition: psi_file.h:98
create_file_v1_t create_file
Definition: psi_file.h:88
start_file_rename_wait_v1_t start_file_rename_wait
Definition: psi_file.h:114
get_thread_file_name_locker_v1_t get_thread_file_name_locker
Definition: psi_file.h:90
register_file_v1_t register_file
Definition: psi_file.h:86
start_file_open_wait_v1_t start_file_open_wait
Definition: psi_file.h:96
end_temp_file_open_wait_and_bind_to_descriptor_v1_t end_temp_file_open_wait_and_bind_to_descriptor
Definition: psi_file.h:104
start_file_wait_v1_t start_file_wait
Definition: psi_file.h:106