|
static int | test_trace::plugin_init (char *a, size_t b, int argc, va_list args) |
|
static int | test_trace::plugin_deinit () |
|
void * | test_trace::trace_start (struct st_mysql_client_plugin_TRACE *, MYSQL *conn, enum protocol_stage stage) |
|
void | test_trace::trace_stop (struct st_mysql_client_plugin_TRACE *, MYSQL *conn, void *data) |
|
int | test_trace::trace_event (struct st_mysql_client_plugin_TRACE *, void *data_ptr, MYSQL *conn, enum protocol_stage stage, enum trace_event ev, struct st_trace_event_args args) |
|
int | test_trace::check_event_CONNECTING (MYSQL *, struct st_trace_data *, enum trace_event ev, struct st_trace_event_args, enum protocol_stage *next_stage) |
|
int | test_trace::check_event_WAIT_FOR_INIT_PACKET (MYSQL *, struct st_trace_data *, enum trace_event ev, struct st_trace_event_args, enum protocol_stage *next_stage) |
|
int | test_trace::check_event_AUTHENTICATE (MYSQL *conn, struct st_trace_data *data, enum trace_event ev, struct st_trace_event_args args, enum protocol_stage *next_stage) |
|
int | test_trace::check_event_SSL_NEGOTIATION (MYSQL *conn, struct st_trace_data *, enum trace_event ev, struct st_trace_event_args, enum protocol_stage *next_stage) |
|
int | test_trace::check_event_READY_FOR_COMMAND (MYSQL *conn, struct st_trace_data *data, enum trace_event ev, struct st_trace_event_args args, enum protocol_stage *next_stage) |
|
int | test_trace::check_event_WAIT_FOR_PACKET (MYSQL *conn, struct st_trace_data *, enum trace_event ev, struct st_trace_event_args, enum protocol_stage *next_stage) |
|
int | test_trace::check_event_WAIT_FOR_RESULT (MYSQL *conn, struct st_trace_data *data, enum trace_event ev, struct st_trace_event_args args, enum protocol_stage *next_stage) |
|
int | test_trace::check_event_WAIT_FOR_FIELD_DEF (MYSQL *conn, struct st_trace_data *data, enum trace_event ev, struct st_trace_event_args args, enum protocol_stage *next_stage) |
|
int | test_trace::check_event_WAIT_FOR_ROW (MYSQL *conn, struct st_trace_data *data, enum trace_event ev, struct st_trace_event_args args, enum protocol_stage *next_stage) |
|
int | test_trace::check_event_WAIT_FOR_PS_DESCRIPTION (MYSQL *conn, struct st_trace_data *data, enum trace_event ev, struct st_trace_event_args args, enum protocol_stage *next_stage) |
|
int | test_trace::check_event_WAIT_FOR_PARAM_DEF (MYSQL *conn, struct st_trace_data *data, enum trace_event ev, struct st_trace_event_args args, enum protocol_stage *next_stage) |
|
int | test_trace::check_event_FILE_REQUEST (MYSQL *conn, struct st_trace_data *data, enum trace_event ev, struct st_trace_event_args args, enum protocol_stage *next_stage) |
|
int | test_trace::check_event_DISCONNECTED (MYSQL *, struct st_trace_data *, enum trace_event, struct st_trace_event_args, enum protocol_stage *) |
|
Test trace plugin
If WITH_TEST_TRACE_PLUGIN build option was checked when building libmysql then this plugin is built into client library (no plugin loading required).
The plugin follows the protocol flow based on the trace events reported to it. If MYSQL_TEST_TRACE_DEBUG environment variable is non-zero then it logs information about received trace events and reports if a particular event is invalid.
If MYSQL_TEST_TRACE_CRASH environment variable is set to something else than 0 then the plugin will crash if an invalid trace event was reported to it.