Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/include/mysql/psi/   (MariaDB Server Version 8.1-8.4©)  Datei vom 1.9.2026 mit Größe 85 kB image not shown  

Quelle  psi.h   Sprache: C

 

/* Copyright (c) 2008, 2023, Oracle and/or its affiliates.

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License, version 2.0,
  as published by the Free Software Foundation.

  This program is also distributed with certain software (including
  but not limited to OpenSSL) that is licensed under separate terms,
  as designated in a particular file or component or in included license
  documentation.  The authors of MySQL hereby grant you an additional
  permission to link the program and your derivative works with the
  separately licensed software that they have included with MySQL.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License, version 2.0, for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software Foundation,
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */


#ifndef MYSQL_PERFORMANCE_SCHEMA_INTERFACE_H
#define MYSQL_PERFORMANCE_SCHEMA_INTERFACE_H

#ifndef MY_GLOBAL_INCLUDED
/*
  Make sure a .c or .cc file contains an include to my_global.h first.
  When this include is missing, all the #ifdef HAVE_XXX have no effect,
  and the resulting binary won't build, or won't link,
  or will crash at runtime
  since various structures will have different binary definitions.
*/

#error "You must include my_global.h in the code for the build to be correct."
#endif

/*
  If PSI_ON_BY_DFAULT is defined, assume PSI will be enabled by default and
  optimize jumps testing for PSI this case. If not, optimize the binary for
  that PSI is not enabled
*/


#ifdef PSI_ON_BY_DEFAULT
#define psi_likely(A) likely(A)
#define psi_unlikely(A) unlikely(A)
#else
#define psi_likely(A) unlikely(A)
#define psi_unlikely(A) likely(A)
#endif

#include "psi_base.h"
#include "psi_memory.h"

#ifdef _WIN32
typedef struct thread_attr pthread_attr_t;
typedef DWORD pthread_t;
#endif

/*
  MAINTAINER:
  The following pattern:
    typedef struct XYZ XYZ;
  is not needed in C++, but required for C.
*/


C_MODE_START

/** @sa MDL_key. */
struct MDL_key;
typedef struct MDL_key MDL_key;

/** @sa enum_mdl_type. */
typedef int opaque_mdl_type;

/** @sa enum_mdl_duration. */
typedef int opaque_mdl_duration;

/** @sa MDL_wait::enum_wait_status. */
typedef int opaque_mdl_status;

/** @sa enum_vio_type. */
typedef int opaque_vio_type;

struct TABLE_SHARE;

struct sql_digest_storage;

#ifdef __cplusplus
  class THD;
#else
  /*
    Phony declaration when compiling C code.
    This is ok, because the C code will never have a THD anyway.
  */

  struct opaque_THD
  {
    int dummy;
  };
  typedef struct opaque_THD THD;
#endif

/**
  @file mysql/psi/psi.h
  Performance schema instrumentation interface.

  @defgroup Instrumentation_interface Instrumentation Interface
  @{
*/


/**
  Interface for an instrumented mutex.
  This is an opaque structure.
*/

struct PSI_mutex;
typedef struct PSI_mutex PSI_mutex;

/**
  Interface for an instrumented rwlock.
  This is an opaque structure.
*/

struct PSI_rwlock;
typedef struct PSI_rwlock PSI_rwlock;

/**
  Interface for an instrumented condition.
  This is an opaque structure.
*/

struct PSI_cond;
typedef struct PSI_cond PSI_cond;

/**
  Interface for an instrumented table share.
  This is an opaque structure.
*/

struct PSI_table_share;
typedef struct PSI_table_share PSI_table_share;

/**
  Interface for an instrumented table handle.
  This is an opaque structure.
*/

struct PSI_table;
typedef struct PSI_table PSI_table;

/**
  Interface for an instrumented thread.
  This is an opaque structure.
*/

struct PSI_thread;
typedef struct PSI_thread PSI_thread;

/**
  Interface for an instrumented file handle.
   size info 
*/

struct
typedef struct PSI_file PSI_file;

/**
  Interface for an instrumented socket descriptor.
  This is an opaque structure.
*/

struct PSI_socket/*
typedef struct PSI_socket PSI_socket;

/**(  java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 67
  
  This is an opaque structure.
*/
struct PSI_prepared_stmt;
typedef struct PSI_prepared_stmt PSI_prepared_stmt;

/**
  

  This is an opaque structure.
*/
struct PSI_table_locker;
typedef struct PSI_table_locker PSI_table_locker;

/**
  Interface for an instrumented statement.
  This is an opaque structure.
*/
struct PSI_statement_locker;
typedef struct PSI_statement_locker PSI_statement_locker;

/**
  Interface for an instrumented transaction.
  This is an opaque structure.
*/
struct PSI_transaction_locker;
typedef struct PSI_transaction_locker PSI_transaction_locker;

/**
  Interface for an instrumented idle operation.
  This is an opaque structure.
*/
struct PSI_idle_locker;
typedef struct PSI_idle_locker PSI_idle_locker;

/**
  Interface for an instrumented statement digest operation.
  This is an opaque structure.
*/
struct PSI_digest_locker;
typedef struct PSI_digest_locker PSI_digest_locker;

/**
  Interface for an instrumented stored procedure share.
  This is an opaque structure.
*/
struct PSI_sp_share;
typedef struct PSI_sp_share PSI_sp_share;

/**
  Interface for an instrumented stored program.
  This is an opaque structure.
*/
struct PSI_sp_locker;
typedef struct PSI_sp_locker PSI_sp_locker;

/**
  Interface for an instrumented metadata lock.
  This is an opaque structure.
*/
struct PSI_metadata_lock;
typedef struct PSI_metadata_lock PSI_metadata_lock;

/**
  Interface for an instrumented stage progress.
  This is a public structure, for efficiency.
*/
struct PSI_stage_progress
{
  ulonglong m_work_completed;
  ulonglong m_work_estimated;
};
typedef struct PSI_stage_progress PSI_stage_progress;

/** IO operation performed on an instrumented table. */
enum PSI_table_io_operation
{
  /** Row fetch. */
  PSI_TABLE_FETCH_ROW= 0,
  /** Row write. */
  PSI_TABLE_WRITE_ROW= 1,
  /** Row update. */
  PSI_TABLE_UPDATE_ROW= 2,
  /** Row delete. */
  PSI_TABLE_DELETE_ROW= 3
};
typedef enum PSI_table_io_operation PSI_table_io_operation;

/**
  State data storage for @c start_table_io_wait_v1_t,
  @c start_table_lock_wait_v1_t.
  This structure provide temporary storage to a table locker.
  The content of this structure is considered opaque,
  the fields are only hints of what an implementation
  of the psi interface can use.
  This memory is provided by the instrumented code for performance reasons.
  @sa start_table_io_wait_v1_t
  @sa start_table_lock_wait_v1_t
*/
struct PSI_table_locker_state
{
  /** Internal state. */
  uint m_flags;
  /** Current io operation. */
  enum PSI_table_io_operation m_io_operation;
  /** Current table handle. */
  struct PSI_table *m_table;
  /* Currenttable . /
  struct PSI_table_share *m_table_share;
  /** Current thread/
  struct PSI_thread *m_thread;
  /** Timer starttypedef (*set_thread_start_time_v1_t)(time_t start_time);
  ulonglong m_timer_start;
  /** Timer function. */
  ulonglong (*m_timer)(void);
  /** Internal data. */
  void *m_wait;
  /**
    Implementation specific.
    For table io, the table io index.
    For table lock, the lock type.
  */
  uint m_index;
};
typedef struct PSI_table_locker_state PSI_table_locker_state;

/** Entry point for the performance schema interface. */
struct PSI_bootstrap
{
  /**
    ABI interface finder.
    Calling this method with an interface version number returns either
    an instance of the ABI for this version, or NULL.
    @param version the interface version number to find
    @return a versioned interface (PSI_v1, PSI_v2 or PSI)
    @sa PSI_VERSION_1
    @sa PSI_v1
    @sa PSI_VERSION_2
    @sa PSI_v2
    @sa PSI_CURRENT_VERSION
    @sa PSI
  */
  void* (*get_interface)(int version);
};
typedef struct PSI_bootstrap PSI_bootstrap;

#ifdef HAVE_PSI_INTERFACE

#ifdef DISABLE_ALL_PSI

#ifndef DISABLE_PSI_THREAD
#define DISABLE_PSI_THREAD
#endif

#ifndef DISABLE_PSI_MUTEX
#define DISABLE_PSI_MUTEX
#endif

#ifndef DISABLE_PSI_RWLOCK
#define DISABLE_PSI_RWLOCK
#endif

#ifndef DISABLE_PSI_COND
#define DISABLE_PSI_COND
#endif

#ifndef DISABLE_PSI_FILE
#define DISABLE_PSI_FILE
#endif

#ifndef DISABLE_PSI_TABLE
#define DISABLE_PSI_TABLE
#endif

#ifndef DISABLE_PSI_SOCKET
#define DISABLE_PSI_SOCKET
#endif

#ifndef DISABLE_PSI_STAGE
#define DISABLE_PSI_STAGE
#endif

#ifndef DISABLE_PSI_STATEMENT
#define DISABLE_PSI_STATEMENT
#endif

#ifndef DISABLE_PSI_SP
#define DISABLE_PSI_SP
#endif

#ifndef DISABLE_PSI_IDLE
#define DISABLE_PSI_IDLE
#endif

#ifndef DISABLE_PSI_STATEMENT_DIGEST
#define DISABLE_PSI_STATEMENT_DIGEST
#endif

#ifndef DISABLE_PSI_METADATA
#define DISABLE_PSI_METADATA
#endif

#ifndef DISABLE_PSI_MEMORY
#define DISABLE_PSI_MEMORY
#endif

#ifndef DISABLE_PSI_TRANSACTION
#define DISABLE_PSI_TRANSACTION
#endif

#ifndef DISABLE_PSI_SP
#define DISABLE_PSI_SP
#endif

#ifndef DISABLE_PSI_PS
#define DISABLE_PSI_PS
#endif

#endif

/**
  @defAssign process infoto  thread.
  Compiling option to disable the mutex instrumentation.
  This option is mostly intended to be used during development,
  when doing special builds with only a subset of the performance schema instrumentation,
  for code analysis / profiling / performance tuning of a specific instrumentation alone.
  @sa DISABLE_PSI_RWLOCK
  @sa DISABLE_PSI_COND
  @sa DISABLE_PSI_FILE
  @sa DISABLE_PSI_THREAD
  @sa DISABLE_PSI_TABLE
  @sa DISABLE_PSI_STAGE
  @sa DISABLE_PSI_STATEMENT
  @sa DISABLE_PSI_SP
  @sa DISABLE_PSI_STATEMENT_DIGEST
  @sa DISABLE_PSI_SOCKET
  @sa DISABLE_PSI_MEMORY
  @sa DISABLE_PSI_IDLE
  saDISABLE_PSI_METADATA
  @sa DISABLE PSI_TRANSACTION
*/

  @param info_len the process into string length
#define HAVE_PSI_MUTEX_INTERFACE
#endif

/**
  @def DISABLE_PSI_RWLOCK
  Compiling option to disable the rwlock instrumentation.
  @sa DISABLE_PSI_MUTEX
*/

#ifndef DISABLE_PSI_RWLOCK
#define HAVE_PSI_RWLOCK_INTERFACE
#endif

/**
  @def DISABLE_PSI_COND
  Compiling option to disable the cond instrumentation.
  @sa DISABLE_PSI_MUTEX
*/

#ifndef DISABLE_PSI_COND
#define HAVE_PSI_COND_INTERFACE
#endif

