36#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
42#define PSI_SP_CALL(M) psi_statement_service->M
58#ifdef HAVE_PSI_SP_INTERFACE
59#define MYSQL_START_SP(STATE, SP_SHARE) inline_mysql_start_sp(STATE, SP_SHARE)
61#define MYSQL_START_SP(STATE, SP_SHARE) NULL
69#ifdef HAVE_PSI_SP_INTERFACE
70#define MYSQL_END_SP(LOCKER) inline_mysql_end_sp(LOCKER)
72#define MYSQL_END_SP(LOCKER) \
86#ifdef HAVE_PSI_SP_INTERFACE
87#define MYSQL_DROP_SP(OT, SN, SNL, ON, ONL) \
88 inline_mysql_drop_sp(OT, SN, SNL, ON, ONL)
90#define MYSQL_DROP_SP(OT, SN, SNL, ON, ONL) \
105#ifdef HAVE_PSI_SP_INTERFACE
106#define MYSQL_GET_SP_SHARE(OT, SN, SNL, ON, ONL) \
107 inline_mysql_get_sp_share(OT, SN, SNL, ON, ONL)
109#define MYSQL_GET_SP_SHARE(OT, SN, SNL, ON, ONL) NULL
112#ifdef HAVE_PSI_SP_INTERFACE
119 if (
likely(locker !=
nullptr)) {
125 uint shcema_name_length,
126 const char *object_name,
127 uint object_name_length) {
129 (sp_type, schema_name, shcema_name_length, object_name, object_name_length);
133 const char *schema_name,
134 uint shcema_name_length,
135 const char *object_name,
136 uint object_name_length) {
137 return PSI_SP_CALL(get_sp_share)(sp_type, schema_name, shcema_name_length,
138 object_name, object_name_length);
struct PSI_sp_locker PSI_sp_locker
Definition: psi_statement_bits.h:125
struct PSI_sp_share PSI_sp_share
Definition: psi_statement_bits.h:118
static void inline_mysql_end_sp(PSI_sp_locker *locker)
Definition: mysql_sp.h:118
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:124
static struct PSI_sp_locker * inline_mysql_start_sp(PSI_sp_locker_state *state, PSI_sp_share *sp_share)
Definition: mysql_sp.h:113
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:132
constexpr bool likely(bool expr)
Definition: my_compiler.h:54
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
#define PSI_SP_CALL(M)
Definition: mysql_sp.h:42
Performance schema instrumentation (declarations).
Performance schema instrumentation interface.
Definition: psi_statement_bits.h:254
unsigned int uint
Definition: uca9-dump.cc:74