33#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
39#define PSI_TABLE_CALL(M) psi_table_service->M
60#ifdef HAVE_PSI_TABLE_INTERFACE
61#define MYSQL_TABLE_WAIT_VARIABLES(LOCKER, STATE) \
62 struct PSI_table_locker *LOCKER; \
63 PSI_table_locker_state STATE;
65#define MYSQL_TABLE_WAIT_VARIABLES(LOCKER, STATE)
79#ifdef HAVE_PSI_TABLE_INTERFACE
80#define MYSQL_START_TABLE_LOCK_WAIT(LOCKER, STATE, PSI, OP, FLAGS) \
81 LOCKER = inline_mysql_start_table_lock_wait(STATE, PSI, OP, FLAGS, __FILE__, \
84#define MYSQL_START_TABLE_LOCK_WAIT(LOCKER, STATE, PSI, OP, FLAGS) \
96#ifdef HAVE_PSI_TABLE_INTERFACE
97#define MYSQL_END_TABLE_LOCK_WAIT(LOCKER) \
98 inline_mysql_end_table_lock_wait(LOCKER)
100#define MYSQL_END_TABLE_LOCK_WAIT(LOCKER) \
105#ifdef HAVE_PSI_TABLE_INTERFACE
106#define MYSQL_UNLOCK_TABLE(T) inline_mysql_unlock_table(T)
108#define MYSQL_UNLOCK_TABLE(T) \
113#ifdef HAVE_PSI_TABLE_INTERFACE
122 if (psi !=
nullptr) {
137 if (locker !=
nullptr) {
143 if (
table !=
nullptr) {
#define PSI_TABLE_CALL(M)
Definition: psi_table.h:35
struct PSI_table_locker PSI_table_locker
Definition: psi_table_bits.h:42
PSI_table_lock_operation
Lock operation performed on an instrumented table.
Definition: psi_table_bits.h:109
struct PSI_table PSI_table
Definition: psi_table_bits.h:106
static void inline_mysql_unlock_table(struct PSI_table *table)
Definition: mysql_table.h:142
static void inline_mysql_end_table_lock_wait(struct PSI_table_locker *locker)
Instrumentation calls for MYSQL_END_TABLE_LOCK_WAIT.
Definition: mysql_table.h:135
static struct PSI_table_locker * inline_mysql_start_table_lock_wait(PSI_table_locker_state *state, struct PSI_table *psi, enum PSI_table_lock_operation op, ulong flags, const char *src_file, int src_line)
Instrumentation calls for MYSQL_START_TABLE_LOCK_WAIT.
Definition: mysql_table.h:118
static int flags[50]
Definition: hp_test1.cc:39
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
Performance schema instrumentation (declarations).
Performance schema instrumentation interface.
State data storage for start_table_io_wait_v1_t, start_table_lock_wait_v1_t.
Definition: psi_table_bits.h:68