23#ifndef PFS_MUTEX_PROVIDER_H
24#define PFS_MUTEX_PROVIDER_H
36#ifdef HAVE_PSI_MUTEX_INTERFACE
37#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
38#ifndef MYSQL_DYNAMIC_PLUGIN
39#ifndef WITH_LOCK_ORDER
45#define PSI_MUTEX_CALL(M) pfs_##M##_v1
57 const char *src_file, uint src_line);
PSI_mutex_operation
Operation performed on an instrumented mutex.
Definition: psi_mutex_bits.h:107
struct PSI_mutex_locker PSI_mutex_locker
Definition: psi_mutex_bits.h:104
unsigned int PSI_mutex_key
Instrumented mutex key.
Definition: psi_mutex_bits.h:51
Some integer typedefs for easier portability.
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
static int count
Definition: myisam_ftdump.cc:44
static const char * category
Definition: sha2_password.cc:169
void pfs_destroy_mutex_v1(PSI_mutex *mutex)
Implementation of the mutex instrumentation interface.
Definition: pfs.cc:2659
void pfs_end_mutex_wait_v1(PSI_mutex_locker *locker, int rc)
Implementation of the mutex instrumentation interface.
Definition: pfs.cc:5056
void pfs_register_mutex_v1(const char *category, PSI_mutex_info_v1 *info, int count)
Implementation of the mutex instrumentation interface.
Definition: pfs.cc:2424
PSI_mutex * pfs_init_mutex_v1(PSI_mutex_key key, const void *identity)
Implementation of the mutex instrumentation interface.
Definition: pfs.cc:2639
void pfs_unlock_mutex_v1(PSI_mutex *mutex)
Implementation of the mutex instrumentation interface.
Definition: pfs.cc:4764
PSI_mutex_locker * pfs_start_mutex_wait_v1(PSI_mutex_locker_state *state, PSI_mutex *mutex, PSI_mutex_operation op, const char *src_file, uint src_line)
Implementation of the mutex instrumentation interface.
Definition: pfs.cc:3726
Performance schema instrumentation interface.
required string key
Definition: replication_asynchronous_connection_failover.proto:59
Mutex information.
Definition: psi_mutex_bits.h:72
State data storage for start_mutex_wait_v1_t.
Definition: psi_mutex_bits.h:124
Interface for an instrumented mutex.
Definition: psi_mutex_bits.h:96