Stefano Garzarella | d0fb965 | 2021-05-17 17:16:58 +0200 | [diff] [blame] | 1 | # See docs/devel/tracing.rst for syntax documentation. |
Markus Armbruster | e68b3ba | 2019-03-14 19:09:25 +0100 | [diff] [blame] | 2 | |
Markus Armbruster | 500016e | 2019-03-14 19:09:26 +0100 | [diff] [blame] | 3 | # client.c |
Eric Blake | 3736cc5 | 2017-07-07 15:30:43 -0500 | [diff] [blame] | 4 | nbd_send_option_request(uint32_t opt, const char *name, uint32_t len) "Sending option request %" PRIu32" (%s), len %" PRIu32 |
Vladimir Sementsov-Ogievskiy | 28fb494 | 2018-02-15 16:51:43 +0300 | [diff] [blame] | 5 | nbd_receive_option_reply(uint32_t option, const char *optname, uint32_t type, const char *typename, uint32_t length) "Received option reply %" PRIu32" (%s), type %" PRIu32" (%s), len %" PRIu32 |
Eric Blake | bee21ef | 2018-12-18 16:57:13 -0600 | [diff] [blame] | 6 | nbd_server_error_msg(uint32_t err, const char *type, const char *msg) "server reported error 0x%" PRIx32 " (%s) with additional message: %s" |
Eric Blake | 5de4773 | 2019-08-24 12:28:13 -0500 | [diff] [blame] | 7 | nbd_reply_err_ignored(uint32_t option, const char *name, uint32_t reply, const char *reply_name) "server failed request %" PRIu32 " (%s) with error 0x%" PRIx32 " (%s), attempting fallback" |
Eric Blake | 091d0bf | 2019-01-17 13:36:45 -0600 | [diff] [blame] | 8 | nbd_receive_list(const char *name, const char *desc) "export list includes '%s', description '%s'" |
Eric Blake | 138796d | 2019-01-17 13:36:53 -0600 | [diff] [blame] | 9 | nbd_opt_info_go_start(const char *opt, const char *name) "Attempting %s for export '%s'" |
| 10 | nbd_opt_info_go_success(const char *opt) "Export is ready after %s request" |
| 11 | nbd_opt_info_unknown(int info, const char *name) "Ignoring unknown info %d (%s)" |
| 12 | nbd_opt_info_block_size(uint32_t minimum, uint32_t preferred, uint32_t maximum) "Block sizes are 0x%" PRIx32 ", 0x%" PRIx32 ", 0x%" PRIx32 |
Vladimir Sementsov-Ogievskiy | 9588463 | 2017-07-07 18:29:18 +0300 | [diff] [blame] | 13 | nbd_receive_query_exports_start(const char *wantname) "Querying export list for '%s'" |
| 14 | nbd_receive_query_exports_success(const char *wantname) "Found desired export name '%s'" |
Vladimir Sementsov-Ogievskiy | d795299 | 2017-10-27 12:40:34 +0200 | [diff] [blame] | 15 | nbd_receive_starttls_new_client(void) "Setting up TLS" |
Vladimir Sementsov-Ogievskiy | 9588463 | 2017-07-07 18:29:18 +0300 | [diff] [blame] | 16 | nbd_receive_starttls_tls_handshake(void) "Starting TLS handshake" |
Eric Blake | 757b3ab | 2019-01-17 13:36:48 -0600 | [diff] [blame] | 17 | nbd_opt_meta_request(const char *optname, const char *context, const char *export) "Requesting %s %s for export %s" |
Eric Blake | 0182c1a | 2019-01-17 13:36:49 -0600 | [diff] [blame] | 18 | nbd_opt_meta_reply(const char *optname, const char *context, uint32_t id) "Received %s mapping of %s to id %" PRIu32 |
Eric Blake | 10b8998 | 2019-01-17 13:36:51 -0600 | [diff] [blame] | 19 | nbd_start_negotiate(void *tlscreds, const char *hostname) "Receiving negotiation tlscreds=%p hostname=%s" |
Vladimir Sementsov-Ogievskiy | 9588463 | 2017-07-07 18:29:18 +0300 | [diff] [blame] | 20 | nbd_receive_negotiate_magic(uint64_t magic) "Magic is 0x%" PRIx64 |
Vladimir Sementsov-Ogievskiy | 8908eb1 | 2017-07-31 19:01:35 +0300 | [diff] [blame] | 21 | nbd_receive_negotiate_server_flags(uint32_t globalflags) "Global flags are 0x%" PRIx32 |
Eric Blake | 6dc1667 | 2019-01-17 13:36:46 -0600 | [diff] [blame] | 22 | nbd_receive_negotiate_name(const char *name) "Requesting NBD export name '%s'" |
Vladimir Sementsov-Ogievskiy | 8908eb1 | 2017-07-31 19:01:35 +0300 | [diff] [blame] | 23 | nbd_receive_negotiate_size_flags(uint64_t size, uint16_t flags) "Size is %" PRIu64 ", export flags 0x%" PRIx16 |
Vladimir Sementsov-Ogievskiy | 9588463 | 2017-07-07 18:29:18 +0300 | [diff] [blame] | 24 | nbd_init_set_socket(void) "Setting NBD socket" |
| 25 | nbd_init_set_block_size(unsigned long block_size) "Setting block size to %lu" |
| 26 | nbd_init_set_size(unsigned long sectors) "Setting size to %lu block(s)" |
| 27 | nbd_init_trailing_bytes(int ignored_bytes) "Ignoring trailing %d bytes of export" |
| 28 | nbd_init_set_readonly(void) "Setting readonly attribute" |
| 29 | nbd_init_finish(void) "Negotiation ended" |
| 30 | nbd_client_loop(void) "Doing NBD loop" |
| 31 | nbd_client_loop_ret(int ret, const char *error) "NBD loop returned %d: %s" |
| 32 | nbd_client_clear_queue(void) "Clearing NBD queue" |
| 33 | nbd_client_clear_socket(void) "Clearing NBD socket" |
Eric Blake | b257845 | 2023-08-29 12:58:31 -0500 | [diff] [blame] | 34 | nbd_send_request(uint64_t from, uint64_t len, uint64_t cookie, uint16_t flags, uint16_t type, const char *name) "Sending request to server: { .from = %" PRIu64", .len = %" PRIu64 ", .cookie = %" PRIu64 ", .flags = 0x%" PRIx16 ", .type = %" PRIu16 " (%s) }" |
Eric Blake | 22efd81 | 2023-06-08 08:56:34 -0500 | [diff] [blame] | 35 | nbd_receive_simple_reply(int32_t error, const char *errname, uint64_t cookie) "Got simple reply: { .error = %" PRId32 " (%s), cookie = %" PRIu64" }" |
Eric Blake | 4fc55bf | 2023-09-25 14:22:37 -0500 | [diff] [blame] | 36 | nbd_receive_reply_chunk_header(uint16_t flags, uint16_t type, const char *name, uint64_t cookie, uint32_t length) "Got reply chunk header: { flags = 0x%" PRIx16 ", type = %" PRIu16 " (%s), cookie = %" PRIu64 ", length = %" PRIu32 " }" |
| 37 | nbd_receive_wrong_header(uint32_t magic, const char *mode) "Server sent unexpected magic 0x%" PRIx32 " for negotiated mode %s" |
Vladimir Sementsov-Ogievskiy | 9588463 | 2017-07-07 18:29:18 +0300 | [diff] [blame] | 38 | |
Markus Armbruster | 500016e | 2019-03-14 19:09:26 +0100 | [diff] [blame] | 39 | # common.c |
Eric Blake | dd68944 | 2017-10-27 12:40:27 +0200 | [diff] [blame] | 40 | nbd_unknown_error(int err) "Squashing unexpected error %d to EINVAL" |
| 41 | |
Markus Armbruster | 500016e | 2019-03-14 19:09:26 +0100 | [diff] [blame] | 42 | # server.c |
Vladimir Sementsov-Ogievskiy | 28fb494 | 2018-02-15 16:51:43 +0300 | [diff] [blame] | 43 | nbd_negotiate_send_rep_len(uint32_t opt, const char *optname, uint32_t type, const char *typename, uint32_t len) "Reply opt=%" PRIu32 " (%s), type=%" PRIu32 " (%s), len=%" PRIu32 |
Vladimir Sementsov-Ogievskiy | 9588463 | 2017-07-07 18:29:18 +0300 | [diff] [blame] | 44 | nbd_negotiate_send_rep_err(const char *msg) "sending error message \"%s\"" |
| 45 | nbd_negotiate_send_rep_list(const char *name, const char *desc) "Advertising export name '%s' description '%s'" |
| 46 | nbd_negotiate_handle_export_name(void) "Checking length" |
| 47 | nbd_negotiate_handle_export_name_request(const char *name) "Client requested export '%s'" |
Eric Blake | f37708f | 2017-07-07 15:30:46 -0500 | [diff] [blame] | 48 | nbd_negotiate_send_info(int info, const char *name, uint32_t length) "Sending NBD_REP_INFO type %d (%s) with remaining length %" PRIu32 |
| 49 | nbd_negotiate_handle_info_requests(int requests) "Client requested %d items of info" |
| 50 | nbd_negotiate_handle_info_request(int request, const char *name) "Client requested info %d (%s)" |
Eric Blake | 0c1d50b | 2017-07-07 15:30:48 -0500 | [diff] [blame] | 51 | nbd_negotiate_handle_info_block_size(uint32_t minimum, uint32_t preferred, uint32_t maximum) "advertising minimum 0x%" PRIx32 ", preferred 0x%" PRIx32 ", maximum 0x%" PRIx32 |
Vladimir Sementsov-Ogievskiy | 9588463 | 2017-07-07 18:29:18 +0300 | [diff] [blame] | 52 | nbd_negotiate_handle_starttls(void) "Setting up TLS" |
| 53 | nbd_negotiate_handle_starttls_handshake(void) "Starting TLS handshake" |
Eric Blake | 2b53af2 | 2018-03-30 08:09:50 -0500 | [diff] [blame] | 54 | nbd_negotiate_meta_context(const char *optname, const char *export, uint32_t queries) "Client requested %s for export %s, with %" PRIu32 " queries" |
| 55 | nbd_negotiate_meta_query_skip(const char *reason) "Skipping meta query: %s" |
| 56 | nbd_negotiate_meta_query_parse(const char *query) "Parsed meta query '%s'" |
| 57 | nbd_negotiate_meta_query_reply(const char *context, uint32_t id) "Replying with meta context '%s' id %" PRIu32 |
Eric Blake | 621c4f4 | 2017-07-07 15:30:44 -0500 | [diff] [blame] | 58 | nbd_negotiate_options_flags(uint32_t flags) "Received client flags 0x%" PRIx32 |
Vladimir Sementsov-Ogievskiy | 9588463 | 2017-07-07 18:29:18 +0300 | [diff] [blame] | 59 | nbd_negotiate_options_check_magic(uint64_t magic) "Checking opts magic 0x%" PRIx64 |
Vladimir Sementsov-Ogievskiy | 28fb494 | 2018-02-15 16:51:43 +0300 | [diff] [blame] | 60 | nbd_negotiate_options_check_option(uint32_t option, const char *name) "Checking option %" PRIu32 " (%s)" |
Vladimir Sementsov-Ogievskiy | 9588463 | 2017-07-07 18:29:18 +0300 | [diff] [blame] | 61 | nbd_negotiate_begin(void) "Beginning negotiation" |
Vladimir Sementsov-Ogievskiy | 8908eb1 | 2017-07-31 19:01:35 +0300 | [diff] [blame] | 62 | nbd_negotiate_new_style_size_flags(uint64_t size, unsigned flags) "advertising size %" PRIu64 " and flags 0x%x" |
Vladimir Sementsov-Ogievskiy | 9588463 | 2017-07-07 18:29:18 +0300 | [diff] [blame] | 63 | nbd_negotiate_success(void) "Negotiation succeeded" |
Eric Blake | b257845 | 2023-08-29 12:58:31 -0500 | [diff] [blame] | 64 | nbd_receive_request(uint32_t magic, uint16_t flags, uint16_t type, uint64_t from, uint64_t len) "Got request: { magic = 0x%" PRIx32 ", .flags = 0x%" PRIx16 ", .type = 0x%" PRIx16 ", from = %" PRIu64 ", len = %" PRIu64 " }" |
Philippe Mathieu-Daudé | 794dcb5 | 2019-09-16 11:51:20 +0200 | [diff] [blame] | 65 | nbd_blk_aio_attached(const char *name, void *ctx) "Export %s: Attaching clients to AIO context %p" |
| 66 | nbd_blk_aio_detach(const char *name, void *ctx) "Export %s: Detaching clients from AIO context %p" |
Eric Blake | b257845 | 2023-08-29 12:58:31 -0500 | [diff] [blame] | 67 | nbd_co_send_simple_reply(uint64_t cookie, uint32_t error, const char *errname, uint64_t len) "Send simple reply: cookie = %" PRIu64 ", error = %" PRIu32 " (%s), len = %" PRIu64 |
Eric Blake | 22efd81 | 2023-06-08 08:56:34 -0500 | [diff] [blame] | 68 | nbd_co_send_chunk_done(uint64_t cookie) "Send structured reply done: cookie = %" PRIu64 |
Eric Blake | b257845 | 2023-08-29 12:58:31 -0500 | [diff] [blame] | 69 | nbd_co_send_chunk_read(uint64_t cookie, uint64_t offset, void *data, uint64_t size) "Send structured read data reply: cookie = %" PRIu64 ", offset = %" PRIu64 ", data = %p, len = %" PRIu64 |
| 70 | nbd_co_send_chunk_read_hole(uint64_t cookie, uint64_t offset, uint64_t size) "Send structured read hole reply: cookie = %" PRIu64 ", offset = %" PRIu64 ", len = %" PRIu64 |
Eric Blake | 22efd81 | 2023-06-08 08:56:34 -0500 | [diff] [blame] | 71 | nbd_co_send_extents(uint64_t cookie, unsigned int extents, uint32_t id, uint64_t length, int last) "Send block status reply: cookie = %" PRIu64 ", extents = %u, context = %d (extents cover %" PRIu64 " bytes, last chunk = %d)" |
| 72 | nbd_co_send_chunk_error(uint64_t cookie, int err, const char *errname, const char *msg) "Send structured error reply: cookie = %" PRIu64 ", error = %d (%s), msg = '%s'" |
Eric Blake | 2dcbb11 | 2023-09-25 14:22:42 -0500 | [diff] [blame] | 73 | nbd_co_receive_block_status_payload_compliance(uint64_t from, uint64_t len) "client sent unusable block status payload: from=0x%" PRIx64 ", len=0x%" PRIx64 |
Eric Blake | 22efd81 | 2023-06-08 08:56:34 -0500 | [diff] [blame] | 74 | nbd_co_receive_request_decode_type(uint64_t cookie, uint16_t type, const char *name) "Decoding type: cookie = %" PRIu64 ", type = %" PRIu16 " (%s)" |
Eric Blake | b257845 | 2023-08-29 12:58:31 -0500 | [diff] [blame] | 75 | nbd_co_receive_request_payload_received(uint64_t cookie, uint64_t len) "Payload received: cookie = %" PRIu64 ", len = %" PRIu64 |
Eric Blake | 009cd86 | 2023-09-25 14:22:31 -0500 | [diff] [blame] | 76 | nbd_co_receive_ext_payload_compliance(uint64_t from, uint64_t len) "client sent non-compliant write without payload flag: from=0x%" PRIx64 ", len=0x%" PRIx64 |
Eric Blake | b257845 | 2023-08-29 12:58:31 -0500 | [diff] [blame] | 77 | nbd_co_receive_align_compliance(const char *op, uint64_t from, uint64_t len, uint32_t align) "client sent non-compliant unaligned %s request: from=0x%" PRIx64 ", len=0x%" PRIx64 ", align=0x%" PRIx32 |
Vladimir Sementsov-Ogievskiy | 9588463 | 2017-07-07 18:29:18 +0300 | [diff] [blame] | 78 | nbd_trip(void) "Reading request" |
Denis V. Lunev | 8bb100c | 2022-05-30 12:39:29 +0200 | [diff] [blame] | 79 | |
| 80 | # client-connection.c |
| 81 | nbd_connect_thread_sleep(uint64_t timeout) "timeout %" PRIu64 |