MySQL  8.0.27
Source Code Documentation
pfs_socket_provider.h File Reference

Performance schema instrumentation (declarations). More...

#include "my_config.h"
#include "my_psi_config.h"
#include <stddef.h>
#include <sys/socket.h>
#include <sys/types.h>
#include "my_io.h"
#include "my_macros.h"
#include "mysql/psi/psi_socket.h"

Go to the source code of this file.

Macros

#define PSI_SOCKET_CALL(M)   pfs_##M##_v1
 

Functions

void pfs_register_socket_v1 (const char *category, PSI_socket_info_v1 *info, int count)
 
PSI_socketpfs_init_socket_v1 (PSI_socket_key key, const my_socket *fd, const struct sockaddr *addr, socklen_t addr_len)
 
void pfs_destroy_socket_v1 (PSI_socket *socket)
 
PSI_socket_lockerpfs_start_socket_wait_v1 (PSI_socket_locker_state *state, PSI_socket *socket, PSI_socket_operation op, size_t count, const char *src_file, uint src_line)
 Socket locker. More...
 
void pfs_end_socket_wait_v1 (PSI_socket_locker *locker, size_t byte_count)
 Implementation of the socket instrumentation interface. More...
 
void pfs_set_socket_state_v1 (PSI_socket *socket, PSI_socket_state state)
 
void pfs_set_socket_info_v1 (PSI_socket *socket, const my_socket *fd, const struct sockaddr *addr, socklen_t addr_len)
 Set socket descriptor and address info. More...
 
void pfs_set_socket_thread_owner_v1 (PSI_socket *socket)
 Implementation of the socket instrumentation interface. More...
 

Detailed Description

Performance schema instrumentation (declarations).

Macro Definition Documentation

◆ PSI_SOCKET_CALL

#define PSI_SOCKET_CALL (   M)    pfs_##M##_v1

Function Documentation

◆ pfs_destroy_socket_v1()

void pfs_destroy_socket_v1 ( PSI_socket socket)

◆ pfs_end_socket_wait_v1()

void pfs_end_socket_wait_v1 ( PSI_socket_locker locker,
size_t  byte_count 
)

Implementation of the socket instrumentation interface.

See also
PSI_v1::end_socket_wait.

◆ pfs_init_socket_v1()

PSI_socket* pfs_init_socket_v1 ( PSI_socket_key  key,
const my_socket fd,
const struct sockaddr addr,
socklen_t  addr_len 
)

◆ pfs_register_socket_v1()

void pfs_register_socket_v1 ( const char *  category,
PSI_socket_info_v1 info,
int  count 
)

◆ pfs_set_socket_info_v1()

void pfs_set_socket_info_v1 ( PSI_socket socket,
const my_socket fd,
const struct sockaddr addr,
socklen_t  addr_len 
)

Set socket descriptor and address info.

◆ pfs_set_socket_state_v1()

void pfs_set_socket_state_v1 ( PSI_socket socket,
PSI_socket_state  state 
)

◆ pfs_set_socket_thread_owner_v1()

void pfs_set_socket_thread_owner_v1 ( PSI_socket socket)

Implementation of the socket instrumentation interface.

See also
PSI_v1::set_socket_info.

◆ pfs_start_socket_wait_v1()

PSI_socket_locker* pfs_start_socket_wait_v1 ( PSI_socket_locker_state state,
PSI_socket socket,
PSI_socket_operation  op,
size_t  count,
const char *  src_file,
uint  src_line 
)

Socket locker.