Change the module name for the I/O provider to "kernel" from

"genunix"  This will requires us to modify externally created
DTrace scripts but makes logical sense for FreeBSD.

Requested by: rpaulo
MFC after:	2 weeks
This commit is contained in:
George V. Neville-Neil 2012-09-25 19:16:28 +00:00
parent a916893f23
commit 0bf9cb917c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240924

View File

@ -56,7 +56,7 @@ static dtrace_pattr_t dtio_attr = {
{ DTRACE_STABILITY_STABLE, DTRACE_STABILITY_STABLE, DTRACE_CLASS_COMMON },
};
static char *genunix = "genunix";
static char *kernel = "kernel";
/*
* Name strings.
@ -113,25 +113,25 @@ dtio_provide(void *arg, dtrace_probedesc_t *desc)
if (desc != NULL)
return;
if (dtrace_probe_lookup(dtio_id, genunix, NULL,
if (dtrace_probe_lookup(dtio_id, kernel, NULL,
dtio_start_str) == 0) {
dtio_start_id = dtrace_probe_create(dtio_id, genunix, NULL,
dtio_start_id = dtrace_probe_create(dtio_id, kernel, NULL,
dtio_start_str, 0, NULL);
}
if (dtrace_probe_lookup(dtio_id, genunix, NULL, dtio_done_str) == 0) {
dtio_done_id = dtrace_probe_create(dtio_id, genunix, NULL,
if (dtrace_probe_lookup(dtio_id, kernel, NULL, dtio_done_str) == 0) {
dtio_done_id = dtrace_probe_create(dtio_id, kernel, NULL,
dtio_done_str, 0, NULL);
}
if (dtrace_probe_lookup(dtio_id, genunix, NULL,
if (dtrace_probe_lookup(dtio_id, kernel, NULL,
dtio_wait_start_str) == 0) {
dtio_wait_start_id = dtrace_probe_create(dtio_id, genunix,
dtio_wait_start_id = dtrace_probe_create(dtio_id, kernel,
NULL,
dtio_wait_start_str,
0, NULL);
}
if (dtrace_probe_lookup(dtio_id, genunix, NULL,
if (dtrace_probe_lookup(dtio_id, kernel, NULL,
dtio_wait_done_str) == 0) {
dtio_wait_done_id = dtrace_probe_create(dtio_id, genunix, NULL,
dtio_wait_done_id = dtrace_probe_create(dtio_id, kernel, NULL,
dtio_wait_done_str, 0, NULL);
}