MySQL 8.0.39
Source Code Documentation
Collaboration diagram for Stored Program Instrumentation (API):

Macros

#define MYSQL_START_SP(STATE, SP_SHARE)   inline_mysql_start_sp(STATE, SP_SHARE)
 Instrument a stored program execution start. More...
 
#define MYSQL_END_SP(LOCKER)   inline_mysql_end_sp(LOCKER)
 Instrument a stored program execution end. More...
 
#define MYSQL_DROP_SP(OT, SN, SNL, ON, ONL)    inline_mysql_drop_sp(OT, SN, SNL, ON, ONL)
 Instrument a drop stored program event. More...
 
#define MYSQL_GET_SP_SHARE(OT, SN, SNL, ON, ONL)    inline_mysql_get_sp_share(OT, SN, SNL, ON, ONL)
 Instrument a stored program share. More...
 

Functions

static struct PSI_sp_lockerinline_mysql_start_sp (PSI_sp_locker_state *state, PSI_sp_share *sp_share)
 
static void inline_mysql_end_sp (PSI_sp_locker *locker)
 
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)
 
static PSI_sp_shareinline_mysql_get_sp_share (uint sp_type, const char *schema_name, uint shcema_name_length, const char *object_name, uint object_name_length)
 

Detailed Description

Macro Definition Documentation

◆ MYSQL_DROP_SP

#define MYSQL_DROP_SP (   OT,
  SN,
  SNL,
  ON,
  ONL 
)     inline_mysql_drop_sp(OT, SN, SNL, ON, ONL)

Instrument a drop stored program event.

Parameters
OTObject type
SNSchema name
SNLSchema name length
ONObject name
ONLObject name length

◆ MYSQL_END_SP

#define MYSQL_END_SP (   LOCKER)    inline_mysql_end_sp(LOCKER)

Instrument a stored program execution end.

Parameters
LOCKEREvent locker

◆ MYSQL_GET_SP_SHARE

#define MYSQL_GET_SP_SHARE (   OT,
  SN,
  SNL,
  ON,
  ONL 
)     inline_mysql_get_sp_share(OT, SN, SNL, ON, ONL)

Instrument a stored program share.

Parameters
OTObject type
SNSchema name
SNLSchema name length
ONObject name
ONLObject name length
Returns
The instrumented stored program share.

◆ MYSQL_START_SP

#define MYSQL_START_SP (   STATE,
  SP_SHARE 
)    inline_mysql_start_sp(STATE, SP_SHARE)

Instrument a stored program execution start.

Parameters
STATEEvent state data
SP_SHAREStored Program share instrumentation
Returns
An event locker

Function Documentation

◆ inline_mysql_drop_sp()

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 
)
inlinestatic

◆ inline_mysql_end_sp()

static void inline_mysql_end_sp ( PSI_sp_locker locker)
inlinestatic

◆ inline_mysql_get_sp_share()

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 
)
inlinestatic

◆ inline_mysql_start_sp()

static struct PSI_sp_locker * inline_mysql_start_sp ( PSI_sp_locker_state state,
PSI_sp_share sp_share 
)
inlinestatic