Skip to content

Commit f8a3087

Browse files
Fam Zhengkevmw
Fam Zheng
authored andcommitted
block: Prefix file driver trace points with "file_"
With in one module, trace points usually have a common prefix named after the module name. paio_submit and paio_submit_co are the only two trace points so far in the two file protocol drivers. As we are adding more, having a common prefix here is better so that trace points can be enabled with a glob. Rename them. Suggested-by: Kevin Wolf <[email protected]> Signed-off-by: Fam Zheng <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
1 parent 6703db1 commit f8a3087

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

block/file-posix.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1743,7 +1743,7 @@ static int paio_submit_co_full(BlockDriverState *bs, int fd,
17431743
assert(qiov->size == bytes);
17441744
}
17451745

1746-
trace_paio_submit_co(offset, bytes, type);
1746+
trace_file_paio_submit_co(offset, bytes, type);
17471747
pool = aio_get_thread_pool(bdrv_get_aio_context(bs));
17481748
return thread_pool_submit_co(pool, aio_worker, acb);
17491749
}

block/file-win32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static BlockAIOCB *paio_submit(BlockDriverState *bs, HANDLE hfile,
162162
acb->aio_nbytes = count;
163163
acb->aio_offset = offset;
164164

165-
trace_paio_submit(acb, opaque, offset, count, type);
165+
trace_file_paio_submit(acb, opaque, offset, count, type);
166166
pool = aio_get_thread_pool(bdrv_get_aio_context(bs));
167167
return thread_pool_submit_aio(pool, aio_worker, acb, cb, opaque);
168168
}

block/trace-events

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ qmp_block_stream(void *bs, void *job) "bs %p job %p"
5555

5656
# block/file-win32.c
5757
# block/file-posix.c
58-
paio_submit_co(int64_t offset, int count, int type) "offset %"PRId64" count %d type %d"
59-
paio_submit(void *acb, void *opaque, int64_t offset, int count, int type) "acb %p opaque %p offset %"PRId64" count %d type %d"
58+
file_paio_submit_co(int64_t offset, int count, int type) "offset %"PRId64" count %d type %d"
59+
file_paio_submit(void *acb, void *opaque, int64_t offset, int count, int type) "acb %p opaque %p offset %"PRId64" count %d type %d"
6060

6161
# block/qcow2.c
6262
qcow2_writev_start_req(void *co, int64_t offset, int bytes) "co %p offset 0x%" PRIx64 " bytes %d"

0 commit comments

Comments
 (0)