23#ifndef TABLE_SOCKET_INSTANCES_H
24#define TABLE_SOCKET_INSTANCES_H
33#ifdef HAVE_NETINET_IN_H
34#include <netinet/in.h>
70 char m_ip[INET6_ADDRSTRLEN + 1];
162 int rnd_pos(
const void *pos)
override;
164 int index_init(uint idx,
bool sorted)
override;
169 bool read_all)
override;
Definition: pfs_engine_table.h:299
Definition: pfs_engine_table.h:267
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Definition: table_socket_instances.h:95
bool match(const PFS_socket *pfs) override
Definition: table_socket_instances.cc:84
~PFS_index_socket_instances_by_instance() override=default
PFS_index_socket_instances_by_instance()
Definition: table_socket_instances.h:97
PFS_key_object_instance m_key
Definition: table_socket_instances.h:105
Definition: table_socket_instances.h:135
PFS_key_port m_key_2
Definition: table_socket_instances.h:148
PFS_key_ip m_key_1
Definition: table_socket_instances.h:147
~PFS_index_socket_instances_by_ip_port() override=default
PFS_index_socket_instances_by_ip_port()
Definition: table_socket_instances.h:137
bool match(const PFS_socket *pfs) override
Definition: table_socket_instances.cc:111
Definition: table_socket_instances.h:121
bool match(const PFS_socket *pfs) override
Definition: table_socket_instances.cc:102
PFS_key_socket_id m_key
Definition: table_socket_instances.h:131
~PFS_index_socket_instances_by_socket() override=default
PFS_index_socket_instances_by_socket()
Definition: table_socket_instances.h:123
Definition: table_socket_instances.h:108
PFS_key_thread_id m_key
Definition: table_socket_instances.h:118
bool match(const PFS_socket *pfs) override
Definition: table_socket_instances.cc:93
~PFS_index_socket_instances_by_thread() override=default
PFS_index_socket_instances_by_thread()
Definition: table_socket_instances.h:110
Definition: table_socket_instances.h:81
virtual bool match(const PFS_socket *pfs)=0
PFS_index_socket_instances(PFS_engine_key *key_1)
Definition: table_socket_instances.h:83
~PFS_index_socket_instances() override=default
PFS_index_socket_instances(PFS_engine_key *key_1, PFS_engine_key *key_2)
Definition: table_socket_instances.h:86
Definition: table_helper.h:1565
Definition: table_helper.h:1673
Definition: table_helper.h:1336
Definition: table_helper.h:1327
Definition: table_helper.h:1251
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:39
Table PERFORMANCE_SCHEMA.SOCKET_INSTANCES.
Definition: table_socket_instances.h:152
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_socket_instances.cc:156
static PFS_engine_table_share m_share
Table share.
Definition: table_socket_instances.h:155
int index_next() override
Find key in index, read record.
Definition: table_socket_instances.cc:195
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_socket_instances.cc:254
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_socket_instances.cc:137
static THR_LOCK m_table_lock
Table share lock.
Definition: table_socket_instances.h:179
PFS_simple_index m_next_pos
Next position.
Definition: table_socket_instances.h:188
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_socket_instances.cc:142
table_socket_instances()
Definition: table_socket_instances.cc:134
row_socket_instances m_row
Current row.
Definition: table_socket_instances.h:184
static ha_rows get_row_count()
Definition: table_socket_instances.cc:130
~table_socket_instances() override=default
PFS_simple_index m_pos
Current position.
Definition: table_socket_instances.h:186
static Plugin_table m_table_def
Table definition.
Definition: table_socket_instances.h:181
int make_row(PFS_socket *pfs)
Definition: table_socket_instances.cc:216
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_socket_instances.cc:126
PFS_index_socket_instances * m_opened_index
Definition: table_socket_instances.h:190
int index_init(uint idx, bool sorted) override
Definition: table_socket_instances.cc:169
PSI_socket_state
State of an instrumented socket.
Definition: psi_socket_bits.h:79
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1139
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
Definition: buf0block_hint.cc:29
Performance schema tables (declarations).
Performance schema instrumentation interface.
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:65
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:357
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:557
Instrumented socket implementation.
Definition: pfs_instr.h:288
Definition: thr_lock.h:138
A row of PERFORMANCE_SCHEMA.SOCKET_INSTANCES.
Definition: table_socket_instances.h:56
PSI_socket_state m_state
Socket state: ACTIVE or IDLE.
Definition: table_socket_instances.h:76
const void * m_identity
Column OBJECT_INSTANCE_BEGIN.
Definition: table_socket_instances.h:62
char m_ip[INET6_ADDRSTRLEN+1]
Socket ip address, IPV4 or IPV6.
Definition: table_socket_instances.h:70
row_socket_instances()
Definition: table_socket_instances.h:78
uint m_ip_length
Length in bytes of m_ip.
Definition: table_socket_instances.h:72
uint m_port
Column PORT.
Definition: table_socket_instances.h:74
uint m_event_name_length
Length in bytes of m_event_name.
Definition: table_socket_instances.h:60
ulonglong m_thread_id
Column THREAD_ID.
Definition: table_socket_instances.h:64
const char * m_event_name
Column EVENT_NAME.
Definition: table_socket_instances.h:58
uint m_fd
Column SOCKET_ID.
Definition: table_socket_instances.h:68
bool m_thread_id_set
True if thread_is is set.
Definition: table_socket_instances.h:66
Helpers to implement a performance schema table.