34#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
40#define PSI_TABLE_CALL(M) psi_table_service->M
61#ifdef HAVE_PSI_TABLE_INTERFACE
62#define MYSQL_TABLE_WAIT_VARIABLES(LOCKER, STATE) \
63 struct PSI_table_locker *LOCKER; \
64 PSI_table_locker_state STATE;
66#define MYSQL_TABLE_WAIT_VARIABLES(LOCKER, STATE)
80#ifdef HAVE_PSI_TABLE_INTERFACE
81#define MYSQL_START_TABLE_LOCK_WAIT(LOCKER, STATE, PSI, OP, FLAGS) \
82 LOCKER = inline_mysql_start_table_lock_wait(STATE, PSI, OP, FLAGS, __FILE__, \
85#define MYSQL_START_TABLE_LOCK_WAIT(LOCKER, STATE, PSI, OP, FLAGS) \
97#ifdef HAVE_PSI_TABLE_INTERFACE
98#define MYSQL_END_TABLE_LOCK_WAIT(LOCKER) \
99 inline_mysql_end_table_lock_wait(LOCKER)
101#define MYSQL_END_TABLE_LOCK_WAIT(LOCKER) \
106#ifdef HAVE_PSI_TABLE_INTERFACE
107#define MYSQL_UNLOCK_TABLE(T) inline_mysql_unlock_table(T)
109#define MYSQL_UNLOCK_TABLE(T) \
114#ifdef HAVE_PSI_TABLE_INTERFACE
123 if (psi !=
nullptr) {
138 if (locker !=
nullptr) {
144 if (
table !=
nullptr) {
#define PSI_TABLE_CALL(M)
Definition: psi_table.h:36
struct PSI_table_locker PSI_table_locker
Definition: psi_table_bits.h:43
PSI_table_lock_operation
Lock operation performed on an instrumented table.
Definition: psi_table_bits.h:110
struct PSI_table PSI_table
Definition: psi_table_bits.h:107
static void inline_mysql_unlock_table(struct PSI_table *table)
Definition: mysql_table.h:143
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:136
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:119
static int flags[50]
Definition: hp_test1.cc:40
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
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:69