MySQL 8.3.0
Source Code Documentation
pfs_thread_provider.h File Reference

Performance schema instrumentation (declarations). More...

#include "my_psi_config.h"
#include <sys/types.h>
#include <time.h>
#include "my_inttypes.h"
#include "my_macros.h"
#include "mysql/psi/psi_thread.h"

Go to the source code of this file.

Macros

#define PSI_THREAD_CALL(M)   pfs_##M##_vc
 

Functions

void pfs_register_thread_vc (const char *category, PSI_thread_info *info, int count)
 Implementation of the thread instrumentation interface. More...
 
int pfs_spawn_thread_vc (PSI_thread_key key, unsigned int sequence_number, my_thread_handle *thread, const my_thread_attr_t *attr, void *(*start_routine)(void *), void *arg)
 Implementation of the thread instrumentation interface. More...
 
PSI_threadpfs_new_thread_vc (PSI_thread_key key, unsigned int sequence_number, const void *identity, ulonglong processlist_id)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_thread_id_vc (PSI_thread *thread, ulonglong processlist_id)
 Implementation of the thread instrumentation interface. More...
 
ulonglong pfs_get_current_thread_internal_id_vc ()
 Implementation of the thread instrumentation interface. More...
 
ulonglong pfs_get_thread_internal_id_vc (PSI_thread *thread)
 Implementation of the thread instrumentation interface. More...
 
PSI_threadpfs_get_thread_by_id_vc (ulonglong processlist_id)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_thread_THD_vc (PSI_thread *thread, THD *thd)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_thread_os_id_vc (PSI_thread *thread)
 Implementation of the thread instrumentation interface. More...
 
PSI_threadpfs_get_thread_vc (void)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_mem_cnt_THD_vc (THD *thd, THD **backup_thd)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_thread_user_vc (const char *user, int user_len)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_thread_account_vc (const char *user, int user_len, const char *host, int host_len)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_thread_db_vc (const char *db, int db_len)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_thread_command_vc (int command)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_thread_start_time_vc (time_t start_time)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_thread_state_vc (const char *state)
 
void pfs_set_connection_type_vc (opaque_vio_type conn_type)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_thread_info_vc (const char *info, uint info_len)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_thread_secondary_engine_vc (bool secondary)
 Implementation of the thread instrumentation interface. More...
 
int pfs_set_thread_resource_group_vc (const char *group_name, int group_name_len, void *user_data)
 Implementation of the thread instrumentation interface. More...
 
int pfs_set_thread_resource_group_by_id_vc (PSI_thread *thread, ulonglong thread_id, const char *group_name, int group_name_len, void *user_data)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_thread_vc (PSI_thread *thread)
 Implementation of the thread instrumentation interface. More...
 
void pfs_set_thread_peer_port_vc (PSI_thread *thread, uint port)
 Implementation of the thread instrumentation interface. More...
 
void pfs_aggregate_thread_status_vc (PSI_thread *thread)
 Implementation of the thread instrumentation interface. More...
 
void pfs_delete_current_thread_vc (void)
 Implementation of the thread instrumentation interface. More...
 
void pfs_delete_thread_vc (PSI_thread *thread)
 Implementation of the thread instrumentation interface. More...
 
int pfs_set_thread_connect_attrs_vc (const char *buffer, uint length, const void *from_cs)
 Implementation of the thread attribute connection interface. More...
 
void pfs_get_current_thread_event_id_vc (ulonglong *internal_thread_id, ulonglong *event_id)
 Implementation of the get event id interface. More...
 
void pfs_get_thread_event_id_vc (PSI_thread *thread, ulonglong *internal_thread_id, ulonglong *event_id)
 Implementation of the get event id interface. More...
 
int pfs_get_thread_system_attrs_vc (PSI_thread_attrs *thread_attrs)
 Implementation of the thread instrumentation interface. More...
 
int pfs_get_thread_system_attrs_by_id_vc (PSI_thread *thread, ulonglong thread_id, PSI_thread_attrs *thread_attrs)
 Implementation of the thread instrumentation interface. More...
 
int pfs_register_notification_vc (const PSI_notification *callbacks, bool with_ref_count)
 Implementation of the thread instrumentation interface. More...
 
int pfs_unregister_notification_vc (int handle)
 Implementation of the thread instrumentation interface. More...
 
