summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2015-12-16 23:39:27 +0000
committermarkj <markj@FreeBSD.org>2015-12-16 23:39:27 +0000
commitfa1b8e9a4f8f45f1d5675a9f3cb1fd6c504ccbc3 (patch)
tree76bad87288933c1e1da6401e046cbcc61703d1fd /sys/cam
parentf64eb0a1eff489953daa256595df542b0f8aeffd (diff)
downloadFreeBSD-src-fa1b8e9a4f8f45f1d5675a9f3cb1fd6c504ccbc3.zip
FreeBSD-src-fa1b8e9a4f8f45f1d5675a9f3cb1fd6c504ccbc3.tar.gz
Fix style issues around existing SDT probes.
- Use SDT_PROBE<N>() instead of SDT_PROBE(). This has no functional effect at the moment, but will be needed for some future changes. - Don't hardcode the module component of the probe identifier. This is set automatically by the SDT framework. MFC after: 1 week
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/ctl/ctl_backend_block.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/sys/cam/ctl/ctl_backend_block.c b/sys/cam/ctl/ctl_backend_block.c
index df65ffd..7671132 100644
--- a/sys/cam/ctl/ctl_backend_block.c
+++ b/sys/cam/ctl/ctl_backend_block.c
@@ -610,10 +610,10 @@ ctl_be_block_flush_file(struct ctl_be_block_lun *be_lun,
ctl_complete_beio(beio);
}
-SDT_PROBE_DEFINE1(cbb, kernel, read, file_start, "uint64_t");
-SDT_PROBE_DEFINE1(cbb, kernel, write, file_start, "uint64_t");
-SDT_PROBE_DEFINE1(cbb, kernel, read, file_done,"uint64_t");
-SDT_PROBE_DEFINE1(cbb, kernel, write, file_done, "uint64_t");
+SDT_PROBE_DEFINE1(cbb, , read, file_start, "uint64_t");
+SDT_PROBE_DEFINE1(cbb, , write, file_start, "uint64_t");
+SDT_PROBE_DEFINE1(cbb, , read, file_done,"uint64_t");
+SDT_PROBE_DEFINE1(cbb, , write, file_done, "uint64_t");
static void
ctl_be_block_dispatch_file(struct ctl_be_block_lun *be_lun,
@@ -638,10 +638,10 @@ ctl_be_block_dispatch_file(struct ctl_be_block_lun *be_lun,
bzero(&xuio, sizeof(xuio));
if (beio->bio_cmd == BIO_READ) {
- SDT_PROBE(cbb, kernel, read, file_start, 0, 0, 0, 0, 0);
+ SDT_PROBE0(cbb, , read, file_start);
xuio.uio_rw = UIO_READ;
} else {
- SDT_PROBE(cbb, kernel, write, file_start, 0, 0, 0, 0, 0);
+ SDT_PROBE0(cbb, , write, file_start);
xuio.uio_rw = UIO_WRITE;
}
xuio.uio_offset = beio->io_offset;
@@ -684,7 +684,7 @@ ctl_be_block_dispatch_file(struct ctl_be_block_lun *be_lun,
error = VOP_READ(be_lun->vn, &xuio, flags, file_data->cred);
VOP_UNLOCK(be_lun->vn, 0);
- SDT_PROBE(cbb, kernel, read, file_done, 0, 0, 0, 0, 0);
+ SDT_PROBE0(cbb, , read, file_done);
if (error == 0 && xuio.uio_resid > 0) {
/*
* If we red less then requested (EOF), then
@@ -733,7 +733,7 @@ ctl_be_block_dispatch_file(struct ctl_be_block_lun *be_lun,
VOP_UNLOCK(be_lun->vn, 0);
vn_finished_write(mountpoint);
- SDT_PROBE(cbb, kernel, write, file_done, 0, 0, 0, 0, 0);
+ SDT_PROBE0(cbb, , write, file_done);
}
mtx_lock(&be_lun->io_lock);
@@ -869,10 +869,10 @@ ctl_be_block_dispatch_zvol(struct ctl_be_block_lun *be_lun,
bzero(&xuio, sizeof(xuio));
if (beio->bio_cmd == BIO_READ) {
- SDT_PROBE(cbb, kernel, read, file_start, 0, 0, 0, 0, 0);
+ SDT_PROBE0(cbb, , read, file_start);
xuio.uio_rw = UIO_READ;
} else {
- SDT_PROBE(cbb, kernel, write, file_start, 0, 0, 0, 0, 0);
+ SDT_PROBE0(cbb, , write, file_start);
xuio.uio_rw = UIO_WRITE;
}
xuio.uio_offset = beio->io_offset;
@@ -903,9 +903,9 @@ ctl_be_block_dispatch_zvol(struct ctl_be_block_lun *be_lun,
error = ENXIO;
if (beio->bio_cmd == BIO_READ)
- SDT_PROBE(cbb, kernel, read, file_done, 0, 0, 0, 0, 0);
+ SDT_PROBE0(cbb, , read, file_done);
else
- SDT_PROBE(cbb, kernel, write, file_done, 0, 0, 0, 0, 0);
+ SDT_PROBE0(cbb, , write, file_done);
mtx_lock(&be_lun->io_lock);
devstat_end_transaction(beio->lun->disk_stats, beio->io_len,
@@ -1501,10 +1501,10 @@ ctl_be_block_cw_dispatch(struct ctl_be_block_lun *be_lun,
}
}
-SDT_PROBE_DEFINE1(cbb, kernel, read, start, "uint64_t");
-SDT_PROBE_DEFINE1(cbb, kernel, write, start, "uint64_t");
-SDT_PROBE_DEFINE1(cbb, kernel, read, alloc_done, "uint64_t");
-SDT_PROBE_DEFINE1(cbb, kernel, write, alloc_done, "uint64_t");
+SDT_PROBE_DEFINE1(cbb, , read, start, "uint64_t");
+SDT_PROBE_DEFINE1(cbb, , write, start, "uint64_t");
+SDT_PROBE_DEFINE1(cbb, , read, alloc_done, "uint64_t");
+SDT_PROBE_DEFINE1(cbb, , write, alloc_done, "uint64_t");
static void
ctl_be_block_next(struct ctl_be_block_io *beio)
@@ -1549,9 +1549,9 @@ ctl_be_block_dispatch(struct ctl_be_block_lun *be_lun,
lbalen = ARGS(io);
if (lbalen->flags & CTL_LLF_WRITE) {
- SDT_PROBE(cbb, kernel, write, start, 0, 0, 0, 0, 0);
+ SDT_PROBE0(cbb, , write, start);
} else {
- SDT_PROBE(cbb, kernel, read, start, 0, 0, 0, 0, 0);
+ SDT_PROBE0(cbb, , read, start);
}
beio = ctl_alloc_beio(softc);
@@ -1638,10 +1638,10 @@ ctl_be_block_dispatch(struct ctl_be_block_lun *be_lun,
* need to get the data from the user first.
*/
if (beio->bio_cmd == BIO_READ) {
- SDT_PROBE(cbb, kernel, read, alloc_done, 0, 0, 0, 0, 0);
+ SDT_PROBE0(cbb, , read, alloc_done);
be_lun->dispatch(be_lun, beio);
} else {
- SDT_PROBE(cbb, kernel, write, alloc_done, 0, 0, 0, 0, 0);
+ SDT_PROBE0(cbb, , write, alloc_done);
#ifdef CTL_TIME_IO
getbinuptime(&io->io_hdr.dma_start_bt);
#endif
OpenPOWER on IntegriCloud