24#ifndef COMPONENTS_SERVICES_BITS_PSI_MUTEX_BITS_H
25#define COMPONENTS_SERVICES_BITS_PSI_MUTEX_BITS_H
59#define PSI_MUTEX_VERSION_1 1
66#define PSI_CURRENT_MUTEX_VERSION 1
159 const void *identity);
PSI_mutex_operation
Operation performed on an instrumented mutex.
Definition: psi_mutex_bits.h:108
void(* end_mutex_wait_v1_t)(struct PSI_mutex_locker *locker, int rc)
Record a mutex instrumentation wait end event.
Definition: psi_mutex_bits.h:191
struct PSI_mutex_locker PSI_mutex_locker
Definition: psi_mutex_bits.h:105
unsigned int PSI_mutex_key
Instrumented mutex key.
Definition: psi_mutex_bits.h:52
void(* destroy_mutex_v1_t)(struct PSI_mutex *mutex)
Mutex instrumentation destruction API.
Definition: psi_mutex_bits.h:165
void(* register_mutex_v1_t)(const char *category, struct PSI_mutex_info_v1 *info, int count)
Mutex registration API.
Definition: psi_mutex_bits.h:149
void(* unlock_mutex_v1_t)(struct PSI_mutex *mutex)
Record a mutex instrumentation unlock event.
Definition: psi_mutex_bits.h:171
PSI_mutex_info_v1 PSI_mutex_info
Definition: psi_mutex_bits.h:194
@ PSI_MUTEX_TRYLOCK
Lock attempt.
Definition: psi_mutex_bits.h:112
@ PSI_MUTEX_LOCK
Lock.
Definition: psi_mutex_bits.h:110
struct PSI_thread PSI_thread
Definition: psi_thread_bits.h:82
static int count
Definition: myisam_ftdump.cc:43
static const char * category
Definition: sha2_password.cc:170
Performance schema instrumentation interface.
required string key
Definition: replication_asynchronous_connection_failover.proto:60
Instrumented artifact.
Definition: psi_bits.h:177
Mutex information.
Definition: psi_mutex_bits.h:73
unsigned int m_flags
The flags of the mutex to register.
Definition: psi_mutex_bits.h:86
int m_volatility
Volatility index.
Definition: psi_mutex_bits.h:88
const char * m_name
The name of the mutex to register.
Definition: psi_mutex_bits.h:81
const char * m_documentation
Documentation.
Definition: psi_mutex_bits.h:90
PSI_mutex_key * m_key
Pointer to the key assigned to the registered mutex.
Definition: psi_mutex_bits.h:77
State data storage for start_mutex_wait_v1_t.
Definition: psi_mutex_bits.h:125
unsigned int m_flags
Internal state.
Definition: psi_mutex_bits.h:127
enum PSI_mutex_operation m_operation
Current operation.
Definition: psi_mutex_bits.h:129
struct PSI_mutex * m_mutex
Current mutex.
Definition: psi_mutex_bits.h:131
void * m_wait
Internal data.
Definition: psi_mutex_bits.h:139
struct PSI_thread * m_thread
Current thread.
Definition: psi_mutex_bits.h:133
unsigned long long(* m_timer)(void)
Timer function.
Definition: psi_mutex_bits.h:137
unsigned long long m_timer_start
Timer start.
Definition: psi_mutex_bits.h:135
Interface for an instrumented mutex.
Definition: psi_mutex_bits.h:97