24#ifndef TABLE_SOCKET_INSTANCES_H
25#define TABLE_SOCKET_INSTANCES_H
34#ifdef HAVE_NETINET_IN_H
35#include <netinet/in.h>
71 char m_ip[INET6_ADDRSTRLEN + 1];
163 int rnd_pos(
const void *pos)
override;
170 bool read_all)
override;
Definition: pfs_engine_table.h:300
Definition: pfs_engine_table.h:268
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_socket_instances.h:96
bool match(const PFS_socket *pfs) override
Definition: table_socket_instances.cc:85
~PFS_index_socket_instances_by_instance() override=default
PFS_index_socket_instances_by_instance()
Definition: table_socket_instances.h:98
PFS_key_object_instance m_key
Definition: table_socket_instances.h:106
Definition: table_socket_instances.h:136
PFS_key_port m_key_2
Definition: table_socket_instances.h:149
PFS_key_ip m_key_1
Definition: table_socket_instances.h:148
~PFS_index_socket_instances_by_ip_port() override=default
PFS_index_socket_instances_by_ip_port()
Definition: table_socket_instances.h:138
bool match(const PFS_socket *pfs) override
Definition: table_socket_instances.cc:112
Definition: table_socket_instances.h:122
bool match(const PFS_socket *pfs) override
Definition: table_socket_instances.cc:103
PFS_key_socket_id m_key
Definition: table_socket_instances.h:132
~PFS_index_socket_instances_by_socket() override=default
PFS_index_socket_instances_by_socket()
Definition: table_socket_instances.h:124
Definition: table_socket_instances.h:109
PFS_key_thread_id m_key
Definition: table_socket_instances.h:119
bool match(const PFS_socket *pfs) override
Definition: table_socket_instances.cc:94
~PFS_index_socket_instances_by_thread() override=default
PFS_index_socket_instances_by_thread()
Definition: table_socket_instances.h:111
Definition: table_socket_instances.h:82
virtual bool match(const PFS_socket *pfs)=0
PFS_index_socket_instances(PFS_engine_key *key_1)
Definition: table_socket_instances.h:84
~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:87
Definition: table_helper.h:1592
Definition: table_helper.h:1700
Definition: table_helper.h:1363
Definition: table_helper.h:1354
Definition: table_helper.h:1278
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.SOCKET_INSTANCES.
Definition: table_socket_instances.h:153
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_socket_instances.cc:157
static PFS_engine_table_share m_share
Table share.
Definition: table_socket_instances.h:156
int index_next() override
Find key in index, read record.
Definition: table_socket_instances.cc:196
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:255
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_socket_instances.cc:138
static THR_LOCK m_table_lock
Table share lock.
Definition: table_socket_instances.h:180
PFS_simple_index m_next_pos
Next position.
Definition: table_socket_instances.h:189
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_socket_instances.cc:143
table_socket_instances()
Definition: table_socket_instances.cc:135
row_socket_instances m_row
Current row.
Definition: table_socket_instances.h:185
static ha_rows get_row_count()
Definition: table_socket_instances.cc:131
~table_socket_instances() override=default
PFS_simple_index m_pos
Current position.
Definition: table_socket_instances.h:187
static Plugin_table m_table_def
Table definition.
Definition: table_socket_instances.h:182
int make_row(PFS_socket *pfs)
Definition: table_socket_instances.cc:217
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_socket_instances.cc:127
PFS_index_socket_instances * m_opened_index
Definition: table_socket_instances.h:191
int index_init(uint idx, bool sorted) override
Definition: table_socket_instances.cc:170
PSI_socket_state
State of an instrumented socket.
Definition: psi_socket_bits.h:80
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1140
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
Performance schema instrumentation interface.
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:358
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:566
Instrumented socket implementation.
Definition: pfs_instr.h:287
Definition: thr_lock.h:139
A row of PERFORMANCE_SCHEMA.SOCKET_INSTANCES.
Definition: table_socket_instances.h:57
PSI_socket_state m_state
Socket state: ACTIVE or IDLE.
Definition: table_socket_instances.h:77
const void * m_identity
Column OBJECT_INSTANCE_BEGIN.
Definition: table_socket_instances.h:63
char m_ip[INET6_ADDRSTRLEN+1]
Socket ip address, IPV4 or IPV6.
Definition: table_socket_instances.h:71
row_socket_instances()
Definition: table_socket_instances.h:79
uint m_ip_length
Length in bytes of m_ip.
Definition: table_socket_instances.h:73
uint m_port
Column PORT.
Definition: table_socket_instances.h:75
uint m_event_name_length
Length in bytes of m_event_name.
Definition: table_socket_instances.h:61
ulonglong m_thread_id
Column THREAD_ID.
Definition: table_socket_instances.h:65
const char * m_event_name
Column EVENT_NAME.
Definition: table_socket_instances.h:59
uint m_fd
Column SOCKET_ID.
Definition: table_socket_instances.h:69
bool m_thread_id_set
True if thread_is is set.
Definition: table_socket_instances.h:67
Helpers to implement a performance schema table.
unsigned int uint
Definition: uca9-dump.cc:75