MySQL 8.0.39
Source Code Documentation
|
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_thread * | pfs_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_thread * | pfs_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_thread * | pfs_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... | |
Performance schema instrumentation (declarations).
void pfs_abort_telemetry_vc | ( | PSI_thread * | thread | ) |
Implementation of the thread instrumentation interface.
void pfs_aggregate_thread_status_vc | ( | PSI_thread * | thread | ) |
Implementation of the thread instrumentation interface.
void pfs_delete_current_thread_vc | ( | void | ) |
Implementation of the thread instrumentation interface.
void pfs_delete_thread_vc | ( | PSI_thread * | thread | ) |
Implementation of the thread instrumentation interface.
void pfs_detect_telemetry_vc | ( | PSI_thread * | thread | ) |
Implementation of the thread instrumentation interface.
Implementation of the get event id interface.
ulonglong pfs_get_current_thread_internal_id_vc | ( | ) |
Implementation of the thread instrumentation interface.
PSI_thread * pfs_get_thread_by_id_vc | ( | ulonglong | processlist_id | ) |
Implementation of the thread instrumentation interface.
void pfs_get_thread_event_id_vc | ( | PSI_thread * | psi, |
ulonglong * | internal_thread_id, | ||
ulonglong * | event_id | ||
) |
Implementation of the get event id interface.
ulonglong pfs_get_thread_internal_id_vc | ( | PSI_thread * | thread | ) |
Implementation of the thread instrumentation interface.
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.
int pfs_get_thread_system_attrs_vc | ( | PSI_thread_attrs * | thread_attrs | ) |
Implementation of the thread instrumentation interface.
PSI_thread * pfs_get_thread_vc | ( | void | ) |
Implementation of the thread instrumentation interface.
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.
void pfs_notify_session_change_user_vc | ( | PSI_thread * | thread | ) |
Implementation of the thread instrumentation interface.
void pfs_notify_session_connect_vc | ( | PSI_thread * | thread | ) |
Implementation of the thread instrumentation interface.
void pfs_notify_session_disconnect_vc | ( | PSI_thread * | thread | ) |
Implementation of the thread instrumentation interface.
int pfs_register_notification_vc | ( | const PSI_notification * | callbacks, |
bool | with_ref_count | ||
) |
Implementation of the thread instrumentation interface.
void pfs_register_thread_vc | ( | const char * | category, |
PSI_thread_info * | info, | ||
int | count | ||
) |
Implementation of the thread instrumentation interface.
void pfs_set_connection_type_vc | ( | opaque_vio_type | conn_type | ) |
Implementation of the thread instrumentation interface.
Implementation of the thread instrumentation interface.
void pfs_set_thread_account_vc | ( | const char * | user, |
int | user_len, | ||
const char * | host, | ||
int | host_len | ||
) |
Implementation of the thread instrumentation interface.
void pfs_set_thread_command_vc | ( | int | command | ) |
Implementation of the thread instrumentation interface.
int pfs_set_thread_connect_attrs_vc | ( | const char * | buffer, |
uint | length, | ||
const void * | from_cs | ||
) |
Implementation of the thread attribute connection interface.
void pfs_set_thread_db_vc | ( | const char * | db, |
int | db_len | ||
) |
Implementation of the thread instrumentation interface.
void pfs_set_thread_id_vc | ( | PSI_thread * | thread, |
ulonglong | processlist_id | ||
) |
Implementation of the thread instrumentation interface.
void pfs_set_thread_info_vc | ( | const char * | info, |
uint | info_len | ||
) |
Implementation of the thread instrumentation interface.
void pfs_set_thread_os_id_vc | ( | PSI_thread * | thread | ) |
Implementation of the thread instrumentation interface.
void pfs_set_thread_peer_port_vc | ( | PSI_thread * | thread, |
uint | port | ||
) |
Implementation of the thread instrumentation interface.
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.
int pfs_set_thread_resource_group_vc | ( | const char * | group_name, |
int | group_name_len, | ||
void * | user_data | ||
) |
Implementation of the thread instrumentation interface.
void pfs_set_thread_secondary_engine_vc | ( | bool | secondary | ) |
Implementation of the thread instrumentation interface.
void pfs_set_thread_start_time_vc | ( | time_t | start_time | ) |
Implementation of the thread instrumentation interface.
void pfs_set_thread_state_vc | ( | const char * | state | ) |
void pfs_set_thread_THD_vc | ( | PSI_thread * | thread, |
THD * | thd | ||
) |
Implementation of the thread instrumentation interface.
void pfs_set_thread_user_vc | ( | const char * | user, |
int | user_len | ||
) |
Implementation of the thread instrumentation interface.
void pfs_set_thread_vc | ( | PSI_thread * | thread | ) |
Implementation of the thread instrumentation interface.
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.
int pfs_unregister_notification_vc | ( | int | handle | ) |
Implementation of the thread instrumentation interface.