/**
  @def DISABLE_PSI_FILE
  Compiling option to disable the file instrumentation.
  @sa DISABLE_PSI_MUTEX
*/

#ifndef DISABLE_PSI_FILE
#define HAVE_PSI_FILE_INTERFACE
#endif

/**
  @def DISABLE_PSI_THREAD
  Compiling option to disable the thread instrumentation.
  @sa DISABLE_PSI_MUTEX
*/
#ifndef DISABLE_PSI_THREAD
#define HAVE_PSI_THREAD_INTERFACE
#endif

/**
  @def DISABLE_PSI_TABLE
  Compiling option to disable the table instrumentation.
  @sa DISABLE_PSI_MUTEX
*/

#ifndef DISABLE_PSI_TABLE
#define HAVE_PSI_TABLE_INTERFACE
#endif

/**
  @def DISABLE_PSI_STAGE
  Compiling option to disable the stage instrumentation.
  @sa DISABLE_PSI_MUTEX
*/

#ifndef DISABLE_PSI_STAGE
#define HAVE_PSI_STAGE_INTERFACE
#endif

/**
  @def DISABLE_PSI_STATEMENT
  Compiling option to disable the statement instrumentation.
  @sa DISABLE_PSI_MUTEX
*/

#ifndef DISABLE_PSI_STATEMENT
#define HAVE_PSI_STATEMENT_INTERFACE
#endif

/**
  @def DISABLE_PSI_SP
  Compiling option to disable the stored program instrumentation.
  @sa DISABLE_PSI_MUTEX
*/
#ifndef DISABLE_PSI_SP
#define HAVE_PSI_SP_INTERFACE
#endif

/**
  @def DISABLE_PSI_PS
  Compiling option to disable the prepared statement instrumentation.
  @sa DISABLE_PSI_MUTEX
*/
#ifndef DISABLE_PSI_STATEMENT
#ifndef DISABLE_PSI_PS
#define HAVE_PSI_PS_INTERFACE
#endif
#endif

/**
  @def DISABLE_PSI_STATEMENT_DIGEST
  Compiling option to disable the statement digest instrumentation.
*/

#ifndef DISABLE_PSI_STATEMENT
#ifndef DISABLE_PSI_STATEMENT_DIGEST
#define HAVE_PSI_STATEMENT_DIGEST_INTERFACE
#endif
#endif

/**
  @def DISABLE_PSI_TRANSACTION
  Compiling option to disable the transaction instrumentation.
  @sa DISABLE_PSI_MUTEX
*/

#ifndef DISABLE_PSI_TRANSACTION
#define HAVE_PSI_TRANSACTION_INTERFACE
#endif

/**
  @def DISABLE_PSI_SOCKET
  Compiling option to disable the statement instrumentation.
  @sa DISABLE_PSI_MUTEX
*/

#ifndef DISABLE_PSI_SOCKET
#define HAVE_PSI_SOCKET_INTERFACE
#endif

/**
  @def DISABLE_PSI_MEMORY
  Compiling option to disable the memory instrumentation.
  @sa DISABLE_PSI_MUTEX
*/

#ifndef DISABLE_PSI_MEMORY
#define HAVE_PSI_MEMORY_INTERFACE
#endif

/**
  @def DISABLE_PSI_IDLE
  Compiling option to disable the idle instrumentation.
  @sa DISABLE_PSI_MUTEX
*/

#ifndef DISABLE_PSI_IDLE
#define HAVE_PSI_IDLE_INTERFACE
#endif

/**
  @def DISABLE_PSI_METADATA
  Compiling option to disable the metadata instrumentation.
  @sa DISABLE_PSI_MUTEX
*/

#ifndef DISABLE_PSI_METADATA
#define HAVE_PSI_METADATA_INTERFACE
#endif

/**
  @def PSI_VERSION_1
  Performance Schema Interface number for version 1.
  This version is supported.
*/
#define PSI_VERSION_1 1

/**
  @def PSI_VERSION_2
  Performance Schema Interface number for version 2.
  This version is not implemented, it's a placeholder.
*/
#define PSI_VERSION_2 2

/**
  @def PSI_CURRENT_VERSION
  Performance Schema Interface number for the most recent version.
  The most current version is @c PSI_VERSION_1
*/
#define PSI_CURRENT_VERSION 1

#ifndef USE_PSI_2
#ifndef USE_PSI_1
#define USE_PSI_1
#endif
#endif

/**
  Interface for an instrumented mutex operation.
  This is an opaque structure.
*/
struct PSI_mutex_locker;
typedef struct PSI_mutex_locker PSI_mutex_locker;

/**
  Interface for an instrumented rwlock operation.
  This is an opaque structure.
*/
struct PSI_rwlock_locker;
typedef struct PSI_rwlock_locker PSI_rwlock_locker;

/**
  Interface for an instrumented condition operation.
  This is an opaque structure.
*/
struct PSI_cond_locker;
typedef struct PSI_cond_locker PSI_cond_locker;

/**
  Interface for an instrumented file operation.
  This is an opaque structure.
*/
struct PSI_file_locker;
typedef struct PSI_file_locker PSI_file_locker;

/**
  Interface for an instrumented socket operation.
  This is an opaque structure.
*/
struct PSI_socket_locker;
typedef struct PSI_socket_locker PSI_socket_locker;

/**
  Interface for an instrumented MDL operation.
  This is an opaque structure.
*/
struct PSI_metadata_locker;
typedef struct PSI_metadata_locker PSI_metadata_locker;

/** Operation performed on an instrumented mutex. */
enum PSI_mutex_operation
{
  /** Lock. */
  PSI_MUTEX_LOCK= 0,
  /** Lock attempt. */
  PSI_MUTEX_TRYLOCK= 1
};
typedef enum PSI_mutex_operation PSI_mutex_operation;

/**
  Operation performed on an instrumented rwlock.
  For basic READ / WRITE lock,
  operations are "READ" or "WRITE".
  For SX-locks, operations are "SHARED", "SHARED-EXCLUSIVE" or "EXCLUSIVE".
*/
enum PSI_rwlock_operation
{
  /** Read lock. */
  PSI_RWLOCK_READLOCK= 0,
  /** Write lock. */
  PSI_RWLOCK_WRITELOCK= 1,
  /** Read lock attempt. */
  PSI_RWLOCK_TRYREADLOCK= 2,
  /** Write lock attempt. */
  PSI_RWLOCK_TRYWRITELOCK= 3,

  /** Shared lock. */
  PSI_RWLOCK_SHAREDLOCK= 4,
  /** Shared Exclusive lock. */
  PSI_RWLOCK_SHAREDEXCLUSIVELOCK= 5,
  /** Exclusive lock. */
  PSI_RWLOCK_EXCLUSIVELOCK= 6,
  /** Shared lock attempt. */
  PSI_RWLOCK_TRYSHAREDLOCK= 7,
  /** Shared Exclusive lock attempt. */
  PSI_RWLOCK_TRYSHAREDEXCLUSIVELOCK= 8,
  /** Exclusive lock attempt. */
  PSI_RWLOCK_TRYEXCLUSIVELOCK= 9

};
typedef enum PSI_rwlock_operation PSI_rwlock_operation;

/** Operation performed on an instrumented condition. */
enum PSI_cond_operation
{
  /** Wait. */
  PSI_COND_WAIT= 0,
  /** Wait, with timeout. */
  PSI_COND_TIMEDWAIT= 1
};
typedef enum PSI_cond_operation PSI_cond_operation;

/** Operation performed on an instrumented file. */
enum PSI_file_operation
{
  /** File creation, as in @c create(). */
  PSI_FILE_CREATE= 0,
  /** Temporary file creation, as in @c create_temp_file(). */
  PSI_FILE_CREATE_TMP= 1,
  /** File open, as in @c open(). */
  PSI_FILE_OPEN= 2,
  /** File open, as in @c fopen(). */
  PSI_FILE_STREAM_OPEN= 3,
  /** File close, as in @c close(). */
  PSI_FILE_CLOSE= 4,
  /** File close, as in @c fclose(). */
  PSI_FILE_STREAM_CLOSE= 5,
  /**
    Generic file read, such as @c fgets(), @c fgetc(), @c fread(), @c read(),
    @c pread().
  */
  PSI_FILE_READ= 6,
  /**
    Generic file write, such as @c fputs(), @c fputc(), @c fprintf(),
    @c vfprintf(), @c fwrite(), @c write(), @c pwrite().
  */
  PSI_FILE_WRITE= 7,
  /** Generic file seek, such as @c fseek() or @c seek(). */
  PSI_FILE_SEEK= 8,
  /** Generic file tell, such as @c ftell(typedef void (set_thread_info_v1_t(onstchar ,uintinfo_len;
  PSI_FILE_TELL
  /** File flush, as in @c fflush(). */
SI_FILE_FLUSH 10
  /** File stat, as in @c stat(). */
  PSI_FILE_STAT= 11,
  /** File stat, as in @c fstat(). */
  = 12,
  /** File chsize, as in @c my_chsize(). */
  PSI_FILE_CHSIZE= 13,
  /** File delete, such as @c my_delete() or
  PSI_FILE_DELETE= 14,
  /** File rename, such as @c my_rename() or @c my_rename_with_symlink(). */
  PSI_FILE_RENAME= 15,
  /** File sync, as in @c fsync() or @c my_sync(). */
  PSI_FILE_SYNC= 16
};
typedef enum PSI_file_operation PSI_file_operation;

/** Lock operation performed on an instrumented table. */
enum PSI_table_lock_operation
{
  /** Table lock, in the server layer. */
  PSI_TABLE_LOCK= 0,
  /** Table lock, in the storage engine layer. */
  PSI_TABLE_EXTERNAL_LOCK= 1
};
typedef enum PSI_table_lock_operation PSI_table_lock_operation;

/** State of an instrumented socket. */
enum PSI_socket_state
{
  /** Idle, waiting for the next command. */
  PSI_SOCKET_STATE_IDLE= 1,
  /** Active, executing a command. */
  PSI_SOCKET_STATE_ACTIVE= 2
};
typedef enum PSI_socket_state PSI_socket_state;

/** Operation performed on an instrumented socket. */
enum PSI_socket_operation
{
  /** Socket creation, as in @c socket() or @c socketpair(). */
  PSI_SOCKET_CREATE= 0,
  /** Socket connection, as in @c connect(), @c listen() and @c accept(). */
  PSI_SOCKET_CONNECT= 1,
  /** Socket bind, as in @c bind(), @c getsockname() and @c getpeername(). */
  PSI_SOCKET_BIND= 2,
  /** Socket close, as in @c shutdown(). */
  PSI_SOCKET_CLOSE= 3,
  /** Socket send, @c send(). */
  PSI_SOCKET_SEND= 4,
  /** Socket receive, @c recv(). */
  PSI_SOCKET_RECV= 5,
  /** Socket send, @c sendto(). */
  PSI_SOCKET_SENDTO= 6,
  /** Socket receive, @c recvfrom). */
  PSI_SOCKET_RECVFROM= 7,
  /** Socket send, @c sendmsg(). */
  PSI_SOCKET_SENDMSG= 8,
  /** Socket receive, @c recvmsg(). */
  PSI_SOCKET_RECVMSG= 9,
  /** Socket seek, such as @c fseek() or @c seek(). */
  PSI_SOCKET_SEEK= 10,
  /** Socket options, as in @c getsockopt() and @c setsockopt(). */
  PSI_SOCKET_OPT= 11,
  /** Socket status, as in @c sockatmark() and @c isfdtype(). */
  PSI_SOCKET_STAT= 12,
  /** Socket shutdown, as in @c shutdown(). */
  PSI_SOCKET_SHUTDOWN= 13,
  /** Socket select, as in @c select() and @c poll(). */
  PSI_SOCKET_SELECT= 14
};
typedef enum PSI_socket_operation PSI_socket_operation;

