23#ifndef MYSQL_PSI_FILE_H
24#define MYSQL_PSI_FILE_H
48#define PSI_FILE_VERSION_1 1
55#define PSI_FILE_VERSION_2 2
62#define PSI_CURRENT_FILE_VERSION 2
77#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:312
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:324
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:282
MYSQL_PLUGIN_IMPORT PSI_file_service_t * psi_file_service
Definition: psi_noop.cc:439
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:239
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:266
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:219
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:247
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:291
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:208
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:256
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:186
void(* register_file_v1_t)(const char *category, struct PSI_file_info_v1 *info, int count)
File registration API.
Definition: psi_file_bits.h:175
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:300
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:197
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:229
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_file.h:65
Performance Schema file Interface, version 2.
Definition: psi_file.h:83
start_file_close_wait_v1_t start_file_close_wait
Definition: psi_file.h:109
end_file_close_wait_v1_t end_file_close_wait
Definition: psi_file.h:111
get_thread_file_stream_locker_v1_t get_thread_file_stream_locker
Definition: psi_file.h:91
get_thread_file_descriptor_locker_v1_t get_thread_file_descriptor_locker
Definition: psi_file.h:93
end_file_rename_wait_v1_t end_file_rename_wait
Definition: psi_file.h:115
end_file_wait_v1_t end_file_wait
Definition: psi_file.h:107
end_file_open_wait_and_bind_to_descriptor_v1_t end_file_open_wait_and_bind_to_descriptor
Definition: psi_file.h:100
end_file_open_wait_v1_t end_file_open_wait
Definition: psi_file.h:97
create_file_v1_t create_file
Definition: psi_file.h:87
start_file_rename_wait_v1_t start_file_rename_wait
Definition: psi_file.h:113
get_thread_file_name_locker_v1_t get_thread_file_name_locker
Definition: psi_file.h:89
register_file_v1_t register_file
Definition: psi_file.h:85
start_file_open_wait_v1_t start_file_open_wait
Definition: psi_file.h:95
end_temp_file_open_wait_and_bind_to_descriptor_v1_t end_temp_file_open_wait_and_bind_to_descriptor
Definition: psi_file.h:103
start_file_wait_v1_t start_file_wait
Definition: psi_file.h:105