void pfs_notify_session_connect_vc (PSI_thread *thread)
 Implementation of the thread instrumentation interface. More...
 
void pfs_notify_session_disconnect_vc (PSI_thread *thread)
 Implementation of the thread instrumentation interface. More...
 
void pfs_notify_session_change_user_vc (PSI_thread *thread)
 Implementation of the thread instrumentation interface. More...
 
void pfs_detect_telemetry_vc (PSI_thread *thread)
 Implementation of the thread instrumentation interface. More...
 
void pfs_abort_telemetry_vc (PSI_thread *thread)
 Implementation of the thread instrumentation interface. More...
 

Detailed Description

Performance schema instrumentation (declarations).

Macro Definition Documentation

◆ PSI_THREAD_CALL

#define PSI_THREAD_CALL (   M)    pfs_##M##_vc

Function Documentation

◆ pfs_abort_telemetry_vc()

void pfs_abort_telemetry_vc ( PSI_thread thread)

Implementation of the thread instrumentation interface.

See also
PSI_v2::abort_telemetry.

◆ pfs_aggregate_thread_status_vc()

void pfs_aggregate_thread_status_vc ( PSI_thread thread)

Implementation of the thread instrumentation interface.

See also
PSI_v2::aggregate_thread_status.

◆ pfs_delete_current_thread_vc()

void pfs_delete_current_thread_vc ( void  )

Implementation of the thread instrumentation interface.

See also
PSI_v2::delete_current_thread.

◆ pfs_delete_thread_vc()

void pfs_delete_thread_vc ( PSI_thread thread)

Implementation of the thread instrumentation interface.

See also
PSI_v2::delete_thread.

◆ pfs_detect_telemetry_vc()

void pfs_detect_telemetry_vc ( PSI_thread thread)

Implementation of the thread instrumentation interface.

See also
PSI_v2::detect_telemetry.

◆ pfs_get_current_thread_event_id_vc()

void pfs_get_current_thread_event_id_vc ( ulonglong internal_thread_id,
ulonglong event_id 
)

Implementation of the get event id interface.

See also
PSI_v2::get_thread_event_id.

◆ pfs_get_current_thread_internal_id_vc()

ulonglong pfs_get_current_thread_internal_id_vc ( )

Implementation of the thread instrumentation interface.

See also
PSI_v2::get_current_thread_internal_id.

◆ pfs_get_thread_by_id_vc()

PSI_thread * pfs_get_thread_by_id_vc ( ulonglong  processlist_id)

Implementation of the thread instrumentation interface.

See also
PSI_v2::get_thread_by_id.

◆ pfs_get_thread_event_id_vc()

void pfs_get_thread_event_id_vc ( PSI_thread psi,
ulonglong internal_thread_id,
ulonglong event_id 
)

Implementation of the get event id interface.

See also
PSI_v1::get_thread_event_id.

◆ pfs_get_thread_internal_id_vc()

ulonglong pfs_get_thread_internal_id_vc ( PSI_thread thread)

Implementation of the thread instrumentation interface.

See also
PSI_v2::get_thread_internal_id.

◆ pfs_get_thread_system_attrs_by_id_vc()

