MySQL 8.4.2
Source Code Documentation
psi_file_bits.h File Reference

Performance schema instrumentation interface. More...

Go to the source code of this file.

Classes

struct  PSI_file_info_v1
 File instrument information. More...
 
struct  PSI_file_locker_state_v1
 State data storage for get_thread_file_name_locker_v1_t. More...
 

Typedefs

typedef unsigned int PSI_file_key
 Instrumented file key. More...
 
typedef struct PSI_file PSI_file
 
typedef struct PSI_file_locker PSI_file_locker
 
typedef enum PSI_file_operation PSI_file_operation
 
typedef struct PSI_file_info_v1 PSI_file_info_v1
 
typedef struct PSI_file_locker_state_v1 PSI_file_locker_state_v1
 
typedef void(* register_file_v1_t) (const char *category, struct PSI_file_info_v1 *info, int count)
 File registration API. More...
 
typedef void(* create_file_v1_t) (PSI_file_key key, const char *name, File file)
 Create a file instrumentation for a created file. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef void(* end_file_wait_v1_t) (struct PSI_file_locker *locker, size_t count)
 Record a file instrumentation end event. More...
 
typedef 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. More...
 
typedef void(* end_file_close_wait_v1_t) (struct PSI_file_locker *locker, int rc)
 End a file instrumentation close operation. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef struct PSI_file_info_v1 PSI_file_info
 
typedef struct PSI_file_locker_state_v1 PSI_file_locker_state
 

Enumerations

enum  PSI_file_operation {
  PSI_FILE_CREATE = 0 , PSI_FILE_CREATE_TMP = 1 , PSI_FILE_OPEN = 2 , PSI_FILE_STREAM_OPEN = 3 ,
  PSI_FILE_CLOSE = 4 , PSI_FILE_STREAM_CLOSE = 5 , PSI_FILE_READ = 6 , PSI_FILE_WRITE = 7 ,
  PSI_FILE_SEEK = 8 , PSI_FILE_TELL = 9 , PSI_FILE_FLUSH = 10 , PSI_FILE_STAT = 11 ,
  PSI_FILE_FSTAT = 12 , PSI_FILE_CHSIZE = 13 , PSI_FILE_DELETE = 14 , PSI_FILE_RENAME = 15 ,
  PSI_FILE_SYNC = 16
}
 Operation performed on an instrumented file. More...
 

Detailed Description

Performance schema instrumentation interface.