57#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
63#define PSI_FILE_CALL(M) psi_file_service->M
76#define mysql_file_register(P1, P2, P3) inline_mysql_file_register(P1, P2, P3)
83#ifdef HAVE_PSI_FILE_INTERFACE
84#define mysql_file_fgets(P1, P2, F) \
85 inline_mysql_file_fgets(__FILE__, __LINE__, P1, P2, F)
87#define mysql_file_fgets(P1, P2, F) inline_mysql_file_fgets(P1, P2, F)
95#ifdef HAVE_PSI_FILE_INTERFACE
96#define mysql_file_fgetc(F) inline_mysql_file_fgetc(__FILE__, __LINE__, F)
98#define mysql_file_fgetc(F) inline_mysql_file_fgetc(F)
106#ifdef HAVE_PSI_FILE_INTERFACE
107#define mysql_file_fputs(P1, F) \
108 inline_mysql_file_fputs(__FILE__, __LINE__, P1, F)
110#define mysql_file_fputs(P1, F) inline_mysql_file_fputs(P1, F)
118#ifdef HAVE_PSI_FILE_INTERFACE
119#define mysql_file_fputc(P1, F) \
120 inline_mysql_file_fputc(__FILE__, __LINE__, P1, F)
122#define mysql_file_fputc(P1, F) inline_mysql_file_fputc(P1, F)
130#define mysql_file_fprintf inline_mysql_file_fprintf
137#ifdef HAVE_PSI_FILE_INTERFACE
138#define mysql_file_vfprintf(F, P1, P2) \
139 inline_mysql_file_vfprintf(__FILE__, __LINE__, F, P1, P2)
141#define mysql_file_vfprintf(F, P1, P2) inline_mysql_file_vfprintf(F, P1, P2)
149#ifdef HAVE_PSI_FILE_INTERFACE
150#define mysql_file_fflush(F) inline_mysql_file_fflush(__FILE__, __LINE__, F)
152#define mysql_file_fflush(F) inline_mysql_file_fflush(F)
160#define mysql_file_feof(F) inline_mysql_file_feof(F)
167#ifdef HAVE_PSI_FILE_INTERFACE
168#define mysql_file_fstat(FN, S) \
169 inline_mysql_file_fstat(__FILE__, __LINE__, FN, S)
171#define mysql_file_fstat(FN, S) inline_mysql_file_fstat(FN, S)
179#ifdef HAVE_PSI_FILE_INTERFACE
180#define mysql_file_stat(K, FN, S, FL) \
181 inline_mysql_file_stat(K, __FILE__, __LINE__, FN, S, FL)
183#define mysql_file_stat(K, FN, S, FL) inline_mysql_file_stat(FN, S, FL)
191#ifdef HAVE_PSI_FILE_INTERFACE
192#define mysql_file_chsize(F, P1, P2, P3) \
193 inline_mysql_file_chsize(__FILE__, __LINE__, F, P1, P2, P3)
195#define mysql_file_chsize(F, P1, P2, P3) inline_mysql_file_chsize(F, P1, P2, P3)
203#ifdef HAVE_PSI_FILE_INTERFACE
204#define mysql_file_fopen(K, N, F1, F2) \
205 inline_mysql_file_fopen(K, __FILE__, __LINE__, N, F1, F2)
207#define mysql_file_fopen(K, N, F1, F2) inline_mysql_file_fopen(N, F1, F2)
222#ifdef HAVE_PSI_FILE_INTERFACE
223#define mysql_file_fclose(FD, FL) \
224 inline_mysql_file_fclose(__FILE__, __LINE__, FD, FL)
226#define mysql_file_fclose(FD, FL) inline_mysql_file_fclose(FD, FL)
234#ifdef HAVE_PSI_FILE_INTERFACE
235#define mysql_file_fread(FD, P1, P2, P3) \
236 inline_mysql_file_fread(__FILE__, __LINE__, FD, P1, P2, P3)
238#define mysql_file_fread(FD, P1, P2, P3) inline_mysql_file_fread(FD, P1, P2, P3)
246#ifdef HAVE_PSI_FILE_INTERFACE
247#define mysql_file_fwrite(FD, P1, P2, P3) \
248 inline_mysql_file_fwrite(__FILE__, __LINE__, FD, P1, P2, P3)
250#define mysql_file_fwrite(FD, P1, P2, P3) \
251 inline_mysql_file_fwrite(FD, P1, P2, P3)
259#ifdef HAVE_PSI_FILE_INTERFACE
260#define mysql_file_fseek(FD, P, W) \
261 inline_mysql_file_fseek(__FILE__, __LINE__, FD, P, W)
263#define mysql_file_fseek(FD, P, W) inline_mysql_file_fseek(FD, P, W)
271#ifdef HAVE_PSI_FILE_INTERFACE
272#define mysql_file_ftell(FD) inline_mysql_file_ftell(__FILE__, __LINE__, FD)
274#define mysql_file_ftell(FD) inline_mysql_file_ftell(FD)
282#ifdef HAVE_PSI_FILE_INTERFACE
283#define mysql_file_create(K, N, F1, F2, F3) \
284 inline_mysql_file_create(K, __FILE__, __LINE__, N, F1, F2, F3)
286#define mysql_file_create(K, N, F1, F2, F3) \
287 inline_mysql_file_create(N, F1, F2, F3)
295#ifdef HAVE_PSI_FILE_INTERFACE
296#define mysql_file_create_temp(K, T, D, P, M, U, F) \
297 inline_mysql_file_create_temp(K, __FILE__, __LINE__, T, D, P, M, U, F)
299#define mysql_file_create_temp(K, T, D, P, M, U, F) \
300 inline_mysql_file_create_temp(T, D, P, M, U, F)
308#ifdef HAVE_PSI_FILE_INTERFACE
309#define mysql_file_open(K, N, F1, F2) \
310 inline_mysql_file_open(K, __FILE__, __LINE__, N, F1, F2)
312#define mysql_file_open(K, N, F1, F2) inline_mysql_file_open(N, F1, F2)
320#ifdef HAVE_PSI_FILE_INTERFACE
321#define mysql_file_close(FD, F) \
322 inline_mysql_file_close(__FILE__, __LINE__, FD, F)
324#define mysql_file_close(FD, F) inline_mysql_file_close(FD, F)
332#ifdef HAVE_PSI_FILE_INTERFACE
333#define mysql_file_read(FD, B, S, F) \
334 inline_mysql_file_read(__FILE__, __LINE__, FD, B, S, F)
336#define mysql_file_read(FD, B, S, F) inline_mysql_file_read(FD, B, S, F)
344#ifdef HAVE_PSI_FILE_INTERFACE
345#define mysql_file_write(FD, B, S, F) \
346 inline_mysql_file_write(__FILE__, __LINE__, FD, B, S, F)
348#define mysql_file_write(FD, B, S, F) inline_mysql_file_write(FD, B, S, F)
356#ifdef HAVE_PSI_FILE_INTERFACE
357#define mysql_file_pread(FD, B, S, O, F) \
358 inline_mysql_file_pread(__FILE__, __LINE__, FD, B, S, O, F)
360#define mysql_file_pread(FD, B, S, O, F) inline_mysql_file_pread(FD, B, S, O, F)
368#ifdef HAVE_PSI_FILE_INTERFACE
369#define mysql_file_pwrite(FD, B, S, O, F) \
370 inline_mysql_file_pwrite(__FILE__, __LINE__, FD, B, S, O, F)
372#define mysql_file_pwrite(FD, B, S, O, F) \
373 inline_mysql_file_pwrite(FD, B, S, O, F)
381#ifdef HAVE_PSI_FILE_INTERFACE
382#define mysql_file_seek(FD, P, W, F) \
383 inline_mysql_file_seek(__FILE__, __LINE__, FD, P, W, F)
385#define mysql_file_seek(FD, P, W, F) inline_mysql_file_seek(FD, P, W, F)
393#ifdef HAVE_PSI_FILE_INTERFACE
394#define mysql_file_tell(FD, F) inline_mysql_file_tell(__FILE__, __LINE__, FD, F)
396#define mysql_file_tell(FD, F) inline_mysql_file_tell(FD, F)
404#ifdef HAVE_PSI_FILE_INTERFACE
405#define mysql_file_delete(K, P1, P2) \
406 inline_mysql_file_delete(K, __FILE__, __LINE__, P1, P2)
408#define mysql_file_delete(K, P1, P2) inline_mysql_file_delete(P1, P2)
416#ifdef HAVE_PSI_FILE_INTERFACE
417#define mysql_file_rename(K, P1, P2, P3) \
418 inline_mysql_file_rename(K, __FILE__, __LINE__, P1, P2, P3)
420#define mysql_file_rename(K, P1, P2, P3) inline_mysql_file_rename(P1, P2, P3)
429#ifdef HAVE_PSI_FILE_INTERFACE
430#define mysql_file_create_with_symlink(K, P1, P2, P3, P4, P5) \
431 inline_mysql_file_create_with_symlink(K, __FILE__, __LINE__, P1, P2, P3, P4, \
434#define mysql_file_create_with_symlink(K, P1, P2, P3, P4, P5) \
435 inline_mysql_file_create_with_symlink(P1, P2, P3, P4, P5)
444#ifdef HAVE_PSI_FILE_INTERFACE
445#define mysql_file_delete_with_symlink(K, P1, P2) \
446 inline_mysql_file_delete_with_symlink(K, __FILE__, __LINE__, P1, P2)
448#define mysql_file_delete_with_symlink(K, P1, P2) \
449 inline_mysql_file_delete_with_symlink(P1, P2)
458#ifdef HAVE_PSI_FILE_INTERFACE
459#define mysql_file_rename_with_symlink(K, P1, P2, P3) \
460 inline_mysql_file_rename_with_symlink(K, __FILE__, __LINE__, P1, P2, P3)
462#define mysql_file_rename_with_symlink(K, P1, P2, P3) \
463 inline_mysql_file_rename_with_symlink(P1, P2, P3)
471#ifdef HAVE_PSI_FILE_INTERFACE
472#define mysql_file_sync(P1, P2) \
473 inline_mysql_file_sync(__FILE__, __LINE__, P1, P2)
475#define mysql_file_sync(P1, P2) inline_mysql_file_sync(P1, P2)
498 const char *
category [[maybe_unused]],
void *
info [[maybe_unused]],
499 int count [[maybe_unused]]
502#ifdef HAVE_PSI_FILE_INTERFACE
509 const char *src_file,
uint src_line,
513#ifdef HAVE_PSI_FILE_INTERFACE
518 if (
likely(locker !=
nullptr)) {
519 PSI_FILE_CALL(start_file_wait)(locker, (size_t)size, src_file, src_line);
532 const char *src_file,
uint src_line,
536#ifdef HAVE_PSI_FILE_INTERFACE
541 if (
likely(locker !=
nullptr)) {
542 PSI_FILE_CALL(start_file_wait)(locker, (size_t)1, src_file, src_line);
555 const char *src_file,
uint src_line,
559#ifdef HAVE_PSI_FILE_INTERFACE
565 if (
likely(locker !=
nullptr)) {
566 bytes =
str ? strlen(
str) : 0;
567 PSI_FILE_CALL(start_file_wait)(locker, bytes, src_file, src_line);
580 const char *src_file,
uint src_line,
584#ifdef HAVE_PSI_FILE_INTERFACE
589 if (
likely(locker !=
nullptr)) {
590 PSI_FILE_CALL(start_file_wait)(locker, (size_t)1, src_file, src_line);
602 const char *format, ...)
603 MY_ATTRIBUTE((format(printf, 2, 3)));
606 const
char *format, ...) {
612#ifdef HAVE_PSI_FILE_INTERFACE
617 if (
likely(locker !=
nullptr)) {
618 PSI_FILE_CALL(start_file_wait)(locker, (size_t)0, __FILE__, __LINE__);
619 va_start(args, format);
620 result = vfprintf(
file->m_file, format, args);
627 va_start(args, format);
628 result = vfprintf(
file->m_file, format, args);
635 const char *src_file,
uint src_line,
638#ifdef HAVE_PSI_FILE_INTERFACE
639 MY_ATTRIBUTE((format(printf, 4, 0)));
641 MY_ATTRIBUTE((format(printf, 2, 0)));
646 const char *src_file,
uint src_line,
650#ifdef HAVE_PSI_FILE_INTERFACE
655 if (
likely(locker !=
nullptr)) {
656 PSI_FILE_CALL(start_file_wait)(locker, (size_t)0, src_file, src_line);
657 result = vfprintf(
file->m_file, format, args);
663 result = vfprintf(
file->m_file, format, args);
669 const char *src_file,
uint src_line,
673#ifdef HAVE_PSI_FILE_INTERFACE
678 if (
likely(locker !=
nullptr)) {
679 PSI_FILE_CALL(start_file_wait)(locker, (size_t)0, src_file, src_line);
692 return feof(
file->m_file);
697 const char *src_file,
uint src_line,
699 int filenr,
MY_STAT *stat_area) {
701#ifdef HAVE_PSI_FILE_INTERFACE
704 locker =
PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, filenr,
706 if (
likely(locker !=
nullptr)) {
707 PSI_FILE_CALL(start_file_wait)(locker, (size_t)0, src_file, src_line);
724#ifdef HAVE_PSI_FILE_INTERFACE
729 if (
likely(locker !=
nullptr)) {
730 PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line);
743 const char *src_file,
uint src_line,
747#ifdef HAVE_PSI_FILE_INTERFACE
752 if (
likely(locker !=
nullptr)) {
754 (locker, (size_t)newlength, src_file, src_line);
773 if (
likely(that !=
nullptr)) {
774#ifdef HAVE_PSI_FILE_INTERFACE
779 if (
likely(locker !=
nullptr)) {
781 (locker, src_file, src_line);
792 that->
m_psi =
nullptr;
804 const char *src_file,
uint src_line,
809#ifdef HAVE_PSI_FILE_INTERFACE
814 if (
likely(locker !=
nullptr)) {
815 PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line);
831 const char *src_file,
uint src_line,
835#ifdef HAVE_PSI_FILE_INTERFACE
841 if (
likely(locker !=
nullptr)) {
860 const char *src_file,
uint src_line,
864#ifdef HAVE_PSI_FILE_INTERFACE
867 size_t bytes_written;
870 if (
likely(locker !=
nullptr)) {
889 const char *src_file,
uint src_line,
893#ifdef HAVE_PSI_FILE_INTERFACE
898 if (
likely(locker !=
nullptr)) {
899 PSI_FILE_CALL(start_file_wait)(locker, (size_t)0, src_file, src_line);
912 const char *src_file,
uint src_line,
916#ifdef HAVE_PSI_FILE_INTERFACE
921 if (
likely(locker !=
nullptr)) {
922 PSI_FILE_CALL(start_file_wait)(locker, (size_t)0, src_file, src_line);
937 const char *
filename,
int create_flags,
int access_flags,
myf myFlags) {
939#ifdef HAVE_PSI_FILE_INTERFACE
944 if (
likely(locker !=
nullptr)) {
945 PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line);
960 char *to,
const char *
dir,
const char *pfx,
int mode,
963#ifdef HAVE_PSI_FILE_INTERFACE
968 if (
likely(locker !=
nullptr)) {
969 PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line);
972 PSI_FILE_CALL(end_temp_file_open_wait_and_bind_to_descriptor)
973 (locker,
file, (
const char *)to);
988#ifdef HAVE_PSI_FILE_INTERFACE
993 if (
likely(locker !=
nullptr)) {
994 PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line);
1007 const char *src_file,
uint src_line,
1011#ifdef HAVE_PSI_FILE_INTERFACE
1016 if (
likely(locker !=
nullptr)) {
1017 PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line);
1030 const char *src_file,
uint src_line,
1034#ifdef HAVE_PSI_FILE_INTERFACE
1040 if (
likely(locker !=
nullptr)) {
1059 const char *src_file,
uint src_line,
1063#ifdef HAVE_PSI_FILE_INTERFACE
1066 size_t bytes_written;
1069 if (
likely(locker !=
nullptr)) {
1088 const char *src_file,
uint src_line,
1092#ifdef HAVE_PSI_FILE_INTERFACE
1098 if (
likely(locker !=
nullptr)) {
1117 const char *src_file,
uint src_line,
1121#ifdef HAVE_PSI_FILE_INTERFACE
1124 size_t bytes_written;
1127 if (
likely(locker !=
nullptr)) {
1146 const char *src_file,
uint src_line,
1150#ifdef HAVE_PSI_FILE_INTERFACE
1155 if (
likely(locker !=
nullptr)) {
1156 PSI_FILE_CALL(start_file_wait)(locker, (size_t)0, src_file, src_line);
1169 const char *src_file,
uint src_line,
1173#ifdef HAVE_PSI_FILE_INTERFACE
1178 if (
likely(locker !=
nullptr)) {
1179 PSI_FILE_CALL(start_file_wait)(locker, (size_t)0, src_file, src_line);
1196#ifdef HAVE_PSI_FILE_INTERFACE
1201 if (
likely(locker !=
nullptr)) {
1202 PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line);
1217 const char *from,
const char *to,
myf flags) {
1219#ifdef HAVE_PSI_FILE_INTERFACE
1224 if (
likely(locker !=
nullptr)) {
1226 (locker, (size_t)0, from, to, src_file, src_line);
1241 const char *linkname,
const char *
filename,
int create_flags,
1244#ifdef HAVE_PSI_FILE_INTERFACE
1249 if (
likely(locker !=
nullptr)) {
1250 PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line);
1252 access_flags,
flags);
1269#ifdef HAVE_PSI_FILE_INTERFACE
1274 if (
likely(locker !=
nullptr)) {
1275 PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line);
1290 const char *from,
const char *to,
myf flags) {
1292#ifdef HAVE_PSI_FILE_INTERFACE
1297 if (
likely(locker !=
nullptr)) {
1299 (locker, (size_t)0, from, to, src_file, src_line);
1312 const char *src_file,
uint src_line,
1316#ifdef HAVE_PSI_FILE_INTERFACE
1319 locker =
PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, fd,
1321 if (
likely(locker !=
nullptr)) {
1322 PSI_FILE_CALL(start_file_wait)(locker, (size_t)0, src_file, src_line);
#define PSI_FILE_CALL(M)
Definition: psi_file.h:36
int my_sync(File fd, myf my_flags)
Definition: my_sync.cc:85
int my_chsize(File fd, my_off_t newlength, int filler, myf MyFlags)
Change size of file.
Definition: my_chsize.cc:66
int my_delete_with_symlink(const char *name, myf MyFlags)
Definition: my_symlink2.cc:127
int my_rename(const char *from, const char *to, myf MyFlags)
Definition: my_rename.cc:47
File my_create(const char *FileName, int CreateFlags, int AccessFlags, myf MyFlags)
Create a new file.
Definition: my_create.cc:64
size_t my_read(File Filedes, uchar *Buffer, size_t Count, myf MyFlags)
Read a chunk of bytes from a file with retry's if needed If flag MY_FULL_IO is set then keep reading ...
Definition: my_read.cc:73
my_off_t my_fseek(FILE *stream, my_off_t pos, int whence)
Seek to position in FILE stream.
Definition: my_fstream.cc:157
my_off_t my_seek(File fd, my_off_t pos, int whence, myf MyFlags)
Seek to a position in a file.
Definition: my_seek.cc:69
File my_open(const char *filename, int Flags, myf MyFlags)
Open a file.
Definition: my_open.cc:66
File create_temp_file(char *to, const char *dir, const char *pfx, int mode, UnlinkOrKeepFile unlink_or_keep, myf MyFlags)
Definition: mf_tempfile.cc:219
my_off_t my_ftell(FILE *stream)
Portable ftell() wrapper.
Definition: my_fstream.cc:166
#define MY_NABP
Definition: my_sys.h:121
my_off_t my_tell(File fd, myf MyFlags)
Definition: my_seek.cc:94
size_t my_pread(File Filedes, uchar *Buffer, size_t Count, my_off_t offset, myf MyFlags)
Read a chunk of bytes from a file from a given position.
Definition: my_pread.cc:79
int my_delete(const char *name, myf MyFlags)
Definition: my_delete.cc:46
int my_rename_with_symlink(const char *from, const char *to, myf MyFlags)
Definition: my_symlink2.cc:154
#define MY_WME
Definition: my_sys.h:123
File my_create_with_symlink(const char *linkname, const char *filename, int createflags, int access_flags, myf MyFlags)
Definition: my_symlink2.cc:54
#define MY_FNABP
Definition: my_sys.h:120
size_t my_fwrite(FILE *stream, const uchar *Buffer, size_t Count, myf MyFlags)
Write a chunk of bytes to a FILE stream.
Definition: my_fstream.cc:103
size_t my_write(File Filedes, const uchar *Buffer, size_t Count, myf MyFlags)
Write a chunk of bytes to a file.
Definition: my_write.cc:79
int my_close(File fd, myf MyFlags)
Close a file.
Definition: my_open.cc:99
UnlinkOrKeepFile
Definition: my_sys.h:774
#define MY_FILE_ERROR
Definition: my_sys.h:116
size_t my_fread(FILE *stream, uchar *Buffer, size_t Count, myf MyFlags)
Read a chunk of bytes from a FILE stream.
Definition: my_fstream.cc:73
FILE * my_fopen(const char *filename, int Flags, myf MyFlags)
Open a file as stream.
Definition: my_fopen.cc:109
size_t my_pwrite(File Filedes, const uchar *Buffer, size_t Count, my_off_t offset, myf MyFlags)
Write a chunk of bytes to a file at a given position.
Definition: my_pread.cc:141
int my_fclose(FILE *stream, myf MyFlags)
Close a stream.
Definition: my_fopen.cc:175
struct PSI_file PSI_file
Definition: psi_file_bits.h:55
unsigned int PSI_file_key
Instrumented file key.
Definition: psi_file_bits.h:48
struct PSI_file_locker PSI_file_locker
Definition: psi_file_bits.h:62
@ PSI_FILE_OPEN
File open, as in open().
Definition: psi_file_bits.h:71
@ PSI_FILE_STREAM_CLOSE
File close, as in fclose().
Definition: psi_file_bits.h:77
@ PSI_FILE_WRITE
Generic file write, such as fputs(), fputc(), fprintf(), vfprintf(), fwrite(), write(),...
Definition: psi_file_bits.h:87
@ PSI_FILE_CHSIZE
File chsize, as in my_chsize().
Definition: psi_file_bits.h:99
@ PSI_FILE_CLOSE
File close, as in close().
Definition: psi_file_bits.h:75
@ PSI_FILE_SEEK
Generic file seek, such as fseek() or seek().
Definition: psi_file_bits.h:89
@ PSI_FILE_TELL
Generic file tell, such as ftell() or tell().
Definition: psi_file_bits.h:91
@ PSI_FILE_STREAM_OPEN
File open, as in fopen().
Definition: psi_file_bits.h:73
@ PSI_FILE_CREATE
File creation, as in create().
Definition: psi_file_bits.h:67
@ PSI_FILE_FSTAT
File stat, as in fstat().
Definition: psi_file_bits.h:97
@ PSI_FILE_RENAME
File rename, such as my_rename() or my_rename_with_symlink().
Definition: psi_file_bits.h:103
@ PSI_FILE_STAT
File stat, as in stat().
Definition: psi_file_bits.h:95
@ PSI_FILE_DELETE
File delete, such as my_delete() or my_delete_with_symlink().
Definition: psi_file_bits.h:101
@ PSI_FILE_FLUSH
File flush, as in fflush().
Definition: psi_file_bits.h:93
@ PSI_FILE_READ
Generic file read, such as fgets(), fgetc(), fread(), read(), pread().
Definition: psi_file_bits.h:82
@ PSI_FILE_SYNC
File sync, as in fsync() or my_sync().
Definition: psi_file_bits.h:105
static int inline_mysql_file_fclose(const char *src_file, uint src_line, MYSQL_FILE *file, myf flags)
Definition: mysql_file.h:802
static int inline_mysql_file_delete_with_symlink(PSI_file_key key, const char *src_file, uint src_line, const char *name, myf flags)
Definition: mysql_file.h:1263
static File inline_mysql_file_open(PSI_file_key key, const char *src_file, uint src_line, const char *filename, int flags, myf myFlags)
Definition: mysql_file.h:982
static int inline_mysql_file_chsize(const char *src_file, uint src_line, File file, my_off_t newlength, int filler, myf flags)
Definition: mysql_file.h:741
static size_t inline_mysql_file_pread(const char *src_file, uint src_line, File file, uchar *buffer, size_t count, my_off_t offset, myf flags)
Definition: mysql_file.h:1086
static size_t inline_mysql_file_fwrite(const char *src_file, uint src_line, MYSQL_FILE *file, const uchar *buffer, size_t count, myf flags)
Definition: mysql_file.h:858
static File inline_mysql_file_create_temp(PSI_file_key key, const char *src_file, uint src_line, char *to, const char *dir, const char *pfx, int mode, UnlinkOrKeepFile unlink_or_keep, myf myFlags)
Definition: mysql_file.h:956
static my_off_t inline_mysql_file_seek(const char *src_file, uint src_line, File file, my_off_t pos, int whence, myf flags)
Definition: mysql_file.h:1144
static File inline_mysql_file_create(PSI_file_key key, const char *src_file, uint src_line, const char *filename, int create_flags, int access_flags, myf myFlags)
Definition: mysql_file.h:933
static int inline_mysql_file_rename_with_symlink(PSI_file_key key, const char *src_file, uint src_line, const char *from, const char *to, myf flags)
Definition: mysql_file.h:1286
static MYSQL_FILE * inline_mysql_file_fopen(PSI_file_key key, const char *src_file, uint src_line, const char *filename, int flags, myf myFlags)
Definition: mysql_file.h:765
static int inline_mysql_file_vfprintf(const char *src_file, uint src_line, MYSQL_FILE *file, const char *format, va_list args)
Definition: mysql_file.h:644
static size_t inline_mysql_file_write(const char *src_file, uint src_line, File file, const uchar *buffer, size_t count, myf flags)
Definition: mysql_file.h:1057
static int inline_mysql_file_delete(PSI_file_key key, const char *src_file, uint src_line, const char *name, myf flags)
Definition: mysql_file.h:1190
static File inline_mysql_file_create_with_symlink(PSI_file_key key, const char *src_file, uint src_line, const char *linkname, const char *filename, int create_flags, int access_flags, myf flags)
Definition: mysql_file.h:1237
static int inline_mysql_file_close(const char *src_file, uint src_line, File file, myf flags)
Definition: mysql_file.h:1005
static int inline_mysql_file_fputs(const char *src_file, uint src_line, const char *str, MYSQL_FILE *file)
Definition: mysql_file.h:553
static my_off_t inline_mysql_file_tell(const char *src_file, uint src_line, File file, myf flags)
Definition: mysql_file.h:1167
static MY_STAT * inline_mysql_file_stat(PSI_file_key key, const char *src_file, uint src_line, const char *path, MY_STAT *stat_area, myf flags)
Definition: mysql_file.h:718
static size_t inline_mysql_file_read(const char *src_file, uint src_line, File file, uchar *buffer, size_t count, myf flags)
Definition: mysql_file.h:1028
static int inline_mysql_file_rename(PSI_file_key key, const char *src_file, uint src_line, const char *from, const char *to, myf flags)
Definition: mysql_file.h:1213
static size_t inline_mysql_file_pwrite(const char *src_file, uint src_line, File file, const uchar *buffer, size_t count, my_off_t offset, myf flags)
Definition: mysql_file.h:1115
static int inline_mysql_file_fprintf(MYSQL_FILE *file, const char *format,...)
Definition: mysql_file.h:605
static my_off_t inline_mysql_file_fseek(const char *src_file, uint src_line, MYSQL_FILE *file, my_off_t pos, int whence)
Definition: mysql_file.h:887
static void inline_mysql_file_register(const char *category, PSI_file_info *info, int count)
Definition: mysql_file.h:494
static int inline_mysql_file_fstat(const char *src_file, uint src_line, int filenr, MY_STAT *stat_area)
Definition: mysql_file.h:695
static size_t inline_mysql_file_fread(const char *src_file, uint src_line, MYSQL_FILE *file, uchar *buffer, size_t count, myf flags)
Definition: mysql_file.h:829
static my_off_t inline_mysql_file_ftell(const char *src_file, uint src_line, MYSQL_FILE *file)
Definition: mysql_file.h:910
static int inline_mysql_file_fgetc(const char *src_file, uint src_line, MYSQL_FILE *file)
Definition: mysql_file.h:530
static int inline_mysql_file_fputc(const char *src_file, uint src_line, char c, MYSQL_FILE *file)
Definition: mysql_file.h:578
static int inline_mysql_file_fflush(const char *src_file, uint src_line, MYSQL_FILE *file)
Definition: mysql_file.h:667
static int inline_mysql_file_sync(const char *src_file, uint src_line, File fd, myf flags)
Definition: mysql_file.h:1310
static char * inline_mysql_file_fgets(const char *src_file, uint src_line, char *str, int size, MYSQL_FILE *file)
Definition: mysql_file.h:507
static int inline_mysql_file_feof(MYSQL_FILE *file)
Definition: mysql_file.h:690
static int flags[50]
Definition: hp_test1.cc:40
static const char * whence(const Item_field *cached_field)
Get the name of the cached field of an Item_cache_json instance.
Definition: item.cc:9911
constexpr bool likely(bool expr)
Definition: my_compiler.h:55
constexpr bool unlikely(bool expr)
Definition: my_compiler.h:56
int my_fstat(int filenr, MY_STAT *stat_area)
Definition: my_lib.cc:293
#define MY_STAT
Definition: my_dir.h:71
MY_STAT * my_stat(const char *path, MY_STAT *stat_area, myf my_flags)
Definition: my_lib.cc:303
int myf
Definition: my_inttypes.h:94
ulonglong my_off_t
Definition: my_inttypes.h:72
unsigned char uchar
Definition: my_inttypes.h:52
#define MYF(v)
Definition: my_inttypes.h:97
int File
Definition: my_io_bits.h:51
void * my_malloc(PSI_memory_key key, size_t size, int flags)
Allocates size bytes of memory.
Definition: my_memory.cc:57
void my_free(void *ptr)
Frees the memory pointed by the ptr.
Definition: my_memory.cc:81
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
#define HAVE_PSI_FILE_INTERFACE
Definition: my_psi_config.h:104
Common header for many mysys elements.
static int count
Definition: myisam_ftdump.cc:43
static char * path
Definition: mysqldump.cc:137
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1052
const std::string FILE("FILE")
std::string dir
Double write files location.
Definition: buf0dblwr.cc:77
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:420
static const char * category
Definition: sha2_password.cc:170
mode
Definition: file_handle.h:60
const char * filename
Definition: pfs_example_component_population.cc:67
Performance schema instrumentation (declarations).
struct result result
Definition: result.h:34
Performance schema instrumentation interface.
required string key
Definition: replication_asynchronous_connection_failover.proto:60
case opt name
Definition: sslopt-case.h:33
An instrumented FILE structure.
Definition: mysql_file.h:483
FILE * m_file
The real file.
Definition: mysql_file.h:485
struct PSI_file * m_psi
The instrumentation hook.
Definition: mysql_file.h:491
File instrument information.
Definition: psi_file_bits.h:114
State data storage for get_thread_file_name_locker_v1_t.
Definition: psi_file_bits.h:146
unsigned int uint
Definition: uca9-dump.cc:75
#define PSI_NOT_INSTRUMENTED
Definition: validate_password_imp.cc:42