int pfs_get_thread_system_attrs_by_id_vc ( PSI_thread thread,
ulonglong  thread_id,
PSI_thread_attrs thread_attrs 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::get_thread_system_attrs_by_id.

◆ pfs_get_thread_system_attrs_vc()

int pfs_get_thread_system_attrs_vc ( PSI_thread_attrs thread_attrs)

Implementation of the thread instrumentation interface.

See also
PSI_v2::get_thread_system_attrs.

◆ pfs_get_thread_vc()

PSI_thread * pfs_get_thread_vc ( void  )

Implementation of the thread instrumentation interface.

See also
PSI_v2::get_thread.

◆ pfs_new_thread_vc()

PSI_thread * pfs_new_thread_vc ( PSI_thread_key  key,
PSI_thread_seqnum  seqnum,
const void *  identity,
ulonglong  processlist_id 
)

Implementation of the thread instrumentation interface.

See also
PSI_v5::new_thread.

◆ pfs_notify_session_change_user_vc()

void pfs_notify_session_change_user_vc ( PSI_thread thread)

Implementation of the thread instrumentation interface.

See also
PSI_v2::notify_session_change_user.

◆ pfs_notify_session_connect_vc()

void pfs_notify_session_connect_vc ( PSI_thread thread)

Implementation of the thread instrumentation interface.

See also
PSI_v2::notify_session_connect.

◆ pfs_notify_session_disconnect_vc()

void pfs_notify_session_disconnect_vc ( PSI_thread thread)

Implementation of the thread instrumentation interface.

See also
PSI_v2::notify_session_disconnect.

◆ pfs_register_notification_vc()

int pfs_register_notification_vc ( const PSI_notification callbacks,
bool  with_ref_count 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::register_notification.

◆ pfs_register_thread_vc()

void pfs_register_thread_vc ( const char *  category,
PSI_thread_info info,
int  count 
)

Implementation of the thread instrumentation interface.

See also
PSI_v5::register_thread.

◆ pfs_set_connection_type_vc()

void pfs_set_connection_type_vc ( opaque_vio_type  conn_type)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_connection_type.

◆ pfs_set_mem_cnt_THD_vc()

void pfs_set_mem_cnt_THD_vc ( THD thd,
THD **  backup_thd 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_mem_cnt_THD.

◆ pfs_set_thread_account_vc()

void pfs_set_thread_account_vc ( const char *  user,
int  user_len,
const char *  host,
int  host_len 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_account.

◆ pfs_set_thread_command_vc()

void pfs_set_thread_command_vc ( int  command)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_command.

◆ pfs_set_thread_connect_attrs_vc()

int pfs_set_thread_connect_attrs_vc ( const char *  buffer,
uint  length,
const void *  from_cs 
)

Implementation of the thread attribute connection interface.

See also
PSI_v2::set_thread_connect_attr.

◆ pfs_set_thread_db_vc()

void pfs_set_thread_db_vc ( const char *  db,
int  db_len 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_db.

◆ pfs_set_thread_id_vc()

void pfs_set_thread_id_vc ( PSI_thread thread,
ulonglong  processlist_id 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_id.

◆ pfs_set_thread_info_vc()

void pfs_set_thread_info_vc ( const char *  info,
uint  info_len 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_info.

◆ pfs_set_thread_os_id_vc()

void pfs_set_thread_os_id_vc ( PSI_thread thread)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_os_thread_id.

◆ pfs_set_thread_peer_port_vc()

void pfs_set_thread_peer_port_vc ( PSI_thread thread,
uint  port 
)

Implementation of the thread instrumentation interface.

See also
PSI_v4::set_thread_peer_port

◆ pfs_set_thread_resource_group_by_id_vc()

int pfs_set_thread_resource_group_by_id_vc ( PSI_thread thread,
ulonglong  thread_id,
const char *  group_name,
int  group_name_len,
void *  user_data 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_resource_group_by_id

◆ pfs_set_thread_resource_group_vc()

int pfs_set_thread_resource_group_vc ( const char *  group_name,
int  group_name_len,
void *  user_data 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_resource_group

◆ pfs_set_thread_secondary_engine_vc()

void pfs_set_thread_secondary_engine_vc ( bool  secondary)

Implementation of the thread instrumentation interface.

See also
PSI_v6::set_thread_secondary_engine.

◆ pfs_set_thread_start_time_vc()

void pfs_set_thread_start_time_vc ( time_t  start_time)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_start_time.

◆ pfs_set_thread_state_vc()

void pfs_set_thread_state_vc ( const char *  state)

◆ pfs_set_thread_THD_vc()

void pfs_set_thread_THD_vc ( PSI_thread thread,
THD thd 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_THD.

◆ pfs_set_thread_user_vc()

void pfs_set_thread_user_vc ( const char *  user,
int  user_len 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_user.

◆ pfs_set_thread_vc()

void pfs_set_thread_vc ( PSI_thread thread)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread.

◆ pfs_spawn_thread_vc()

int pfs_spawn_thread_vc ( PSI_thread_key  key,
PSI_thread_seqnum  seqnum,
my_thread_handle thread,
const my_thread_attr_t attr,
void *(*)(void *)  start_routine,
void *  arg 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::spawn_thread.

◆ pfs_unregister_notification_vc()

int pfs_unregister_notification_vc ( int  handle)

Implementation of the thread instrumentation interface.

See also
PSI_v2::unregister_notification.