37#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
43#define PSI_SP_CALL(M) psi_statement_service->M
59#ifdef HAVE_PSI_SP_INTERFACE
60#define MYSQL_START_SP(STATE, SP_SHARE) inline_mysql_start_sp(STATE, SP_SHARE)
62#define MYSQL_START_SP(STATE, SP_SHARE) NULL
70#ifdef HAVE_PSI_SP_INTERFACE
71#define MYSQL_END_SP(LOCKER) inline_mysql_end_sp(LOCKER)
73#define MYSQL_END_SP(LOCKER) \
87#ifdef HAVE_PSI_SP_INTERFACE
88#define MYSQL_DROP_SP(OT, SN, SNL, ON, ONL) \
89 inline_mysql_drop_sp(OT, SN, SNL, ON, ONL)
91#define MYSQL_DROP_SP(OT, SN, SNL, ON, ONL) \
106#ifdef HAVE_PSI_SP_INTERFACE
107#define MYSQL_GET_SP_SHARE(OT, SN, SNL, ON, ONL) \
108 inline_mysql_get_sp_share(OT, SN, SNL, ON, ONL)
110#define MYSQL_GET_SP_SHARE(OT, SN, SNL, ON, ONL) NULL
113#ifdef HAVE_PSI_SP_INTERFACE
120 if (
likely(locker !=
nullptr)) {
126 uint shcema_name_length,
127 const char *object_name,
128 uint object_name_length) {
130 (sp_type, schema_name, shcema_name_length, object_name, object_name_length);
134 const char *schema_name,
135 uint shcema_name_length,
136 const char *object_name,
137 uint object_name_length) {
138 return PSI_SP_CALL(get_sp_share)(sp_type, schema_name, shcema_name_length,
139 object_name, object_name_length);
struct PSI_sp_locker PSI_sp_locker
Definition: psi_statement_bits.h:126
struct PSI_sp_share PSI_sp_share
Definition: psi_statement_bits.h:119
static void inline_mysql_end_sp(PSI_sp_locker *locker)
Definition: mysql_sp.h:119
static void inline_mysql_drop_sp(uint sp_type, const char *schema_name, uint shcema_name_length, const char *object_name, uint object_name_length)
Definition: mysql_sp.h:125
static struct PSI_sp_locker * inline_mysql_start_sp(PSI_sp_locker_state *state, PSI_sp_share *sp_share)
Definition: mysql_sp.h:114
static PSI_sp_share * inline_mysql_get_sp_share(uint sp_type, const char *schema_name, uint shcema_name_length, const char *object_name, uint object_name_length)
Definition: mysql_sp.h:133
constexpr bool likely(bool expr)
Definition: my_compiler.h:55
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
#define PSI_SP_CALL(M)
Definition: mysql_sp.h:43
Performance schema instrumentation (declarations).
Performance schema instrumentation interface.
Definition: psi_statement_bits.h:255
unsigned int uint
Definition: uca9-dump.cc:75