Page MenuHomeFreeBSD

D35379.diff
No OneTemporary

D35379.diff

diff --git a/sys/cddl/dev/dtmalloc/dtmalloc.c b/sys/cddl/dev/dtmalloc/dtmalloc.c
--- a/sys/cddl/dev/dtmalloc/dtmalloc.c
+++ b/sys/cddl/dev/dtmalloc/dtmalloc.c
@@ -39,7 +39,6 @@
extern bool dtrace_malloc_enabled;
static uint32_t dtrace_malloc_enabled_count;
-static d_open_t dtmalloc_open;
static int dtmalloc_unload(void);
static void dtmalloc_getargdesc(void *, dtrace_id_t, void *, dtrace_argdesc_t *);
static void dtmalloc_provide(void *, dtrace_probedesc_t *);
@@ -48,12 +47,6 @@
static void dtmalloc_disable(void *, dtrace_id_t, void *);
static void dtmalloc_load(void *);
-static struct cdevsw dtmalloc_cdevsw = {
- .d_version = D_VERSION,
- .d_open = dtmalloc_open,
- .d_name = "dtmalloc",
-};
-
static dtrace_pattr_t dtmalloc_attr = {
{ DTRACE_STABILITY_STABLE, DTRACE_STABILITY_STABLE, DTRACE_CLASS_COMMON },
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
@@ -75,7 +68,6 @@
.dtps_destroy = dtmalloc_destroy
};
-static struct cdev *dtmalloc_cdev;
static dtrace_provider_id_t dtmalloc_id;
static void
@@ -173,10 +165,6 @@
static void
dtmalloc_load(void *dummy)
{
- /* Create the /dev/dtrace/dtmalloc entry. */
- dtmalloc_cdev = make_dev(&dtmalloc_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600,
- "dtrace/dtmalloc");
-
if (dtrace_register("dtmalloc", &dtmalloc_attr, DTRACE_PRIV_USER,
NULL, &dtmalloc_pops, NULL, &dtmalloc_id) != 0)
return;
@@ -195,8 +183,6 @@
if ((error = dtrace_unregister(dtmalloc_id)) != 0)
return (error);
- destroy_dev(dtmalloc_cdev);
-
return (error);
}
@@ -224,12 +210,6 @@
return (error);
}
-static int
-dtmalloc_open(struct cdev *dev __unused, int oflags __unused, int devtype __unused, struct thread *td __unused)
-{
- return (0);
-}
-
SYSINIT(dtmalloc_load, SI_SUB_DTRACE_PROVIDER, SI_ORDER_ANY, dtmalloc_load, NULL);
SYSUNINIT(dtmalloc_unload, SI_SUB_DTRACE_PROVIDER, SI_ORDER_ANY, dtmalloc_unload, NULL);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 9:57 AM (21 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14656860
Default Alt Text
D35379.diff (1 KB)

Event Timeline