aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2022-08-29 17:22:36 +0000
committerMark Johnston <markj@FreeBSD.org>2022-09-21 20:09:25 +0000
commit22ea3be839edcc877c4199081147499065595d09 (patch)
tree9756acd8577bd94b09befb4c7eb496ea0fe4c593
parent19dad7309de47c4fcf2ba20fd508629734185513 (diff)
downloadsrc-22ea3be839edcc877c4199081147499065595d09.tar.gz
src-22ea3be839edcc877c4199081147499065595d09.zip
devstat: Remove DTrace io probes lacking a BIO reference
The io:::start and end probes trace individual I/O requests. Also remove the unimplemented wait-start and wait-done probes. PR: 266098 (cherry picked from commit 32faf071bd54c0e2e1ac07700f7ea5a3d6fa8d51)
-rw-r--r--sys/kern/subr_devstat.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index 98a41fd179c2..7b6e778a327f 100644
--- a/sys/kern/subr_devstat.c
+++ b/sys/kern/subr_devstat.c
@@ -52,17 +52,9 @@ SDT_PROVIDER_DEFINE(io);
SDT_PROBE_DEFINE2(io, , , start, "struct bio *", "struct devstat *");
SDT_PROBE_DEFINE2(io, , , done, "struct bio *", "struct devstat *");
-SDT_PROBE_DEFINE2(io, , , wait__start, "struct bio *",
- "struct devstat *");
-SDT_PROBE_DEFINE2(io, , , wait__done, "struct bio *",
- "struct devstat *");
-#define DTRACE_DEVSTAT_START() SDT_PROBE2(io, , , start, NULL, ds)
#define DTRACE_DEVSTAT_BIO_START() SDT_PROBE2(io, , , start, bp, ds)
-#define DTRACE_DEVSTAT_DONE() SDT_PROBE2(io, , , done, NULL, ds)
#define DTRACE_DEVSTAT_BIO_DONE() SDT_PROBE2(io, , , done, bp, ds)
-#define DTRACE_DEVSTAT_WAIT_START() SDT_PROBE2(io, , , wait__start, NULL, ds)
-#define DTRACE_DEVSTAT_WAIT_DONE() SDT_PROBE2(io, , , wait__done, NULL, ds)
static int devstat_num_devs;
static long devstat_generation = 1;
@@ -245,7 +237,6 @@ devstat_start_transaction(struct devstat *ds, const struct bintime *now)
binuptime(&ds->busy_from);
}
atomic_add_rel_int(&ds->sequence0, 1);
- DTRACE_DEVSTAT_START();
}
void
@@ -341,7 +332,6 @@ devstat_end_transaction(struct devstat *ds, uint32_t bytes,
ds->end_count++;
atomic_add_rel_int(&ds->sequence0, 1);
- DTRACE_DEVSTAT_DONE();
}
void