#endif
/**
  Instrumented mutex key.
  To instrument a mutex, a mutex key must be obtained using @c register_mutex.
  Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_mutex_key;

/**
  Instrumented rwlock key.
  To instrument a rwlock, a rwlock key must be obtained
  using @c register_rwlock.
  Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_rwlock_key;

/**
  Instrumented cond key.
  To instrument a condition, a condition key must be obtained
  using @c register_cond.
  Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_cond_key;

/**
  Instrumented thread key.
  To instrument a thread, a thread key must be obtained
  using @c register_thread.
  Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_thread_key;

/**
  Instrumented file key.
  To instrument a file, a file key must be obtained using @c register_file.
  Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_file_key;

/*
  Instrumented stage key.
    param name the file name
  Using a return a file locker@param state data storage for the locker
*/
typedef unsigned param mutex the mutex instrumentation

/**
  Instrumented statement key.
  To instrument a statement, a statement key must be obtained using @c register_statement.
  Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_statement_key;

/**
  Instrumented socket key.
  To instrument a socket, a socket key must be obtained using @c register_socket.
  Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_socket_key;

#ifdef HAVE_PSI_1

/**
  @defgroup Group_PSI_v1 Application Binary Interface, version 1
  @ingroup Instrumentation_interface
  @{
*/

/**
  Mutex information.
  @since PSI_VERSION_1
  This structure is used to register an instrumented mutex.
*/
struct PSI_mutex_info_v1
{
  /**
    Pointer to the key assigned to the registered mutex.
  */
  PSI_mutex_key *m_key;
  /**
    The name of the mutex to register.
  */
  const char *m_name;
  /**
    The flags of the mutex to register.
    @sa PSI_FLAG_GLOBAL
  */
  int m_flags;
};
typedef struct PSI_mutex_info_v1 PSI_mutex_info_v1;

/**
  Rwlock information.
  @since PSI_VERSION_1
  This structure is used to register an instrumented rwlock.
*/
struct PSI_rwlock_info_v1
{
  /**
    Pointer to the key assigned to the registered rwlock.
  */
  PSI_rwlock_key *m_key;
  /**
    The name of the rwlock to register.
  */
  const char *m_name;
  /**
    The flags of the rwlock to register.
    @sa PSI_FLAG_GLOBAL
  */
  int m_flags;
};
typedef struct PSI_rwlock_info_v1 PSI_rwlock_info_v1;

/**
  Condition information.
  @since PSI_VERSION_1
  This structure is used to register an instrumented cond.
*/
struct PSI_cond_info_v1
{
  /**
    Pointer to the key assigned to the registered cond.
  */
  PSI_cond_key *m_key;
  /**
    The name of the cond to register.
  */
  const char *m_name;
  /**
    The flags of the cond to register.
    @sa PSI_FLAG_GLOBAL
  */
  int m_flags;
};
typedef struct PSI_cond_info_v1 PSI_cond_info_v1;

/**
  Thread instrument information.
  @since PSI_VERSION_1
  This structure is used to register an instrumented thread.
*/
struct PSI_thread_info_v1
{
  /**
    Pointer to the key assigned to the registered thread.
  */
  PSI_thread_key *m_key;
  /**
    The name of the thread instrument to register.
  */
  const char *m_name;
  /**
    The flags of the thread to register.
    @sa PSI_FLAG_GLOBAL
  */
  int m_flags;
};
typedef struct PSI_thread_info_v1 PSI_thread_info_v1;

/**
  File instrument information.
  @since PSI_VERSION_1
  This structure is used to register an instrumented file.
*/
struct PSI_file_info_v1
{
  /**
    Pointer to the key assigned to the registered file.
  */
  PSI_file_key *m_key;
  /**
    The name of the file instrument to register.
  */
  const char *m_name;
  /**
    The flags of the file instrument to register.
    @sa PSI_FLAG_GLOBAL
  */
  int m_flags;
};
typedef struct PSI_file_info_v1 PSI_file_info_v1;

/**
  Stage instrument information.
  @since PSI_VERSION_1
  This structure is used to register an instrumented stage.
*/
struct PSI_stage_info_v1
{
  /** The registered stage key. */
  PSI_stage_key m_key;
  /** The name of the stage instrument to register. */
  const char *m_name;
  /** The flags of the stage instrument to register. */
  int m_flags;
};
typedef struct PSI_stage_info_v1 PSI_stage_info_v1;

/**
  Statement instrument information.
  @since PSI_VERSION_1
  This structure is used to register an instrumented statement.
*/
struct PSI_statement_info_v1
{
  /** The registered statement key. */
  PSI_statement_key m_key;
  /** The name of the statement instrument to register. */
  const char *m_name;
  /** The flags of the statement instrument to register. */
  int m_flags;
};
typedef struct PSI_statement_info_v1 PSI_statement_info_v1;

/**
  Socket instrument information.
  @since PSI_VERSION_1
  This structure is used to register an instrumented socket.
*/
struct PSI_socket_info_v1
{
  /**
    Pointer to the key assigned to the registered socket.
  */
  PSI_socket_key *m_key;
  /**
    The name of the socket instrument to register.
  */
  const char *m_name;
  /**
    The flags of the socket instrument to register.
    @sa PSI_FLAG_GLOBAL
  */
  int m_flags;
};
typedef struct PSI_socket_info_v1 PSI_socket_info_v1;

/**
  State data storage for @c start_idle_wait_v1_t.
  This structure provide temporary storage to an idle locker.
  The content of this structure is considered opaque,
  the fields are only hints of what an implementation
  of the psi interface can use.
  This memory is provided by the instrumented code for performance reasons.
  @sa start_idle_wait_v1_t.
*/
struct PSI_idle_locker_state_v1
{
  /** Internal state. */
  uint m_flags;
  /** Current thread. */
  struct PSI_thread *m_thread;
  /** Timer start. */
  ulonglong m_timer_start;
  /** Timer function. */
  ulonglong (*m_timer)(void);
  /** Internal data. */
  void *m_wait;
};
typedef struct PSI_idle_locker_state_v1 PSI_idle_locker_state_v1;

/**
  State data storage for @c start_mutex_wait_v1_t.
  This structure provide temporary storage to a mutex locker.
  The content of this structure is considered opaque,
  the fields are only hints of what an implementation
  of the psi interface can use.
  This memory is provided by the instrumented code for performance reasons.
  @sa start_mutex_wait_v1_t
*/
struct PSI_mutex_locker_state_v1
{
  /** Internal state. */
  uint m_flags;
  /** Current operation. */
  enum PSI_mutex_operation m_operation;
  /** Current mutex. */
  struct PSI_mutex *m_mutex;
  /** Current thread. */
  struct PSI_thread *m_thread;
  /** Timer start. */
  ulonglong m_timer_start;
  /** Timer function. */
  ulonglong (*m_timer)(void);
  /** Internal data. */
  void *m_wait;
};
typedef struct PSI_mutex_locker_state_v1 PSI_mutex_locker_state_v1;

/**
  State data storage for @c start_rwlock_rdwait_v1_t, @c start_rwlock_wrwait_v1_t.
  This structure provide temporary storage to a rwlock locker.
  The content of this structure is considered opaque,
  the fields are only hints of what an implementation
  of the psi interface can use.
  This memory is provided by the instrumented code for performance reasons.
  @sa start_rwlock_rdwait_v1_t
  @sa start_rwlock_wrwait_v1_t
*/
struct PSI_rwlock_locker_state_v1
{
  /** Internal state. */
  uint m_flags;
  /** Current operation. */
  enum PSI_rwlock_operation m_operation;
  /** Current rwlock. */
  struct PSI_rwlock *m_rwlock;
  /** Current thread. */
  struct PSI_thread *m_thread;
  /** Timer start. */
  ulonglong m_timer_start;
  /** Timer function. */
  ulonglong (*m_timer)(void);
  /** Internal data. */
  void *m_wait;
};
typedef struct PSI_rwlock_locker_state_v1 PSI_rwlock_locker_state_v1;

/**
  State data storage for @c start_cond_wait_v1_t.
  This structure provide temporary storage to a condition locker.
  The content of this structure is considered opaque,
  the fields are only hints of what an implementation
  of the psi interface can use.
  This memory is provided by the instrumented code for performance reasons.
  @sa start_cond_wait_v1_t
*/
struct PSI_cond_locker_state_v1
{
  /** Internal state. */
  uint m_flags;
  /** Current operation. */
  enum PSI_cond_operation m_operation;
  /** Current condition. */
  struct PSI_cond *m_cond;
  /** Current mutex. */
  struct PSI_mutex *m_mutex;
  /** Current thread. */
  struct PSI_thread *m_thread;
  /** Timer start. */
  ulonglong m_timer_start;
  /** Timer function. */
  ulonglong (*m_timer)(void);
  /** Internal data. */
  void *m_wait;
};
typedef struct PSI_cond_locker_state_v1 PSI_cond_locker_state_v1;

/**
  State data storage for @c get_thread_file_name_locker_v1_t.
  This structure provide temporary storage to a file locker.
  The content of this structure is considered opaque,
  the fields are only hints of what an implementation
  of the psi interface can use.
  This memory is provided by the instrumented code for performance reasons.
  @sa get_thread_file_name_locker_v1_t
  @sa get_thread_file_stream_locker_v1_t
  @sa get_thread_file_descriptor_locker_v1_t
*/
struct PSI_file_locker_state_v1
{
  /** Internal state. */
  uint m_flags;
  /** Current operation. */
  enum PSI_file_operation m_operation;
  /** Current file. */
  struct PSI_file *m_file;
  /** Current file name. */
  const char *m_name;
  /** Current file class. */
  void *m_class;
  /** Current thread. */
  struct PSI_thread *m_thread;
  /** Operation number of bytes. */
  size_t m_number_of_bytes;
  /** Timer start. */
  ulonglong m_timer_start;
  /** Timer function. */
  ulonglong (*m_timer)(void);
  /** Internal data. */
  void *m_wait;
};
typedef struct PSI_file_locker_state_v1 PSI_file_locker_state_v1;

/**
  State data storage for @c start_metadata_wait_v1_t.
  This structure provide temporary storage to a metadata locker.
  The content of this structure is considered opaque,
  the fields are only hints of what an implementation
  of the psi interface can use.
  This memory is provided by the instrumented code for performance reasons.
  @sa start_metadata_wait_v1_t
*/
struct PSI_metadata_locker_state_v1
{
  /** Internal state. */
  uint m_flags;
  /** Current metadata lock. */
  struct PSI_metadata_lock *m_metadata_lock;
  /** Current thread. */
  struct PSI_thread *m_thread;
  /** Timer start. */
  ulonglong m_timer_start;
  /** Timer function. */
  ulonglong (*m_timer)(void);
  /** Internal data. */
  void *m_wait;
};
typedef struct PSI_metadata_locker_state_v1 PSI_metadata_locker_state_v1;

/* Duplicate of NAME_LEN, to avoid dependency on mysql_com.h */
#define PSI_SCHEMA_NAME_LEN (64 * 3)

