git: 22ea3be839ed - stable/13 - devstat: Remove DTrace io probes lacking a BIO reference
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Sep 2022 20:09:43 UTC
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=22ea3be839edcc877c4199081147499065595d09
commit 22ea3be839edcc877c4199081147499065595d09
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-08-29 17:22:36 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-09-21 20:09:25 +0000
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)
---
sys/kern/subr_devstat.c | 10 ----------
1 file changed, 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