]> git.proxmox.com Git - mirror_qemu.git/blame - block/trace-events
block/block-copy: split block_copy_set_callbacks function
[mirror_qemu.git] / block / trace-events
CommitLineData
87e0331c 1# See docs/devel/tracing.txt for syntax documentation.
b54ca48e 2
500016e5 3# ../block.c
db73ee4b 4bdrv_open_common(void *bs, const char *filename, int flags, const char *format_name) "bs %p filename \"%s\" flags 0x%x format_name \"%s\""
b54ca48e
DB
5bdrv_lock_medium(void *bs, bool locked) "bs %p locked %d"
6
500016e5 7# block-backend.c
8908eb1a
VSO
8blk_co_preadv(void *blk, void *bs, int64_t offset, unsigned int bytes, int flags) "blk %p bs %p offset %"PRId64" bytes %u flags 0x%x"
9blk_co_pwritev(void *blk, void *bs, int64_t offset, unsigned int bytes, int flags) "blk %p bs %p offset %"PRId64" bytes %u flags 0x%x"
d03654ea
SH
10blk_root_attach(void *child, void *blk, void *bs) "child %p blk %p bs %p"
11blk_root_detach(void *child, void *blk, void *bs) "child %p blk %p bs %p"
b54ca48e 12
500016e5 13# io.c
f42cf447
DB
14bdrv_co_preadv(void *bs, int64_t offset, int64_t nbytes, unsigned int flags) "bs %p offset %"PRId64" nbytes %"PRId64" flags 0x%x"
15bdrv_co_pwritev(void *bs, int64_t offset, int64_t nbytes, unsigned int flags) "bs %p offset %"PRId64" nbytes %"PRId64" flags 0x%x"
db73ee4b 16bdrv_co_pwrite_zeroes(void *bs, int64_t offset, int count, int flags) "bs %p offset %"PRId64" count %d flags 0x%x"
7cfd5275 17bdrv_co_do_copy_on_readv(void *bs, int64_t offset, unsigned int bytes, int64_t cluster_offset, int64_t cluster_bytes) "bs %p offset %"PRId64" bytes %u cluster_offset %"PRId64" cluster_bytes %"PRId64
ecc983a5
FZ
18bdrv_co_copy_range_from(void *src, uint64_t src_offset, void *dst, uint64_t dst_offset, uint64_t bytes, int read_flags, int write_flags) "src %p offset %"PRIu64" dst %p offset %"PRIu64" bytes %"PRIu64" rw flags 0x%x 0x%x"
19bdrv_co_copy_range_to(void *src, uint64_t src_offset, void *dst, uint64_t dst_offset, uint64_t bytes, int read_flags, int write_flags) "src %p offset %"PRIu64" dst %p offset %"PRIu64" bytes %"PRIu64" rw flags 0x%x 0x%x"
b54ca48e 20
500016e5 21# stream.c
5cb1a49e 22stream_one_iteration(void *s, int64_t offset, uint64_t bytes, int is_allocated) "s %p offset %" PRId64 " bytes %" PRIu64 " is_allocated %d"
5ccac6f1 23stream_start(void *bs, void *base, void *s) "bs %p base %p s %p"
b54ca48e 24
500016e5 25# commit.c
5cb1a49e 26commit_one_iteration(void *s, int64_t offset, uint64_t bytes, int is_allocated) "s %p offset %" PRId64 " bytes %" PRIu64 " is_allocated %d"
5ccac6f1 27commit_start(void *bs, void *base, void *top, void *s) "bs %p base %p top %p s %p"
b54ca48e 28
500016e5 29# mirror.c
5ccac6f1 30mirror_start(void *bs, void *s, void *opaque) "bs %p s %p opaque %p"
b54ca48e
DB
31mirror_restart_iter(void *s, int64_t cnt) "s %p dirty count %"PRId64
32mirror_before_flush(void *s) "s %p"
33mirror_before_drain(void *s, int64_t cnt) "s %p dirty count %"PRId64
34mirror_before_sleep(void *s, int64_t cnt, int synced, uint64_t delay_ns) "s %p dirty count %"PRId64" synced %d delay %"PRIu64"ns"
5cb1a49e
EB
35mirror_one_iteration(void *s, int64_t offset, uint64_t bytes) "s %p offset %" PRId64 " bytes %" PRIu64
36mirror_iteration_done(void *s, int64_t offset, uint64_t bytes, int ret) "s %p offset %" PRId64 " bytes %" PRIu64 " ret %d"
b54ca48e 37mirror_yield(void *s, int64_t cnt, int buf_free_count, int in_flight) "s %p dirty count %"PRId64" free buffers %d in_flight %d"
5cb1a49e 38mirror_yield_in_flight(void *s, int64_t offset, int in_flight) "s %p offset %" PRId64 " in_flight %d"
b54ca48e 39
500016e5 40# backup.c
5cb1a49e
EB
41backup_do_cow_enter(void *job, int64_t start, int64_t offset, uint64_t bytes) "job %p start %" PRId64 " offset %" PRId64 " bytes %" PRIu64
42backup_do_cow_return(void *job, int64_t offset, uint64_t bytes, int ret) "job %p offset %" PRId64 " bytes %" PRIu64 " ret %d"
beb5f545
VSO
43
44# block-copy.c
2c8074c4
VSO
45block_copy_skip(void *bcs, int64_t start) "bcs %p start %"PRId64
46block_copy_skip_range(void *bcs, int64_t start, uint64_t bytes) "bcs %p start %"PRId64" bytes %"PRId64
47block_copy_process(void *bcs, int64_t start) "bcs %p start %"PRId64
48block_copy_with_bounce_buffer_read_fail(void *bcs, int64_t start, int ret) "bcs %p start %"PRId64" ret %d"
49block_copy_with_bounce_buffer_write_fail(void *bcs, int64_t start, int ret) "bcs %p start %"PRId64" ret %d"
50block_copy_with_offload_fail(void *bcs, int64_t start, int ret) "bcs %p start %"PRId64" ret %d"
b54ca48e 51
500016e5 52# ../blockdev.c
b54ca48e
DB
53qmp_block_job_cancel(void *job) "job %p"
54qmp_block_job_pause(void *job) "job %p"
55qmp_block_job_resume(void *job) "job %p"
56qmp_block_job_complete(void *job) "job %p"
11b61fbc 57qmp_block_job_finalize(void *job) "job %p"
75f71059 58qmp_block_job_dismiss(void *job) "job %p"
b23c580c 59qmp_block_stream(void *bs) "bs %p"
b54ca48e 60
500016e5
MA
61# file-posix.c
62# file-win32.c
f8a30874 63file_paio_submit(void *acb, void *opaque, int64_t offset, int count, int type) "acb %p opaque %p offset %"PRId64" count %d type %d"
ecc983a5 64file_copy_file_range(void *bs, int src, int64_t src_off, int dst, int64_t dst_off, int64_t bytes, int flags, int64_t ret) "bs %p src_fd %d offset %"PRIu64" dst_fd %d offset %"PRIu64" bytes %"PRIu64" flags %d ret %"PRId64
b54ca48e 65
500016e5 66# qcow2.c
d710cf57 67qcow2_add_task(void *co, void *bs, void *pool, const char *action, int cluster_type, uint64_t file_cluster_offset, uint64_t offset, uint64_t bytes, void *qiov, size_t qiov_offset) "co %p bs %p pool %p: %s: cluster_type %d file_cluster_offset %" PRIu64 " offset %" PRIu64 " bytes %" PRIu64 " qiov %p qiov_offset %zu"
8908eb1a 68qcow2_writev_start_req(void *co, int64_t offset, int bytes) "co %p offset 0x%" PRIx64 " bytes %d"
b54ca48e
DB
69qcow2_writev_done_req(void *co, int ret) "co %p ret %d"
70qcow2_writev_start_part(void *co) "co %p"
71qcow2_writev_done_part(void *co, int cur_bytes) "co %p cur_bytes %d"
8908eb1a
VSO
72qcow2_writev_data(void *co, uint64_t offset) "co %p offset 0x%" PRIx64
73qcow2_pwrite_zeroes_start_req(void *co, int64_t offset, int count) "co %p offset 0x%" PRIx64 " count %d"
74qcow2_pwrite_zeroes(void *co, int64_t offset, int count) "co %p offset 0x%" PRIx64 " count %d"
c8bb23cb 75qcow2_skip_cow(void *co, uint64_t offset, int nb_clusters) "co %p offset 0x%" PRIx64 " nb_clusters %d"
b54ca48e 76
500016e5 77# qcow2-cluster.c
8908eb1a
VSO
78qcow2_alloc_clusters_offset(void *co, uint64_t offset, int bytes) "co %p offset 0x%" PRIx64 " bytes %d"
79qcow2_handle_copied(void *co, uint64_t guest_offset, uint64_t host_offset, uint64_t bytes) "co %p guest_offset 0x%" PRIx64 " host_offset 0x%" PRIx64 " bytes 0x%" PRIx64
80qcow2_handle_alloc(void *co, uint64_t guest_offset, uint64_t host_offset, uint64_t bytes) "co %p guest_offset 0x%" PRIx64 " host_offset 0x%" PRIx64 " bytes 0x%" PRIx64
81qcow2_do_alloc_clusters_offset(void *co, uint64_t guest_offset, uint64_t host_offset, int nb_clusters) "co %p guest_offset 0x%" PRIx64 " host_offset 0x%" PRIx64 " nb_clusters %d"
b54ca48e
DB
82qcow2_cluster_alloc_phys(void *co) "co %p"
83qcow2_cluster_link_l2(void *co, int nb_clusters) "co %p nb_clusters %d"
84
85qcow2_l2_allocate(void *bs, int l1_index) "bs %p l1_index %d"
86qcow2_l2_allocate_get_empty(void *bs, int l1_index) "bs %p l1_index %d"
87qcow2_l2_allocate_write_l2(void *bs, int l1_index) "bs %p l1_index %d"
88qcow2_l2_allocate_write_l1(void *bs, int l1_index) "bs %p l1_index %d"
89qcow2_l2_allocate_done(void *bs, int l1_index, int ret) "bs %p l1_index %d ret %d"
90
500016e5 91# qcow2-cache.c
8908eb1a 92qcow2_cache_get(void *co, int c, uint64_t offset, bool read_from_disk) "co %p is_l2_cache %d offset 0x%" PRIx64 " read_from_disk %d"
b54ca48e
DB
93qcow2_cache_get_replace_entry(void *co, int c, int i) "co %p is_l2_cache %d index %d"
94qcow2_cache_get_read(void *co, int c, int i) "co %p is_l2_cache %d index %d"
95qcow2_cache_get_done(void *co, int c, int i) "co %p is_l2_cache %d index %d"
96qcow2_cache_flush(void *co, int c) "co %p is_l2_cache %d"
97qcow2_cache_entry_flush(void *co, int c, int i) "co %p is_l2_cache %d index %d"
98
1477b6c8
VSO
99# qcow2-refcount.c
100qcow2_process_discards_failed_region(uint64_t offset, uint64_t bytes, int ret) "offset 0x%" PRIx64 " bytes 0x%" PRIx64 " ret %d"
101
500016e5 102# qed-l2-cache.c
b54ca48e
DB
103qed_alloc_l2_cache_entry(void *l2_cache, void *entry) "l2_cache %p entry %p"
104qed_unref_l2_cache_entry(void *entry, int ref) "entry %p ref %d"
105qed_find_l2_cache_entry(void *l2_cache, void *entry, uint64_t offset, int ref) "l2_cache %p entry %p offset %"PRIu64" ref %d"
106
500016e5 107# qed-table.c
b54ca48e
DB
108qed_read_table(void *s, uint64_t offset, void *table) "s %p offset %"PRIu64" table %p"
109qed_read_table_cb(void *s, void *table, int ret) "s %p table %p ret %d"
110qed_write_table(void *s, uint64_t offset, void *table, unsigned int index, unsigned int n) "s %p offset %"PRIu64" table %p index %u n %u"
111qed_write_table_cb(void *s, void *table, int flush, int ret) "s %p table %p flush %d ret %d"
112
500016e5 113# qed.c
b54ca48e
DB
114qed_need_check_timer_cb(void *s) "s %p"
115qed_start_need_check_timer(void *s) "s %p"
116qed_cancel_need_check_timer(void *s) "s %p"
117qed_aio_complete(void *s, void *acb, int ret) "s %p acb %p ret %d"
db73ee4b 118qed_aio_setup(void *s, void *acb, int64_t sector_num, int nb_sectors, void *opaque, int flags) "s %p acb %p sector_num %"PRId64" nb_sectors %d opaque %p flags 0x%x"
b54ca48e
DB
119qed_aio_next_io(void *s, void *acb, int ret, uint64_t cur_pos) "s %p acb %p ret %d cur_pos %"PRIu64
120qed_aio_read_data(void *s, void *acb, int ret, uint64_t offset, size_t len) "s %p acb %p ret %d offset %"PRIu64" len %zu"
121qed_aio_write_data(void *s, void *acb, int ret, uint64_t offset, size_t len) "s %p acb %p ret %d offset %"PRIu64" len %zu"
122qed_aio_write_prefill(void *s, void *acb, uint64_t start, size_t len, uint64_t offset) "s %p acb %p start %"PRIu64" len %zu offset %"PRIu64
123qed_aio_write_postfill(void *s, void *acb, uint64_t start, size_t len, uint64_t offset) "s %p acb %p start %"PRIu64" len %zu offset %"PRIu64
124qed_aio_write_main(void *s, void *acb, int ret, uint64_t offset, size_t len) "s %p acb %p ret %d offset %"PRIu64" len %zu"
da92c3ff 125
500016e5 126# vxhs.c
da92c3ff
AM
127vxhs_iio_callback(int error) "ctx is NULL: error %d"
128vxhs_iio_callback_chnfail(int err, int error) "QNIO channel failed, no i/o %d, %d"
129vxhs_iio_callback_unknwn(int opcode, int err) "unexpected opcode %d, errno %d"
130vxhs_aio_rw_invalid(int req) "Invalid I/O request iodir %d"
131vxhs_aio_rw_ioerr(char *guid, int iodir, uint64_t size, uint64_t off, void *acb, int ret, int err) "IO ERROR (vDisk %s) FOR : Read/Write = %d size = %"PRIu64" offset = %"PRIu64" ACB = %p. Error = %d, errno = %d"
132vxhs_get_vdisk_stat_err(char *guid, int ret, int err) "vDisk (%s) stat ioctl failed, ret = %d, errno = %d"
133vxhs_get_vdisk_stat(char *vdisk_guid, uint64_t vdisk_size) "vDisk %s stat ioctl returned size %"PRIu64
134vxhs_complete_aio(void *acb, uint64_t ret) "aio failed acb %p ret %"PRIu64
135vxhs_parse_uri_filename(const char *filename) "URI passed via bdrv_parse_filename %s"
136vxhs_open_vdiskid(const char *vdisk_id) "Opening vdisk-id %s"
137vxhs_open_hostinfo(char *of_vsa_addr, int port) "Adding host %s:%d to BDRVVXHSState"
138vxhs_open_iio_open(const char *host) "Failed to connect to storage agent on host %s"
139vxhs_parse_uri_hostinfo(char *host, int port) "Host: IP %s, Port %d"
140vxhs_close(char *vdisk_guid) "Closing vdisk %s"
141vxhs_get_creds(const char *cacert, const char *client_key, const char *client_cert) "cacert %s, client_key %s, client_cert %s"
bdd6a90a 142
500016e5 143# nvme.c
bdd6a90a
FZ
144nvme_kick(void *s, int queue) "s %p queue %d"
145nvme_dma_flush_queue_wait(void *s) "s %p"
146nvme_error(int cmd_specific, int sq_head, int sqid, int cid, int status) "cmd_specific %d sq_head %d sqid %d cid %d status 0x%x"
147nvme_process_completion(void *s, int index, int inflight) "s %p queue %d inflight %d"
148nvme_process_completion_queue_busy(void *s, int index) "s %p queue %d"
149nvme_complete_command(void *s, int index, int cid) "s %p queue %d cid %d"
150nvme_submit_command(void *s, int index, int cid) "s %p queue %d cid %d"
151nvme_submit_command_raw(int c0, int c1, int c2, int c3, int c4, int c5, int c6, int c7) "%02x %02x %02x %02x %02x %02x %02x %02x"
152nvme_handle_event(void *s) "s %p"
153nvme_poll_cb(void *s) "s %p"
154nvme_prw_aligned(void *s, int is_write, uint64_t offset, uint64_t bytes, int flags, int niov) "s %p is_write %d offset %"PRId64" bytes %"PRId64" flags %d niov %d"
155nvme_qiov_unaligned(const void *qiov, int n, void *base, size_t size, int align) "qiov %p n %d base %p size 0x%zx align 0x%x"
156nvme_prw_buffered(void *s, uint64_t offset, uint64_t bytes, int niov, int is_write) "s %p offset %"PRId64" bytes %"PRId64" niov %d is_write %d"
157nvme_rw_done(void *s, int is_write, uint64_t offset, uint64_t bytes, int ret) "s %p is_write %d offset %"PRId64" bytes %"PRId64" ret %d"
158nvme_dma_map_flush(void *s) "s %p"
159nvme_free_req_queue_wait(void *q) "q %p"
160nvme_cmd_map_qiov(void *s, void *cmd, void *req, void *qiov, int entries) "s %p cmd %p req %p qiov %p entries %d"
161nvme_cmd_map_qiov_pages(void *s, int i, uint64_t page) "s %p page[%d] 0x%"PRIx64
162nvme_cmd_map_qiov_iov(void *s, int i, void *page, int pages) "s %p iov[%d] %p pages %d"
ecc983a5 163
500016e5 164# iscsi.c
ecc983a5 165iscsi_xcopy(void *src_lun, uint64_t src_off, void *dst_lun, uint64_t dst_off, uint64_t bytes, int ret) "src_lun %p offset %"PRIu64" dst_lun %p offset %"PRIu64" bytes %"PRIu64" ret %d"
d8b4bad8 166
86f8cdf3 167# nbd.c
a39286dd 168nbd_parse_blockstatus_compliance(const char *err) "ignoring extra data from non-compliant server: %s"
75d34eb9 169nbd_structured_read_compliance(const char *type) "server sent non-compliant unaligned read %s chunk"
d8b4bad8
VSO
170nbd_read_reply_entry_fail(int ret, const char *err) "ret = %d, err: %s"
171nbd_co_request_fail(uint64_t from, uint32_t len, uint64_t handle, uint16_t flags, uint16_t type, const char *name, int ret, const char *err) "Request failed { .from = %" PRIu64", .len = %" PRIu32 ", .handle = %" PRIu64 ", .flags = 0x%" PRIx16 ", .type = %" PRIu16 " (%s) } ret = %d, err: %s"
0a93b359
VSO
172nbd_client_connect(const char *export_name) "export '%s'"
173nbd_client_connect_success(const char *export_name) "export '%s'"
023908a2 174
500016e5 175# ssh.c
023908a2
LV
176ssh_restart_coroutine(void *co) "co=%p"
177ssh_flush(void) "fsync"
b10d49d7 178ssh_check_host_key_knownhosts(void) "host key OK"
023908a2
LV
179ssh_connect_to_ssh(char *path, int flags, int mode) "opening file %s flags=0x%x creat_mode=0%o"
180ssh_co_yield(int sock, void *rd_handler, void *wr_handler) "s->sock=%d rd_handler=%p wr_handler=%p"
181ssh_co_yield_back(int sock) "s->sock=%d - back"
182ssh_getlength(int64_t length) "length=%" PRIi64
183ssh_co_create_opts(uint64_t size) "total_size=%" PRIu64
184ssh_read(int64_t offset, size_t size) "offset=%" PRIi64 " size=%zu"
b10d49d7
PT
185ssh_read_buf(void *buf, size_t size, size_t actual_size) "sftp_read buf=%p size=%zu (actual size=%zu)"
186ssh_read_return(ssize_t ret, int sftp_err) "sftp_read returned %zd (sftp error=%d)"
023908a2 187ssh_write(int64_t offset, size_t size) "offset=%" PRIi64 " size=%zu"
b10d49d7
PT
188ssh_write_buf(void *buf, size_t size, size_t actual_size) "sftp_write buf=%p size=%zu (actual size=%zu)"
189ssh_write_return(ssize_t ret, int sftp_err) "sftp_write returned %zd (sftp error=%d)"
023908a2 190ssh_seek(int64_t offset) "seeking to offset=%" PRIi64
b10d49d7
PT
191ssh_auth_methods(int methods) "auth methods=0x%x"
192ssh_server_status(int status) "server status=%d"
ed2a66de 193
500016e5 194# curl.c
ed2a66de
LV
195curl_timer_cb(long timeout_ms) "timer callback timeout_ms %ld"
196curl_sock_cb(int action, int fd) "sock action %d on fd %d"
197curl_read_cb(size_t realsize) "just reading %zu bytes"
198curl_open(const char *file) "opening %s"
199curl_open_size(uint64_t size) "size = %" PRIu64
200curl_setup_preadv(uint64_t bytes, uint64_t start, const char *range) "reading %" PRIu64 " at %" PRIu64 " (%s)"
201curl_close(void) "close"
4f7d28d7 202
500016e5 203# file-posix.c
4f7d28d7
LV
204file_xfs_write_zeroes(const char *error) "cannot write zero range (%s)"
205file_xfs_discard(const char *error) "cannot punch hole (%s)"
206file_FindEjectableOpticalMedia(const char *media) "Matching using %s"
207file_setup_cdrom(const char *partition) "Using %s as optical disc"
208file_hdev_is_sg(int type, int version) "SG device found: type=%d, version=%d"
70018a14 209
500016e5 210# sheepdog.c
70018a14
LV
211sheepdog_reconnect_to_sdog(void) "Wait for connection to be established"
212sheepdog_aio_read_response(void) "disable cache since the server doesn't support it"
213sheepdog_open(uint32_t vid) "0x%" PRIx32 " snapshot inode was open"
214sheepdog_close(const char *name) "%s"
215sheepdog_create_branch_snapshot(uint32_t vdi) "0x%" PRIx32 " is snapshot"
216sheepdog_create_branch_created(uint32_t vdi) "0x%" PRIx32 " is created"
217sheepdog_create_branch_new(uint32_t vdi) "0x%" PRIx32 " was newly created"
218sheepdog_co_rw_vector_update(uint32_t vdi, uint64_t oid, uint64_t data, long idx) "update ino (%" PRIu32 ") %" PRIu64 " %" PRIu64 " %ld"
219sheepdog_co_rw_vector_new(uint64_t oid) "new oid 0x%" PRIx64
220sheepdog_snapshot_create_info(const char *sn_name, const char *id, const char *name, int64_t size, int is_snapshot) "sn_info: name %s id_str %s s: name %s vm_state_size %" PRId64 " " "is_snapshot %d"
221sheepdog_snapshot_create(const char *sn_name, const char *id) "%s %s"
222sheepdog_snapshot_create_inode(const char *name, uint32_t snap, uint32_t vdi) "s->inode: name %s snap_id 0x%" PRIx32 " vdi 0x%" PRIx32
6b3048ce
MA
223
224# ssh.c
b10d49d7 225sftp_error(const char *op, const char *ssh_err, int ssh_err_code, int sftp_err_code) "%s failed: %s (libssh error code: %d, sftp error code: %d)"