/**
  State data storage for @c get_thread_statement_locker_v1_t,
  @c get_thread_statement_locker_v1_t.
  This structure provide temporary storage to a statement locker.
  The content of this structure is considered opaque,
  the fields are only hints of what an implementation
  of the psi interface can use.
  This memory is provided by the instrumented code for performance reasons.
  @sa get_thread_statement_locker_v1_t
*/
struct PSI_statement_locker_state_v1
{
  /** Discarded flag. */
  my_bool m_discarded;
  /** In prepare flagjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
  (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  /**  @aram src_file the source file name
  uchar m_no_index_used;
  /** Metric, no good index used flag. */
  uchar m_no_good_index_used;
  /** Internal state. */
  uint m_flags;
  /** Instrumentation class. */
  void *m_class;
  /** Current thread. */
struct  *java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
  /** Timer start. */
  ulonglong m_timer_start;
  /** Timer function. */
  ulonglong (*m_timer)(void);
  /** Internal data. */
  void *m_statement;
  /** Locked time. */
  ulonglong m_lock_time;
  /** Rows sent. */
  ulonglong m_rows_sent;
  /* Rows examined */
  ulonglong m_rows_examined;
/* Metric, temporary tables on disk */
  ulong java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
*  java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  /** struct PSI_file_locker *lockerjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 40
  ulongvoid *
  /** Metric(java.lang.StringIndexOutOfBoundsException: Range [33, 25) out of bounds for length 72
  ulong m_select_full_range_join;
  /** Metric, number of select range. */
  
  /** Metric, number of /*
  ulong m_select_range_check;
  End a file instrumentationclose peration.
  ulong m_select_scan;
  /** Metric, number of sort merge passes. */
  ulong m_sort_merge_passes;
  /*Mjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 38
  ulong m_sort_range;
  /** Metric, number of sort rows. */
  ulong m_sort_rows;
  /**Metric, number of sort scans. */
  ulong m_sort_scan;
  /** Statement  @ an instrumented file andle
  const struct sql_digest_storage *
  /** Current schema name. */
  char m_schema_name[typedef void (*end_file_close_wait_v1_t)
  /** Length in bytes of @c m_schema_name. */
  uint m_schema_name_length;
  /** Statement character set number. */
  uint m_cs_number;
  PSI_sp_share *m_parent_sp_share;
  PSI_prepared_stmt *m_parent_prepared_stmt;
};
typedef struct PSI_statement_locker_state_v1 PSI_statement_locker_state_v1;

/**
  State data storage for @c get_thread_transaction_locker_v1_t,
  @c get_thread_transaction_locker_v1_t.
  This structure provide temporary storage to a transaction locker.
  The content of this structure is considered opaque,
  the fields are only hints of what an implementation
  of the psi interface can use.
  This memory is provided by the instrumented code for performance reasons.
  @sa get_thread_transaction_locker_v1_t
*/
  (struct java.lang.StringIndexOutOfBoundsException: Range [43, 25) out of bounds for length 43
{
*s*
  uint java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 32
/ . /
  void *m_class;
    PSI_file_lockercc ,
  struct PSI_thread *m_thread;
  /** Timer start. */
  ulonglong   Start anew stage, and implicitly end the java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 37
  /** Timer param src_line the source line number
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 29
  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 23
  void *m_transaction;
    ainstrumentation locker.
  my_bool   @param state data storage for the locker
  /** True if transaction is autocommit. */
  my_bool m_autocommit;
  /** Number of statements. */
  ulong   @param key the statementinstrumentation key
  /** Total number of savepoints  p charset client character set
  ulong m_savepoint_count;
  /** Number of rollback_to_savepoint. */
  ulong m_rollback_to_savepoint_count;
  /** Number of release_savepoint. */
  ulong m_release_savepoint_count  param sp_share the share
};

typedef struct PSI_transaction_locker_state_v1 PSI_transaction_locker_state_v1;

/**
  State data storage for @c start_socket_wait_v1_tlocker, or NULL
  This structure provide temporary storage to a socket locker.
  The content of this structure is considered opaque,
  the fields are only hints of what an implementation
  of the psi interface can use.
  This memory is provided by the java.lang.StringIndexOutOfBoundsException: Range [51, 45) out of bounds for length 75
  @sa start_socket_wait_v1_t
*/
struct PSI_socket_locker_state_v1
{
  /** Internal state. */
  uint m_flags;
  /** Current socket. */
  struct PSI_socket *m_socket;
  /** Current thread. */
  *
  /** typedef structPSI_statement_locker* get_thread_statement_locker_v1_t)
  size_t java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
/
  ulonglong m_timer_start;
  /*  @aram ockerthestatement locker
  ulonglong (*m_timer)(  @param count the metric increment value
  /** Current operation. */
  enum PSI_socket_operation m_operationjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
  /** Source file. */
  const char* m_src_file;
  /** Sourcejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 int m_src_line;
  /** Internal ta. /
  void *m_wait;
}  Increment a java.lang.StringIndexOutOfBoundsException: Range [50, 23) out of bounds for length 57
typedef struct   @param ount the metric  value

struct java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
*
  Increment a statement event "sort scan" metric.
  /** Current thread. */
  struct PSI_thread *m_thread;
  /** Timer start. */
  ulonglong m_timer_start;
  /** Timer function. */
  ulonglong (*m_timer)(void);
  /** Stored Procedure share. */
  PSI_sp_share* m_sp_share;
};
typedef struct PSI_sp_locker_state_v1 PSI_sp_locker_state_v1;

/* Using typedef to make reuse between PSI_v1 and PSI_v2 easier later. */

/**
  Mutex registration API.
  @param category a category name (typically a plugin name)
  @param info an array of mutex info to register
  @param count the size of the info array
*/
typedef void (*register_mutex_v1_t)
  (const char *category, struct PSI_mutex_info_v1 *info, int count);

/**
  Rwlock registration API.
  @param category a category name (typically a plugin name)
  @param info an array of rwlock info to register
  @param count the size of the info array
*/
typedef void (*register_rwlock_v1_t)
  (const char *category, struct PSI_rwlock_info_v1 *info, int count);

/**
  Cond registration API.
  @param category a category name (typically a plugin name)
  @param info an array of cond info to register
  @param count the size of the info array
*/
typedef void (*register_cond_v1_t)
  (const char *category, struct PSI_cond_info_v1 *info, int count);

/**
  Thread registration API.
  @param category a category name (typically a plugin name)
  @param info an array of thread info to register
  @param count the size of the info array
*/
typedef void (*register_thread_v1_t)
  (const char *category, struct PSI_thread_info_v1 *info, int count);

/**
  File registration API.
  @param category a category name (typically a plugin name)
  @param info an array of file info to register
  @param count the size of the   @param locker the statement locker
*/
typedef void (*register_file_v1_t)
  (const char *category, struct PSI_file_info_v1 *info, int count);

/*  @param count the metric increment value
  Stage registration API.
  */
  @param info an array of stage info to register
  @param count thetypedef void (*inc_statement_sort_scan_t)
*/
typedef void (*register_stage_v1_t)
  ( char *category, struct PSI_stage_info_v1 **info, int count);

/**
  Statement  PI.
  @param category a category name
  @param info an array of stage info to register
  @param  count  the size of the info array
*/
typedef void (*register_statement_v1_t)
  (const char *category, struct PSI_statement_info_v1 *, int ount;

/**
  Socket  Set  tatement event "no  used"java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
  @param*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
  @param info an array of socket info to register
  @param count the size of the info array
*/
typedef void (*register_socket_v1_t)
  (const char *category, struct PSI_socket_info_v1 *info, int count);

/**
  Mutex instrumentation initialisation API.
  @param key the registered mutex key
  @param identity the address of the mutex itself
  @return an instrumented mutex
*/
typedef struct PSI_mutex* (*init_mutex_v1_t)
  (PSI_mutex_key key, void *identity);

/**
  Mutex instrumentation destruction API.
  @param mutexstatement_locker *locker;
*/
typedef

/*/**
  Rwlock instrumentation   Set a statement event "no goodindex used" metric.
  @param key the registered rwlock key
  @param param locker the java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
 java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 32
*/
typedef struct PSI_rwlock* (*init_rwlock_v1_t)
  (PSI_rwlock_key key, void *identity);

/**
  Rwlock instrumentation destruction API.
  @param rwlock the rwlock to destroy
*/
typedef void (*destroy_rwlock_v1_t)(struct PSI_rwlock *rwlock);

/**
  Cond instrumentation initialisation API.
  @param key the registered key
  @param identity the address of the rwlock itself
  @return an instrumented cond
*/
typedef struct PSI_cond* (*init_cond_v1_t)
  (PSI_cond_key key, void *identity);

/**
  Cond instrumentation destruction API.
  @param cond the rcond to destroy
*/
typedef void (*destroy_cond_v1_t)(struct PSI_cond *cond);

/**
  Socket instrumentation initialisation API.
  @param key the registered socket key
  @param fd the socket descriptor
  @param addr the socket ip address
  @param addr_len length of socket ip address
  @return an instrumented socket
*/
typedef struct PSI_socket* (*init_socket_v1_t)
  (PSI_socket_key key, const my_socket *fd,
  const struct sockaddr *addr, socklen_t addr_len);

/**
  socket instrumentation destruction API.
  @param   @param statement diagnostics area.
*/
typedef void (*destroy_socket_v1_t)(struct PSI_socket *socket);

/**
  Acquire a table share instrumentation.
  @param temporary True for temporary tables
  @param share The SQL layer table share
  @return a table share instrumentation, or NULL
*/
typedef struct PSI_table_share* (*get_table_share_v1_t)
  (my_bool temporary, struct TABLE_SHARE *share);

/**
  Release a table share.
@param share he table share to release
*/
typedef void (*release_table_share_v1_t)(struct PSI_table_share *share);

/**
  Drop a table share.
  @param temporary True for temporary tables
  @param schema_name */
  @param schema_name_length the table schema name length
  @param table_name the table name
  @param table_name_length the table name length
*/
typedef void(end_statement_v1_t)
  (my_bool temporary, const char *schema_name, int schema_name_length, (tructPSI_statement_locker *ocker,void stmt_da)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
   const char *table_name, int java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 3

/**
  Open an instrumentation table handle.
  @param share the table to open
  @param identity table handle identity
  @return   @param state  storage for the locker
*/
typedef struct PSI_table* (*open_table_v1_t)
  (struct PSI_table_share *share, const void *identity);

/**
  Unbind a table handle from the current thread.
  This operation happens when an opened table is added to the open table cache.
  @paramjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 41
*/
typedef void (*unbind_table_v1_t)
 java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 28

*
 ahandle to the current thread.
  This operation happens when a table from the open table cache
  is reused for a thread.
*/
typedef PSI_table* (*rebind_table_v1_t)
  (PSI_table_share *share,   (truct PSI_transaction_locker_state_v1 *state, const void *xid,

/
  ;
  Note that the table handle is invalid after
*/
typedef void (
@aram locker hetransaction   for this event

/**
  Create(PSI_transaction_locker lockerjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
  This @param locker java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 53
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 57
 p ey  java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 55
  @param name the 
@    java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
*/
typedef void(create_file_v1_t)P
 ;

/**
  Spawn  .
  his anewthread,with
  @@java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
  
  @java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 3
  transaction event savepoint java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
  @  @  thejava.lang.StringIndexOutOfBoundsException: Range [34, 28) out of bounds for length 34
*/
  *spawn_thread_v1_t)(PSI_thread_key key,
                                 pthread_t 
java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 60
                                 void *count    actually inthe,

/*
  java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 30
 pjava.lang.StringIndexOutOfBoundsException: Range [51, 9) out of bounds for length 51
  @  Setsocket java.lang.StringIndexOutOfBoundsException: Range [43, 22) out of bounds for length 50
  @param @
  @    @aram state
*/
typedef struct PSI_thread* *( java.lang.StringIndexOutOfBoundsException: Range [57, 55) out of bounds for length 64
  (PSI_thread_key keyjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

/**
  Assign  THD toan instrumented java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  @param thread the@param socket the instrumented socket
  @param thd the sql layer THD to assign
*
typedef  @ the ocket ip address
                                    THD *thd);

/**
  Assignpaddr_len  ofaddress
  @param*
  @param id(set_socket_info_v1_t)struct *,
*/
typedef void (my_socket fd
                                   ulonglong id);

/**
  Assign the current operating system thread id to an instrumented thread.
  The operating system                                     socklen_t ddr_len)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
  /*
*/
 Bindasocket thethread owns.

/**
  Get the instrumentation for the running thread.
  @paramsocket nstrumented socket
  the thread instrumentation must have been attached to *
void (set_socket_thread_owner_v1_t)(truct*ocket;
  @return 
*/java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2

/**
  Get name of the thread, according to the (void *identity, uint stmt_id, PSI_statement_lockerjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
   thread/prefix.
*/
typedef const char* (*get_thread_class_name_v1_t)(void);

/**
  java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
/*java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
 java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 38
*/
  @paraprepared_stmt prepared statement.

/**
  Assign a user *java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
  @param typedef void (*estroy_prepared_stmt_v1_tjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
    java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
  @java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 42
  @paramtypedef void (*java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
*java.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 71
constchar*,int );

/**
  Assign a current database to the instrumented thread.
  @param db
  Pjava.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 78
*/
(set_thread_db_v1_t)constchar java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63

/**
  Assign a current command to the instrumented thread.
  @param command the current typedef oid (*nd_sp_v1_t)
*/
typedef void (*set_thread_command_v1_t)(int command);

/**
   void*)
  @param conn_type  ( ,
*/
((conn_type)


/**
java.lang.StringIndexOutOfBoundsException: Range [48, 2) out of bounds for length 49
  @param start_time/*
*/
typedef  *(start_time)

/**
  java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
@ the thread state
*/
typedef void (*set_thread_state_v1_t)(const char* state);

/**
  Assign a process info to the instrumented thread.
  paraminfothe into 
  @param    const MDL_key keyjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
*/
 opaque_mdl_duration mdl_duration,

/**
  Attach a thread instrumentation to the running thread.
  In case of thread pools, this method should be called when
  a worker thread picks a work item and runs it.
  Also, thismethod should be called if the instrumented code does not
  keep the pointer returned by @c new_thread() and relies on @c get_thread()
  instead.
  @aram hread the thread instrumentation
*/
typedef void (*set_thread_v1_t)(struct java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 18

t  *et_metadata_lock_status_v1_t)PSI_metadata_lock *java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 70
  Assign the remote (peer) port to the instrumented thread.

  @param thread    pointer to the thread instrumentation
  @param port      the remote port
*/
typedef void 
typedef void (*d)(PSI_metadata_lock *lock);

/** Delete the current thread instrumentation. */
typedef void (*delete_current_thread_v1_t)void;

/** Delete a thread instrumentation. */
typedef void (*delete_thread_v1_t)(struct PSI_thread *thread);

/**
  Get a file instrumentation locker, for opening or creating a file.
  @param state data storage for the locker
  @param key the file instrumentation key
  @param op the operation to perform
  @param name the file name
  @param identity a pointer representative of this file.
  @return a file locker, or NULL
*/
typedef struct PSI_file_locker* (*get_thread_file_name_locker_v1_t)
  (struct PSI_file_locker_state_v1 *state,
   PSI_file_key key, enum PSI_file_operation op, const char *name,
   const void *identity);

/**
  Get a file stream instrumentation locker.
  @param state data storage for the locker
  @param file the file stream to access
@o  erform
  P*java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
*Storesan rrayjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
  java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 69
  (struct                         informat
     @param  n buffer

/**
  Get a file instrumentation   @param from_cs        charset which @ is
    return tate
  @@ ajava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 42
  @param op the operation to perform
  @return aint(set_thread_connect_attrs_v1_t(  buffer  lengthjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
*/
typedef struct PSI_file_locker* (*get_thread_file_descriptor_locker_v1_t)
  (
   File file

s 
  /
  @param mutex the mutex instrumentation
*/
typedefjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
 (truct java.lang.StringIndexOutOfBoundsException: Range [28, 19) out of bounds for length 28

/**
  Record a register_mutex_v1_t;
  @param rwlock the rwlock instrumentation  **@sa . *java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
*/
typedef void (*unlock_rwlock_v1_t)
(truct PSI_rwlock *rwlock);

/**
  Record a condition instrumentation signal/*@java.lang.StringIndexOutOfBoundsException: Range [34, 9) out of bounds for length 34
 
*/
void *)
  (struct PSI_cond *cond);

/*java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
  java.lang.StringIndexOutOfBoundsException: Range [20, 8) out of bounds for length 53
  @param cond the cond instrumentation
*/
typedef void (*broadcast_cond_v1_t  * register_statement_v1_t.*java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
  (*s *java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32

/**
  Record an idle instrumentation wait start event.
 @aram java.lang.StringIndexOutOfBoundsException: Range [42, 14) out of bounds for length 42
  init_rwlock_v1_t init_rwlock;
  @param src_line the source line number
  return locker rjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
*/
typedef struct PSI_idle_locker* (*start_idle_wait_v1_t)
  (struct  destroy_rwlock_v1_t destroy_rwlock

/**
  Record an idle instrumentation wait java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 28
  @param  init_cond_v1_t  init_cond;
*/
typedef void (*end_idle_wait_v1_t)
  (struct PSI_idle_locker *locker);

/**
    /*@init_socket_v1_t. */
  @param state
  @java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  @param op the operation to perform
  @param src_filethesource ilename
  @param src_line the source line number
  @  /** @sadrop_table_share_v1_t.*
*/
typedef structjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 41
( *java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
   struct PSI_mutex *mutex/* sjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
   /*sajava.lang.StringIndexOutOfBoundsException: Range [31, 27) out of bounds for length 31
   const char *src_file,   /** @sa close_table_v1_t./

/**
java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 48
  @aram  a  locker  the running./
  @param rc the wait operation return code
*/
typedef void (*end_mutex_wait_v1_t)
  (struct PSI_mutex_locker *locker, int java.lang.StringIndexOutOfBoundsException: Range [0, 42) out of bounds for length 33

/**
  Record a rwlock instrumentation read wait start event.
*/
typedef struct PSI_rwlock_locker* (*start_rwlock_rdwait_v1_t)
  (struct PSI_rwlock_locker_state_v1 *state,
   struct PSI_rwlock *rwlock,
   enum PSI_rwlock_operation op,
   const char *src_file, uint src_line);

/**
  Record a rwlock instrumentation read wait end event.
  @param locker a thread locker for the running thread
  @param rc the wait operation return code
/
typedef  new_thread_v1_t new_thread;
  (struct PSI_rwlock_locker *locker, int rc);

/**
  Record a rwlock instrumentation write wait start event.
*/
typedef struct PSI_rwlock_locker* (*start_rwlock_wrwait_v1_t)
  (struct java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 32
   struct PSI_rwlock *rwlock,  et_thread_id_v1_t set_thread_id;
   enum PSI_rwlock_operation op,
   const char *src_file, uint src_line);

/**
  Record a rwlock instrumentation write wait end event.
  @param locker a thread locker for the running thread  * saset_thread_THD_v1_t.*java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  @param rc the wait operation return code
*/
typedef void (*end_rwlock_wrwait_v1_t)
  (struct PSI_rwlock_locker *locker, int rc);

/*
  Record a condition  set_thread_os_id_v1_t et_thread_os_id;
*/
typedef struct PSI_cond_locker* (*start_cond_wait_v1_t)
  (struct PSI_cond_locker_state_v1 *state,
   struct PSI_cond *cond,
   struct PSI_mutex *mutex,
   enum PSI_cond_operation op,
   const char *src_file, uint src_line);

/**
  Record a condition instrumentation wait end event.  /*sa  /
   get_thread_v1_t ;
  @param rc the wait operation return code
*/
typedef void (*end_cond_wait_v1_t)
  (struct PSI_cond_locker *locker, int rc);

/**
  Record a table instrumentation io wait start event.
  paramstate data storage for the locker
  @param table the instrumented table to lock
  @param op the operation to perform
  @param index the index number to lock, or 0 if not applicable
  @param src_file the source file name
  @param src_line the source line number
*/
get_thread_class_name_v1_t get_thread_class_name;
  (  /**@aset_thread_user_v1_t. */
   struct PSI_table *table,
ePSI_table_io_operation
   uint/*saset_thread_account_v1_t.*
   const char *src_file, uint src_line);

/**
  Record a table instrumentation io wait end event.
  @param locker a table locker for the running thread
  @param numrows the number of rows involved in io
*/
typedef void (*end_table_io_wait_v1_t)
  (struct PSI_table_locker *locker,
   ulonglong numrows);

/**
  Record a table instrumentation lock wait start event.
*/
typedef struct PSI_table_locker* (*start_table_lock_wait_v1_t)
   PSI_table_locker_state state,
   struct PSI_table *table,
   enum PSI_table_lock_operation op,
   ulong flags,
   const char *src_file, uint src_line);

/**
  Record a table instrumentation lock wait end event.
  @param locker a table locker for the running thread
*/
typedef void (*end_table_lock_wait_v1_t)(struct PSI_table_locker *locker);

typedef void (*unlock_table_v1_t)(struct PSI_table *table);

/**
  java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 32
   **@ajava.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [34, 1) out of bounds for length 38
  @param   set_connection_type_v1_tset_connection_type;
*/
typedef void)
  (struct PSI_file_locker *locker, const char *src_file, uint  /* @ajava.lang.StringIndexOutOfBoundsException: Range [40, 36) out of bounds for length 40

/ /*@set_thread_state_v1_t. */
  End a file instrumentation open operation, for file streams.
  @param locker the file locker.
 (NULL  indicates failure, non NULL success).
  @return an instrumented file handle
/
typedef struct PSI_file* (*end_file_open_wait_v1_t)
  (struct PSI_file_locker *locker, void *result);

/**
  End a file   set_thread_info_v1_t set_thread_info;
  @param locker the file locker.
  @param file the file number   /* @a set_thread_v1_t. */
*/
typedef void (*end_file_open_wait_and_bind_to_descriptor_v1_t)
  (struct SI_file_locker file;

/**
   afile java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 76
  plocker java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  @paramjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 75
  param filename thefile  during temporary file creation.
*/
typedef void (*end_temp_file_open_wait_and_bind_to_descriptor_v1_t)
    delete_current_thread_v1_t delete_current_thread;

/**
  Record a file instrumentation  /* @sa .*
  @param locker a file locker for the running thread
  @param count the number of bytes requested, or 0 if not applicable
  @param src_file the source file java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 35
  @param src_line the source line   /** @sa get_thread_file_name_locker_v1. *
*/
java.lang.StringIndexOutOfBoundsException: Range [12, 7) out of bounds for length 36
  (  /** @sa get_thread_file_stream_locker_v1_t. */
   const char *src_file, uint src_line);

/**
  Record a file instrumentation end event.
  Note that for file close operations, the instrumented file handle
  associated with the file (which was provided to obtain a locker)
  is invalid after this call.
  @param locker a file get_thread_file_stream_locker_v1_t get_thread_file_stream_locker;
  @param   * @a get_thread_file_descriptor_locker_v1_t /
  or 0 if get_thread_file_descriptor_locker_v1_t get_thread_file_descriptor_locker;
  @sa   /** @sa unlock_mutex_v1_t. */
  @sa get_thread_file_stream_locker
  @sa get_thread_file_descriptor_locker
*/
typedef void unlock_mutex_v1_t unlock_mutexjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  (struct PSI_file_locker *locker, size_t count);

/**
  Start a file instrumentation close operation.
   locker
  @param src_file the source java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
   line number
*/
typedef void (*start_file_close_wait_v1_t)
 (ls java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72

/**
  End a file instrumentation  /@ java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 34
  @param locker the file   java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 39
  @  /**  java.lang.StringIndexOutOfBoundsException: Range [37, 34) out of bounds for length 38
  @return   * sa .*java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
/
typedef  * @start_table_lock_wait_v1_t /
  (struct PSI_file_locker *locker, int rcstart_table_lock_wait_v1_t java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51

/**
  Rename a file instrumentation close operation  /* @a*
  .
  @param/*sa /
 new_name name of the file after rename.
  @param rc the rename operation return code /
*/
typedef void (*end_file_rename_wait_v1_t)e
  java.lang.StringIndexOutOfBoundsException: Range [40, 9) out of bounds for length 56
   ejava.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 51

/**
  Start a  * sa java.lang.StringIndexOutOfBoundsException: Range [32, 28) out of bounds for length 32
  @param key sa start_file_close_wait_v1_tjava.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40
  @  /** @sa* @aend_file_close_wait_v1_t. */
  @param src_line the  
r    
*/
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 47
/ sa .*

progress *()java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69

/** End the current stage. */
 *nd_stage_v1_t) void;

/**
  Get a statement instrumentation locker.
  @ statedata java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
  @param keythe statement java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 46
  @param charset client character set
  param theshare
  @return a statement locker, or NULL
* java.lang.StringIndexOutOfBoundsException: Range [63, 34) out of bounds for length 63
  *sa  /
  (struct java.lang.StringIndexOutOfBoundsException: Range [37, 33) out of bounds for length 37
   PSI_statement_key key, const void *inc_statement_created_tmp_tables_t inc_statement_created_tmp_tables;

/**
  Refine a statement java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 66
java.lang.StringIndexOutOfBoundsException: Range [40, 2) out of bounds for length 56
  java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 78
  @param  /*@ inc_statement_select_range.*java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
   
*/
 /*@inc_statement_select_range_check /
  (struct PSI_statement_locker *  inc_statement_select_range_check_t inc_statement_select_range_check;
   PSI_statement_key key inc_statement_sort_range_t java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 54

/**
java.lang.StringIndexOutOfBoundsException: Range [9, 2) out of bounds for length 30
  @param locker the statement locker for* sainc_statement_sort_scan.*
inc_statement_sort_scan;
  @param db_length the active database name length for java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 41
  sjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 60
 paramsrc_line  line number
*/
typedef void *start_statement_v1_t)
  (struct end_statement_v1_t. */
   const char java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 67

/**
  Set  set_transaction_gtid_v1_t./
  @param lockerjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 49
  @aramt thejava.lang.StringIndexOutOfBoundsException: Range [41, 32) out of bounds for length 45
  @  /** @s  /
*/
typedefjava.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
  ( inc_transaction_release_savepoint_v1_t 
textu java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 36

/**
  Set a statement event lock time.
  @ igest_start_v1_t. */
  @param lock_time the locked time, in 
*/
typedef void (*set_statement_lock_time_t)
  (struct PSI_statement_locker *locker, ulonglong lock_time);

/**
  Set a statement event rows sent metric.
@param  thes
  @java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 57
*/
typedef  start_sp_v1_tstart_sp;
  / s java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 27

/**
  Set a statement event rows examined metric.
  @  /** @sa drop_sp_v1_t. */
  @param count the number of rows examined
*/
pedef oid (set_statement_rows_examined_t)
  (struct PSI_statement_locker *locker, ulonglong count);

/**
  Increment a statement    java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
   statement locker
  @param count the metric increment value
*/
typedef (inc_statement_created_tmp_disk_tables_t)
  (struct PSI_statement_locker *locker, ulong ;

/**
  Increment a statement event "created tmp tables" metric.
  @param locker  the statementlocker
  @param count the metric   memory_alloc_v1_t memory_alloc
*/ sjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 33
typedef void (*java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 31
  (struct PSI_statement_locker *locker, ulong count) mjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 33

/**
  /** @sa memory_free_v1_t* sa  /
  @param locker the statement locker
  @param   memory_free_v1_t memory_free;
*/
typedef void (*inc_statement_select_full_join_t)
  (struct java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0

/**
  java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 57
   locker java.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
  @param count
*/
typedef voidjoin_t)
  (struct PSI_statement_locker *locker, ulong count);

/**
  java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 0
  @param locker the statement};
  @param count the metric increment value
*/
typedef void (*** @} (end of group Group_PSI_v1 /
  (struct PSI_statement_locker *locker, ulong count);

/**
  Increment a statement event "
  @param locker the statement locker
  @param count the metric increment value
*/
typedef void (*inc_statement_select_range_check_t)
  (struct PSI_statement_locker *locker, ulong count)java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0

/
  Increment a statement event "/**
  @param locker the statement locker
  @aramcount the metric value
*/
typedef void (*  ingroup Instrumentation_interface
  (struct PSI_statement_locker *locker, ulong count);

/**
  Increment a java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
  @aram locker  statement locker
  @param count the metric increment value
*/
typedef void (*inc_statement_sort_merge_passes_t)
  structPSI_statement_locker *locker, ulong count);

/**
  Increment a statement  This is a placeholder, this interface is not defined yet.
  @param locker the statement locker
  @param java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 2
*/
typedef void (*inc_statement_sort_range_t)
  (struct PSI_statement_locker *locker, ulong count);

/**
Increment a statement event "sort rows" metric.
  @param locker the statement locker
    int laceholderjava.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
*/
typedef void (*inc_statement_sort_rows_t)
  (struct PSI_statement_locker *locker};

/**
  Increment a /*Placeholder */
  @param locker the statement locker
  @ value
*/
ypedef (java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 53

/
  Set /*java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 18
  @java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 1
*/
 *java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 45
 locker;

/**
  Set};
  @param locker the statement locker
*/
 Placeholder/
  (struct PSI_statement_locker *lockerstruct SI_cond_info_v2

/*
  End a statement event.
  @paramlocker the statement locker
  @param stmt_da the statement diagnostics area.
  @  int laceholder;
*/
typedef void (*end_statement_v1_t)
  (struct PSI_statement_lockerjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

/**
  Get a transaction instrumentation locker.
  @param state data storage for Placeholder *
  @param xid java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  @param trxid   /* Placeholder*/
  @param isolation_level isolation  int placeholder;
  @param read_only true if transaction access mode is read-only
  @param autocommit true if transaction is java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  @return a transactionstruct PSI_file_info_v2
*/
ypedef PSI_transaction_locker (get_thread_transaction_locker_v1_tjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
( *   *java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
   ulonglong trxid};
   my_bool autocommit);

/**
  Start anew transaction event.
  @param locker the transaction locker for this event
  @
  @param java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 1
*/
typedef void (*  int placeholder
  (struct}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
   const char / java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 18

/**
{
  @param locker the transaction locker for this  /*Placeholder *
  @param xid  int placeholder;
  @param xa_state is the state of the }
*/
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
  /* Placeholder /
   const void *xid, int xa_state);

/**
  Set the state of the XA transaction.
  @ ocker the transaction locker for this event
  @param xa_state the new state of the xa
*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 45
  sPSI_idle_locker_state_v2
   int xa_state);

/**
  /*Placeholder*java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
   the transaction  for thisevent
  @param sid the sourcejava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
  @param gtid_spec thePSI_mutex_locker_state_v2
*/
typedef void (*set_transaction_gtid_v1_t)
  ction_locker *locker,
   const void *sid, const void *gtid_spec);

/**
  Set the transaction trx_id.
  @param java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
  @java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
*/
sjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 42
   
   const ulonglong *trxid)

/**
  java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
  @java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    / /
*/
void*inc_transaction_savepoints_v1_t)
  (struct PSI_transaction_locker *locker, ulong count);

/**
  Increment a transaction event rollback to savepoint count.
  @param locker the transaction locker
  @param count the increment value
*/
typedef void (*inc_transaction_rollback_to_savepoint_v1_t)
  (struct PSI_transaction_locker *locker, ulong count);

/**
  Increment a transaction event release savepoint count.
  @param locker the transaction locker
  @param count the increment value
*/
typedef void (*inc_transaction_release_savepoint_v1_t)
  (struct PSI_transaction_locker *locker, ulong count);

/**
  Commit or rollback the transaction.
  @param locker the transaction locker for this event
  @param commit true if transaction was committed, false if rolled back
*/
typedef void (*end_transaction_v1_t)
  (struct PSI_transaction_locker *locker,
   my_bool commit);

/**
  Record a socket instrumentation start event.
  @param state locker state for the running thread
  @param socket the instrumented socket
  @param op socket operation to be performed
  @param count the number of bytes requested, or 0 if not applicable
  @param src_file the source file name
  @param src_line the source line number
*/
typedef struct PSI_socket_locker* (*start_socket_wait_v1_t)
  (struct PSI_socket_locker_state_v1 *state,
   struct PSI_socket *socket,
   enum PSI_socket_operation op,
   size_t count,
   const char *src_file, uint src_line);

/**
  Record a socket instrumentation end event.
  Note that for socket close operations, the instrumented socket handle
  associated };
  is invalid after this call.
  @param locker a socket locker for the running thread
  @param count the number of bytes actually used in the operation,
  or 0 if not applicable, or -1 if the operation failed
  @sa get_thread_socket_locker
*
typedef void (*end_socket_wait_v1_t)
 ( *;

/**
    /** /
    @param socket the instrumented socket
    @param state socket state
  */
typedef void (*set_socket_state_v1_t)(struct PSI_socket *socket,
                                      enum PSI_socket_state state);

/**
  Set the socket info for an instrumented socket.
  @param socket the instrumented socket
  @param fd the socket descriptor
  @param addr the socket ip address
  @param int placeholder
*/
typedef void (*set_socket_info_v1_t)(struct PSI_socket *socket,
                                     const my_socket *fd,
                                     const struct sockaddr *addr,
                                     socklen_t addr_len);

/**
  Bind a socket to
 socket  
*/
 *set_socket_thread_owner_v1_t)struct  )

/**
    /*Placeholder */
*/
typedef PSI_prepared_stmt* (*create_prepared_stmt_v1_t)
  (void *identity, uint stmt_id, PSI_statement_locker *locker,
   const char stmt_name, size_t stmt_name_length);

/**
  destroy a prepare statement.
  @param prepared_stmt prepared statement.
*/
typedef java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
  (struct PSI_transaction_locker_state_v2

/*
  reprepare a   /** Placeholder 
  @param prepared_stmt prepared statement 
*/
typedef void (*java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 2
  (PSI_prepared_stmt *prepared_stmt);

/**
  /* Placeholder */
  @param locker a statement locker for the running thread.
  param  prepared .
*/
typedef void (*java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 1
  PSI_statement_locker * PSI_prepared_stmt*prepared_stmt;

*java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
  Set the statement text for a prepared statement event.
  @param prepared_stmt prepared statement.
  @param text the prepared statement text
  @ text_len the prepared statement text length
*/
typedef void (*set_prepared_stmt_text_v1_t)(PSI_prepared_stmt *prepared_stmt,
                                            const {
                                               ;
/**
  Get a digest locker for the }java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
  @param locker a ** @} (end of group Group_PSI_v2 *
*/
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
  (struct PSI_statement_locker *locker);

/**
  Add java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 3
  @param locker a java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 14
  @param digest The digest   The instrumentation interface the current java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
*/
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 31
  (struct PSI_digest_locker *locker, const struct java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 2

typedef PSI_sp_locker* (*java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
  (struct java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 3

  @typedefPSI_mutex_info
  (struct PSI_sp_locker *locker);

typedef void (*drop_sp_v1_t)
  (uint object_type,
   const char *schema_name, uint schema_name_length,
   const char *object_name, uint object_name_length);

/**
  Acquire a sp share instrumentation.
  @param object_type of stored program
   schema_name of program
  @param schema_name_length of stored program
  p  of stored program
  @param object_name_length of stored program
  @return a stored program share 
*/
typedef/*
  (uint object_type,
   const char *schema_name, uint schema_name_length,
   const char *object_name,   The cond information structure thecurrent .

/**
  Release a java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 2
  @param share java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/
typedef void (*release_sp_share_v1_t)(struct PSI_sp_share   @ypedef 

typedef    information structure for the current version.
  (void *identity,
   const MDL_key *key,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   /*
   opaque_mdl_status mdl_status,
    char*java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
   uint rc_line;

typedef java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 2
                                              

 ()(PSI_metadata_lock*ock)

typedef struct PSI_metadata_lockertifdef USE_PSI_1
  (struct PSI_metadata_locker_state_v1 *state,
   struct typedef truct PSI_v1 PSI;
   const char *src_file, uint src_line);

typedef void (*end_metadata_wait_v1_t)
  (struct PSI_metadata_locker *locker, int info;

/**
  Stores an array of typedef truct PSI_rwlock_info_v1 PSI_rwlock_info;
  @param buffer         char array of typedef struct PSI_cond_info_v1 PSI_cond_inf;
                        in network format
 java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 52
  @param from_cs        charset in which @typedef struct PSI_file_info_v1 PSI_file_info;
  @return state
    @retval  non_0    attributes truncated
    @etval 0        stored the ttribute
*/
typedef typedef structP PSI_statement_info;
                                              *from_cs)

/**
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 42
  @since PSI_VERSION_1
*
struct PSI_v1
{
  /** @sa register_mutex_v1_t. */
  register_mutex_v1_t register_mutex;
/java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 34
  register_rwlock_v1_t register_rwlock;
  /** @sa register_cond_v1_t. */
  register_cond_v1_t java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  * sa register_thread_v1_t *
  register_thread_v1_t typedef struct PSI_statement_locker_staPjava.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 72
  /** . /
  register_file_v1_t register_file;
  /** @sa register_stage_v1_t. */
  java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
  /* @sa egister_statement_v1_t. */
  register_statement_v1_t register_statement;
  /** @sa register_socket_v1_t. */
  register_socket_v1_t java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 6
  /
  init_mutex_v1_t init_mutex;
  /** @sa destroy_mutex_v1_t. */
  destroy_mutex_v1_t destroy_mutex;
  /** @sa init_rwlock_v1_t. */
  init_rwlock_v1_t typedef struct PSI_mutex_info_v2 ;
  /** @sa typedef struct PSI_rwlock_info_v2 PSI_rwlock_info;
  destroy_rwlock_v1_t destroy_rwlock;
  **@ init_cond_v1_t.*/
  init_cond_v1_t typedef struct PSI_thread_ijava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 50
  /** @satypedef struct PSI_stage_info_v2 PSI_stage_info;
  destroy_cond_v1_t destroy_cond;
  /** @sa init_socket_v1_t. */
 init_socket_v1_t init_socket;
  /** @sa destroy_socket_v1_t. */
  destroy_socket_v1_t destroy_socket;

  /** @typedef java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 50
java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39
  /** @typedefPjava.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 66
java.lang.StringIndexOutOfBoundsException: Range [0, 2) out of bounds for length 0
  /** @sa drop_table_share_v1_t. */
  drop_table_share_v1_t drop_table_share;
  /** @sa open_table_v1_t. */
  open_table_v1_t open_table;
  /** @sa unbind_table_v1_t. */
  unbind_table_v1_t unbind_table;
  /** @sa rebind_table_v1_t. */
  rebind_table_v1_t rebind_table;
  /** @sa close_table_v1_t. */
  close_table_v1_t close_table;
  /** @sa create_file_v1_t. */
  create_file_v1_t create_file;
  /** @sa spawn_thread_v1_t. */
  spawn_thread_v1_t spawn_thread;
  /** @sa new_thread_v1_t. */
  new_thread_v1_t new_thread;
  /** @sa set_thread_id_v1_t. */
  set_thread_id_v1_t set_thread_id;
  /** @sa set_thread_THD_v1_t. */
  set_thread_THD_v1_t set_thread_THD;
  /** @sa set_thread_os_id_v1_t. */
  set_thread_os_id_v1_t set_thread_os_id;
  /** @sa get_thread_v1_t. */
  get_thread_v1_t get_thread;
  /** @sa get_thread_name_v1_t. */
  get_thread_class_name_v1_t get_thread_class_name;
  /** @sa set_thread_user_v1_t. */
  set_thread_user_v1_t set_thread_user;
  /** @sa set_thread_account_v1_t. */
  set_thread_account_v1_t set_thread_account;
  /** @sa set_thread_db_v1_t. */
  set_thread_db_v1_t set_thread_db;
  /** @sa set_thread_command_v1_t. */
  set_thread_command_v1_t set_thread_command;
  /** @sa set_connection_type_v1_t. */
  set_connection_type_v1_t set_connection_type;
  /** @sa set_thread_start_time_v1_t. */
  set_thread_start_time_v1_t set_thread_start_time;
  /** @sa set_thread_state_v1_t. */
  set_thread_state_v1_t set_thread_state;
  /** @sa set_thread_info_v1_t. */
  set_thread_info_v1_t set_thread_info;
  /** @sa set_thread_v1_t. */
  set_thread_v1_t set_thread;
  /** @sa delete_current_thread_v1_t. */
  delete_current_thread_v1_t delete_current_thread;
  /** @sa delete_thread_v1_t. */
  delete_thread_v1_t delete_thread;
  /** @sa get_thread_file_name_locker_v1_t. */
  get_thread_file_name_locker_v1_t get_thread_file_name_locker;
  /** @sa get_thread_file_stream_locker_v1_t. */
  get_thread_file_stream_locker_v1_t get_thread_file_stream_locker;
  /** @sa get_thread_file_descriptor_locker_v1_t. */
  get_thread_file_descriptor_locker_v1_t get_thread_file_descriptor_locker;
  /** @sa unlock_mutex_v1_t. */
  unlock_mutex_v1_t unlock_mutex;
  /** @sa unlock_rwlock_v1_t. */
  unlock_rwlock_v1_t unlock_rwlock;
  /** @sa signal_cond_v1_t. */
  signal_cond_v1_t signal_cond;
  /** @sa broadcast_cond_v1_t. */
  broadcast_cond_v1_t broadcast_cond;
  /** @sa start_idle_wait_v1_t. */
  start_idle_wait_v1_t start_idle_wait;
  /** @sa end_idle_wait_v1_t. */
  end_idle_wait_v1_t end_idle_wait;
  /** @sa start_mutex_wait_v1_t. */
  start_mutex_wait_v1_t start_mutex_wait;
  /** @sa end_mutex_wait_v1_t. */
  end_mutex_wait_v1_t end_mutex_wait;
  /** @sa start_rwlock_rdwait_v1_t. */
  start_rwlock_rdwait_v1_t start_rwlock_rdwait;
  /** @sa end_rwlock_rdwait_v1_t. */
  end_rwlock_rdwait_v1_t end_rwlock_rdwait;
  /** @sa start_rwlock_wrwait_v1_t. */
  start_rwlock_wrwait_v1_t start_rwlock_wrwait;
  /** @sa end_rwlock_wrwait_v1_t. */
  end_rwlock_wrwait_v1_t end_rwlock_wrwait;
  /** @sa start_cond_wait_v1_t. */
  start_cond_wait_v1_t start_cond_wait;
  /** @sa end_cond_wait_v1_t. */
  end_cond_wait_v1_t end_cond_wait;
  /** @sa start_table_io_wait_v1_t. */
  start_table_io_wait_v1_t start_table_io_wait;
  /** @sa end_table_io_wait_v1_t. */
  end_table_io_wait_v1_t end_table_io_wait;
  /** @sa start_table_lock_wait_v1_t. */
  start_table_lock_wait_v1_t start_table_lock_wait;
  /** @sa end_table_lock_wait_v1_t. */
  end_table_lock_wait_v1_t end_table_lock_wait;
  /** @sa start_file_open_wait_v1_t. */
  start_file_open_wait_v1_t start_file_open_wait;
  /** @sa end_file_open_wait_v1_t. */
  end_file_open_wait_v1_t end_file_open_wait;
  /** @sa end_file_open_wait_and_bind_to_descriptor_v1_t. */
  end_file_open_wait_and_bind_to_descriptor_v1_t
    end_file_open_wait_and_bind_to_descriptor;
  /** @sa end_temp_file_open_wait_and_bind_to_descriptor_v1_t. */
  end_temp_file_open_wait_and_bind_to_descriptor_v1_t
    end_temp_file_open_wait_and_bind_to_descriptor;
  /** @sa start_file_wait_v1_t. */
  start_file_wait_v1_t start_file_wait;
  /** @sa end_file_wait_v1_t. */
  end_file_wait_v1_t end_file_wait;
  /** @sa start_file_close_wait_v1_t. */
  start_file_close_wait_v1_t start_file_close_wait;
  /** @sa end_file_close_wait_v1_t. */
  end_file_close_wait_v1_t end_file_close_wait;
  /** @sa rename_file_close_wait_v1_t. */
  end_file_rename_wait_v1_t end_file_rename_wait;
  /** @sa start_stage_v1_t. */
  start_stage_v1_t start_stage;
  /** @sa get_current_stage_progress_v1_t. */
  get_current_stage_progress_v1_t get_current_stage_progress;
  /** @sa end_stage_v1_t. */
  end_stage_v1_t end_stage;
  /** @sa get_thread_statement_locker_v1_t. */
  get_thread_statement_locker_v1_t get_thread_statement_locker;
  /** @sa refine_statement_v1_t. */
  refine_statement_v1_t refine_statement;
  /** @sa start_statement_v1_t. */
  start_statement_v1_t start_statement;
  /** @sa set_statement_text_v1_t. */
  set_statement_text_v1_t set_statement_text;
  /** @sa set_statement_lock_time_t. */
  set_statement_lock_time_t set_statement_lock_time;
  /** @sa set_statement_rows_sent_t. */
  set_statement_rows_sent_t set_statement_rows_sent;
  /** @sa set_statement_rows_examined_t. */
  set_statement_rows_examined_t set_statement_rows_examined;
  /** @sa inc_statement_created_tmp_disk_tables. */
  inc_statement_created_tmp_disk_tables_t inc_statement_created_tmp_disk_tables;
  /** @sa inc_statement_created_tmp_tables. */
  inc_statement_created_tmp_tables_t inc_statement_created_tmp_tables;
  /** @sa inc_statement_select_full_join. */
  inc_statement_select_full_join_t inc_statement_select_full_join;
  /** @sa inc_statement_select_full_range_join. */
  inc_statement_select_full_range_join_t inc_statement_select_full_range_join;
  /** @sa inc_statement_select_range. */
  inc_statement_select_range_t inc_statement_select_range;
  /** @sa inc_statement_select_range_check. */
  inc_statement_select_range_check_t inc_statement_select_range_check;
  /** @sa inc_statement_select_scan. */
  inc_statement_select_scan_t inc_statement_select_scan;
  /** @sa inc_statement_sort_merge_passes. */
  inc_statement_sort_merge_passes_t inc_statement_sort_merge_passes;
  /** @sa inc_statement_sort_range. */
  inc_statement_sort_range_t inc_statement_sort_range;
  /** @sa inc_statement_sort_rows. */
  inc_statement_sort_rows_t inc_statement_sort_rows;
  /** @sa inc_statement_sort_scan. */
  inc_statement_sort_scan_t inc_statement_sort_scan;
  /** @sa set_statement_no_index_used. */
  set_statement_no_index_used_t set_statement_no_index_used;
  /** @sa set_statement_no_good_index_used. */
  set_statement_no_good_index_used_t set_statement_no_good_index_used;
  /** @sa end_statement_v1_t. */
  end_statement_v1_t end_statement;
  /** @sa get_thread_transaction_locker_v1_t. */
  get_thread_transaction_locker_v1_t get_thread_transaction_locker;
  /** @sa start_transaction_v1_t. */
  start_transaction_v1_t start_transaction;
  /** @sa set_transaction_xid_v1_t. */
  set_transaction_xid_v1_t set_transaction_xid;
  /** @sa set_transaction_xa_state_v1_t. */
  set_transaction_xa_state_v1_t set_transaction_xa_state;
  /** @sa set_transaction_gtid_v1_t. */
  set_transaction_gtid_v1_t set_transaction_gtid;
  /** @sa set_transaction_trxid_v1_t. */
  set_transaction_trxid_v1_t set_transaction_trxid;
  /** @sa inc_transaction_savepoints_v1_t. */
  inc_transaction_savepoints_v1_t inc_transaction_savepoints;
  /** @sa inc_transaction_rollback_to_savepoint_v1_t. */
  inc_transaction_rollback_to_savepoint_v1_t inc_transaction_rollback_to_savepoint;
  /** @sa inc_transaction_release_savepoint_v1_t. */
  inc_transaction_release_savepoint_v1_t inc_transaction_release_savepoint;
  /** @sa end_transaction_v1_t. */
  end_transaction_v1_t end_transaction;
  /** @sa start_socket_wait_v1_t. */
  start_socket_wait_v1_t start_socket_wait;
  /** @sa end_socket_wait_v1_t. */
  end_socket_wait_v1_t end_socket_wait;
  /** @sa set_socket_state_v1_t. */
  set_socket_state_v1_t set_socket_state;
  /** @sa set_socket_info_v1_t. */
  set_socket_info_v1_t set_socket_info;
  /** @sa set_socket_thread_owner_v1_t. */
  set_socket_thread_owner_v1_t set_socket_thread_owner;
  /** @sa create_prepared_stmt_v1_t. */
  create_prepared_stmt_v1_t create_prepared_stmt;
  /** @sa destroy_prepared_stmt_v1_t. */
  destroy_prepared_stmt_v1_t destroy_prepared_stmt;
  /** @sa reprepare_prepared_stmt_v1_t. */
  reprepare_prepared_stmt_v1_t reprepare_prepared_stmt;
  /** @sa execute_prepared_stmt_v1_t. */
  execute_prepared_stmt_v1_t execute_prepared_stmt;
  /** @sa set_prepared_stmt_text_v1_t. */
  set_prepared_stmt_text_v1_t set_prepared_stmt_text;
  /** @sa digest_start_v1_t. */
  digest_start_v1_t digest_start;
  /** @sa digest_end_v1_t. */
  digest_end_v1_t digest_end;
  /** @sa set_thread_connect_attrs_v1_t. */
  set_thread_connect_attrs_v1_t set_thread_connect_attrs;
  /** @sa start_sp_v1_t. */
  start_sp_v1_t start_sp;
  /** @sa start_sp_v1_t. */
  end_sp_v1_t end_sp;
  /** @sa drop_sp_v1_t. */
  drop_sp_v1_t drop_sp;
  /** @sa get_sp_share_v1_t. */
  get_sp_share_v1_t get_sp_share;
  /** @sa release_sp_share_v1_t. */
  release_sp_share_v1_t release_sp_share;
  /** @sa register_memory_v1_t. */
  register_memory_v1_t register_memory;
  /** @sa memory_alloc_v1_t. */
  memory_alloc_v1_t memory_alloc;
  /** @sa memory_realloc_v1_t. */
  memory_realloc_v1_t memory_realloc;
  /** @sa memory_claim_v1_t. */
  memory_claim_v1_t memory_claim;
  /** @sa memory_free_v1_t. */
  memory_free_v1_t memory_free;

  unlock_table_v1_t unlock_table;

  create_metadata_lock_v1_t create_metadata_lock;
  set_metadata_lock_status_v1_t set_metadata_lock_status;
  destroy_metadata_lock_v1_t destroy_metadata_lock;

  start_metadata_wait_v1_t start_metadata_wait;
  end_metadata_wait_v1_t end_metadata_wait;

  set_thread_peer_port_v1_t set_thread_peer_port;
};

/** @} (end of group Group_PSI_v1) */

#endif /* HAVE_PSI_1 */

#ifdef USE_PSI_2
#define HAVE_PSI_2
#endif

#ifdef HAVE_PSI_2

/**
  @defgroup Group_PSI_v2 Application Binary Interface, version 2
  @ingroup Instrumentation_interface
  @{
*/

/**
  Performance Schema Interface, version 2.
  This is a placeholder, this interface is not defined yet.
  @since PSI_VERSION_2
*/
struct PSI_v2
{
  /** Placeholder */
  int placeholder;
  /* ... extended interface ... */
};

/** Placeholder */
struct PSI_mutex_info_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_rwlock_info_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_cond_info_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_thread_info_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_file_info_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_stage_info_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_statement_info_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_transaction_info_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_idle_locker_state_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_mutex_locker_state_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_rwlock_locker_state_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_cond_locker_state_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_file_locker_state_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_statement_locker_state_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_transaction_locker_state_v2
{
  /** Placeholder */
  int placeholder;
};

/** Placeholder */
struct PSI_socket_locker_state_v2
{
  /** Placeholder */
  int placeholder;
};

struct PSI_metadata_locker_state_v2
{
  int placeholder;
};

/** @} (end of group Group_PSI_v2) */

#endif /* HAVE_PSI_2 */

/**
  @typedef PSI
  The instrumentation interface for the current version.
  @sa PSI_CURRENT_VERSION
*/

/**
  @typedef PSI_mutex_info
  The mutex information structure for the current version.
*/

/**
  @typedef PSI_rwlock_info
  The rwlock information structure for the current version.
*/

/**
  @typedef PSI_cond_info
  The cond information structure for the current version.
*/

/**
  @typedef PSI_thread_info
  The thread information structure for the current version.
*/

/**
  @typedef PSI_file_info
  The file information structure for the current version.
*/

/* Export the required version */
#ifdef USE_PSI_1
typedef struct PSI_v1 PSI;
typedef struct PSI_mutex_info_v1 PSI_mutex_info;
typedef struct PSI_rwlock_info_v1 PSI_rwlock_info;
typedef struct PSI_cond_info_v1 PSI_cond_info;
typedef struct PSI_thread_info_v1 PSI_thread_info;
typedef struct PSI_file_info_v1 PSI_file_info;
typedef struct PSI_stage_info_v1 PSI_stage_info;
typedef struct PSI_statement_info_v1 PSI_statement_info;
typedef struct PSI_transaction_info_v1 PSI_transaction_info;
typedef struct PSI_socket_info_v1 PSI_socket_info;
typedef struct PSI_idle_locker_state_v1 PSI_idle_locker_state;
typedef struct PSI_mutex_locker_state_v1 PSI_mutex_locker_state;
typedef struct PSI_rwlock_locker_state_v1 PSI_rwlock_locker_state;
typedef struct PSI_cond_locker_state_v1 PSI_cond_locker_state;
typedef struct PSI_file_locker_state_v1 PSI_file_locker_state;
typedef struct PSI_statement_locker_state_v1 PSI_statement_locker_state;
typedef struct PSI_transaction_locker_state_v1 PSI_transaction_locker_state;
typedef struct PSI_socket_locker_state_v1 PSI_socket_locker_state;
typedef struct PSI_sp_locker_state_v1 PSI_sp_locker_state;
typedef struct PSI_metadata_locker_state_v1 PSI_metadata_locker_state;
#endif

#ifdef USE_PSI_2
typedef struct PSI_v2 PSI;
typedef struct PSI_mutex_info_v2 PSI_mutex_info;
typedef struct PSI_rwlock_info_v2 PSI_rwlock_info;
typedef struct PSI_cond_info_v2 PSI_cond_info;
typedef struct PSI_thread_info_v2 PSI_thread_info;
typedef struct PSI_file_info_v2 PSI_file_info;
typedef struct PSI_stage_info_v2 PSI_stage_info;
typedef struct PSI_statement_info_v2 PSI_statement_info;
typedef struct PSI_transaction_info_v2 PSI_transaction_info;
typedef struct PSI_socket_info_v2 PSI_socket_info;
typedef struct PSI_idle_locker_state_v2 PSI_idle_locker_state;
typedef struct PSI_mutex_locker_state_v2 PSI_mutex_locker_state;
typedef struct PSI_rwlock_locker_state_v2 PSI_rwlock_locker_state;
typedef struct PSI_cond_locker_state_v2 PSI_cond_locker_state;
typedef struct PSI_file_locker_state_v2 PSI_file_locker_state;
typedef struct PSI_statement_locker_state_v2 PSI_statement_locker_state;
typedef struct PSI_transaction_locker_state_v2 PSI_transaction_locker_state;
typedef struct PSI_socket_locker_state_v2 PSI_socket_locker_state;
typedef struct PSI_sp_locker_state_v2 PSI_sp_locker_state;
typedef struct PSI_metadata_locker_state_v2 PSI_metadata_locker_state;
#endif

#ifndef HAVE_PSI_INTERFACE

/**
  Dummy structure, used to declare PSI_server when no instrumentation
  is available.
  The content does not matter, since PSI_server will be NULL.
*/
struct PSI_none
{
  int opaque;
};
typedef struct PSI_none PSI;

/**
  Stage instrument information.
  @since PSI_VERSION_1
  This structure is used to register an instrumented stage.
*/
struct PSI_stage_info_none
{
  /** Unused stage key. */
  unsigned int m_key;
  /** The name of the stage instrument. */
  const char *m_name;
  /** Unused stage flags. */
  int m_flags;
};

/**
  The stage instrumentation has to co exist with the legacy
  THD::set_proc_info instrumentation.
  To avoid duplication of the instrumentation in the server,
  the common PSI_stage_info structure is used,
  so we export it here, even when not building
  with HAVE_PSI_INTERFACE.
*/
typedef struct PSI_stage_info_none PSI_stage_info;
typedef struct PSI_stage_info_none PSI_statement_info;
typedef struct PSI_stage_info_none PSI_sp_locker_state;
typedef struct PSI_stage_info_none PSI_metadata_locker_state;
typedef struct PSI_stage_info_none PSI_metadata_locker;

#endif /* HAVE_PSI_INTERFACE */

extern MYSQL_PLUGIN_IMPORT PSI *PSI_server;

/*
  Allow to override PSI_XXX_CALL at compile time
  with more efficient implementations, if available.
  If nothing better is available,
  make a dynamic call using the PSI_server function pointer.
*/

#define PSI_DYNAMIC_CALL(M) PSI_server->M

/** @} */

C_MODE_END
#endif /* MYSQL_PERFORMANCE_SCHEMA_INTERFACE_H */


Messung V0.5 in Prozent
C=93 H=66 G=80

¤ Dauer der Verarbeitung: 0.34 Sekunden  (vorverarbeitet am  2026-10-10) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.