Remove unused upstream DTrace provider implementations that are duplicates
of providers under sys/cddl/dev/. Also remove sdt_subr.c, which isn't used in FreeBSD's SDT implementation. Suggested by: rwatson
This commit is contained in:
parent
8c033d13b5
commit
d854427d60
@ -1,341 +0,0 @@
|
||||
/*
|
||||
* CDDL HEADER START
|
||||
*
|
||||
* The contents of this file are subject to the terms of the
|
||||
* Common Development and Distribution License (the "License").
|
||||
* You may not use this file except in compliance with the License.
|
||||
*
|
||||
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
||||
* or http://www.opensolaris.org/os/licensing.
|
||||
* See the License for the specific language governing permissions
|
||||
* and limitations under the License.
|
||||
*
|
||||
* When distributing Covered Code, include this CDDL HEADER in each
|
||||
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
||||
* If applicable, add the following below this CDDL HEADER, with the
|
||||
* fields enclosed by brackets "[]" replaced with your own identifying
|
||||
* information: Portions Copyright [yyyy] [name of copyright owner]
|
||||
*
|
||||
* CDDL HEADER END
|
||||
*/
|
||||
/*
|
||||
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
|
||||
* Use is subject to license terms.
|
||||
*/
|
||||
|
||||
#pragma ident "%Z%%M% %I% %E% SMI"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/open.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/modctl.h>
|
||||
#include <sys/cmn_err.h>
|
||||
#include <sys/bitmap.h>
|
||||
#include <sys/debug.h>
|
||||
#include <sys/kmem.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/lockstat.h>
|
||||
#include <sys/atomic.h>
|
||||
#include <sys/dtrace.h>
|
||||
|
||||
#include <sys/ddi.h>
|
||||
#include <sys/sunddi.h>
|
||||
|
||||
typedef struct lockstat_probe {
|
||||
const char *lsp_func;
|
||||
const char *lsp_name;
|
||||
int lsp_probe;
|
||||
dtrace_id_t lsp_id;
|
||||
} lockstat_probe_t;
|
||||
|
||||
lockstat_probe_t lockstat_probes[] =
|
||||
{
|
||||
{ LS_MUTEX_ENTER, LSA_ACQUIRE, LS_MUTEX_ENTER_ACQUIRE },
|
||||
{ LS_MUTEX_ENTER, LSA_BLOCK, LS_MUTEX_ENTER_BLOCK },
|
||||
{ LS_MUTEX_ENTER, LSA_SPIN, LS_MUTEX_ENTER_SPIN },
|
||||
{ LS_MUTEX_EXIT, LSA_RELEASE, LS_MUTEX_EXIT_RELEASE },
|
||||
{ LS_MUTEX_DESTROY, LSA_RELEASE, LS_MUTEX_DESTROY_RELEASE },
|
||||
{ LS_MUTEX_TRYENTER, LSA_ACQUIRE, LS_MUTEX_TRYENTER_ACQUIRE },
|
||||
{ LS_LOCK_SET, LSS_ACQUIRE, LS_LOCK_SET_ACQUIRE },
|
||||
{ LS_LOCK_SET, LSS_SPIN, LS_LOCK_SET_SPIN },
|
||||
{ LS_LOCK_SET_SPL, LSS_ACQUIRE, LS_LOCK_SET_SPL_ACQUIRE },
|
||||
{ LS_LOCK_SET_SPL, LSS_SPIN, LS_LOCK_SET_SPL_SPIN },
|
||||
{ LS_LOCK_TRY, LSS_ACQUIRE, LS_LOCK_TRY_ACQUIRE },
|
||||
{ LS_LOCK_CLEAR, LSS_RELEASE, LS_LOCK_CLEAR_RELEASE },
|
||||
{ LS_LOCK_CLEAR_SPLX, LSS_RELEASE, LS_LOCK_CLEAR_SPLX_RELEASE },
|
||||
{ LS_CLOCK_UNLOCK, LSS_RELEASE, LS_CLOCK_UNLOCK_RELEASE },
|
||||
{ LS_RW_ENTER, LSR_ACQUIRE, LS_RW_ENTER_ACQUIRE },
|
||||
{ LS_RW_ENTER, LSR_BLOCK, LS_RW_ENTER_BLOCK },
|
||||
{ LS_RW_EXIT, LSR_RELEASE, LS_RW_EXIT_RELEASE },
|
||||
{ LS_RW_TRYENTER, LSR_ACQUIRE, LS_RW_TRYENTER_ACQUIRE },
|
||||
{ LS_RW_TRYUPGRADE, LSR_UPGRADE, LS_RW_TRYUPGRADE_UPGRADE },
|
||||
{ LS_RW_DOWNGRADE, LSR_DOWNGRADE, LS_RW_DOWNGRADE_DOWNGRADE },
|
||||
{ LS_THREAD_LOCK, LST_SPIN, LS_THREAD_LOCK_SPIN },
|
||||
{ LS_THREAD_LOCK_HIGH, LST_SPIN, LS_THREAD_LOCK_HIGH_SPIN },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
static dev_info_t *lockstat_devi; /* saved in xxattach() for xxinfo() */
|
||||
static kmutex_t lockstat_test; /* for testing purposes only */
|
||||
static dtrace_provider_id_t lockstat_id;
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
lockstat_enable(void *arg, dtrace_id_t id, void *parg)
|
||||
{
|
||||
lockstat_probe_t *probe = parg;
|
||||
|
||||
ASSERT(!lockstat_probemap[probe->lsp_probe]);
|
||||
|
||||
lockstat_probemap[probe->lsp_probe] = id;
|
||||
membar_producer();
|
||||
|
||||
lockstat_hot_patch();
|
||||
membar_producer();
|
||||
|
||||
/*
|
||||
* Immediately generate a record for the lockstat_test mutex
|
||||
* to verify that the mutex hot-patch code worked as expected.
|
||||
*/
|
||||
mutex_enter(&lockstat_test);
|
||||
mutex_exit(&lockstat_test);
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
lockstat_disable(void *arg, dtrace_id_t id, void *parg)
|
||||
{
|
||||
lockstat_probe_t *probe = parg;
|
||||
int i;
|
||||
|
||||
ASSERT(lockstat_probemap[probe->lsp_probe]);
|
||||
|
||||
lockstat_probemap[probe->lsp_probe] = 0;
|
||||
lockstat_hot_patch();
|
||||
membar_producer();
|
||||
|
||||
/*
|
||||
* See if we have any probes left enabled.
|
||||
*/
|
||||
for (i = 0; i < LS_NPROBES; i++) {
|
||||
if (lockstat_probemap[i]) {
|
||||
/*
|
||||
* This probe is still enabled. We don't need to deal
|
||||
* with waiting for all threads to be out of the
|
||||
* lockstat critical sections; just return.
|
||||
*/
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* The delay() here isn't as cheesy as you might think. We don't
|
||||
* want to busy-loop in the kernel, so we have to give up the
|
||||
* CPU between calls to lockstat_active_threads(); that much is
|
||||
* obvious. But the reason it's a do..while loop rather than a
|
||||
* while loop is subtle. The memory barrier above guarantees that
|
||||
* no threads will enter the lockstat code from this point forward.
|
||||
* However, another thread could already be executing lockstat code
|
||||
* without our knowledge if the update to its t_lockstat field hasn't
|
||||
* cleared its CPU's store buffer. Delaying for one clock tick
|
||||
* guarantees that either (1) the thread will have *ample* time to
|
||||
* complete its work, or (2) the thread will be preempted, in which
|
||||
* case it will have to grab and release a dispatcher lock, which
|
||||
* will flush that CPU's store buffer. Either way we're covered.
|
||||
*/
|
||||
do {
|
||||
delay(1);
|
||||
} while (lockstat_active_threads());
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static int
|
||||
lockstat_open(dev_t *devp, int flag, int otyp, cred_t *cred_p)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
lockstat_info(dev_info_t *dip, ddi_info_cmd_t infocmd, void *arg, void **result)
|
||||
{
|
||||
int error;
|
||||
|
||||
switch (infocmd) {
|
||||
case DDI_INFO_DEVT2DEVINFO:
|
||||
*result = (void *) lockstat_devi;
|
||||
error = DDI_SUCCESS;
|
||||
break;
|
||||
case DDI_INFO_DEVT2INSTANCE:
|
||||
*result = (void *)0;
|
||||
error = DDI_SUCCESS;
|
||||
break;
|
||||
default:
|
||||
error = DDI_FAILURE;
|
||||
}
|
||||
return (error);
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
lockstat_provide(void *arg, const dtrace_probedesc_t *desc)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
for (i = 0; lockstat_probes[i].lsp_func != NULL; i++) {
|
||||
lockstat_probe_t *probe = &lockstat_probes[i];
|
||||
|
||||
if (dtrace_probe_lookup(lockstat_id, "genunix",
|
||||
probe->lsp_func, probe->lsp_name) != 0)
|
||||
continue;
|
||||
|
||||
ASSERT(!probe->lsp_id);
|
||||
probe->lsp_id = dtrace_probe_create(lockstat_id,
|
||||
"genunix", probe->lsp_func, probe->lsp_name,
|
||||
1, probe);
|
||||
}
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
lockstat_destroy(void *arg, dtrace_id_t id, void *parg)
|
||||
{
|
||||
lockstat_probe_t *probe = parg;
|
||||
|
||||
ASSERT(!lockstat_probemap[probe->lsp_probe]);
|
||||
probe->lsp_id = 0;
|
||||
}
|
||||
|
||||
static dtrace_pattr_t lockstat_attr = {
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON },
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON },
|
||||
};
|
||||
|
||||
static dtrace_pops_t lockstat_pops = {
|
||||
lockstat_provide,
|
||||
NULL,
|
||||
lockstat_enable,
|
||||
lockstat_disable,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
lockstat_destroy
|
||||
};
|
||||
|
||||
static int
|
||||
lockstat_attach(dev_info_t *devi, ddi_attach_cmd_t cmd)
|
||||
{
|
||||
switch (cmd) {
|
||||
case DDI_ATTACH:
|
||||
break;
|
||||
case DDI_RESUME:
|
||||
return (DDI_SUCCESS);
|
||||
default:
|
||||
return (DDI_FAILURE);
|
||||
}
|
||||
|
||||
if (ddi_create_minor_node(devi, "lockstat", S_IFCHR, 0,
|
||||
DDI_PSEUDO, 0) == DDI_FAILURE ||
|
||||
dtrace_register("lockstat", &lockstat_attr, DTRACE_PRIV_KERNEL,
|
||||
NULL, &lockstat_pops, NULL, &lockstat_id) != 0) {
|
||||
ddi_remove_minor_node(devi, NULL);
|
||||
return (DDI_FAILURE);
|
||||
}
|
||||
|
||||
lockstat_probe = dtrace_probe;
|
||||
membar_producer();
|
||||
|
||||
ddi_report_dev(devi);
|
||||
lockstat_devi = devi;
|
||||
return (DDI_SUCCESS);
|
||||
}
|
||||
|
||||
static int
|
||||
lockstat_detach(dev_info_t *devi, ddi_detach_cmd_t cmd)
|
||||
{
|
||||
switch (cmd) {
|
||||
case DDI_DETACH:
|
||||
break;
|
||||
case DDI_SUSPEND:
|
||||
return (DDI_SUCCESS);
|
||||
default:
|
||||
return (DDI_FAILURE);
|
||||
}
|
||||
|
||||
if (dtrace_unregister(lockstat_id) != 0)
|
||||
return (DDI_FAILURE);
|
||||
|
||||
ddi_remove_minor_node(devi, NULL);
|
||||
return (DDI_SUCCESS);
|
||||
}
|
||||
|
||||
/*
|
||||
* Configuration data structures
|
||||
*/
|
||||
static struct cb_ops lockstat_cb_ops = {
|
||||
lockstat_open, /* open */
|
||||
nodev, /* close */
|
||||
nulldev, /* strategy */
|
||||
nulldev, /* print */
|
||||
nodev, /* dump */
|
||||
nodev, /* read */
|
||||
nodev, /* write */
|
||||
nodev, /* ioctl */
|
||||
nodev, /* devmap */
|
||||
nodev, /* mmap */
|
||||
nodev, /* segmap */
|
||||
nochpoll, /* poll */
|
||||
ddi_prop_op, /* cb_prop_op */
|
||||
0, /* streamtab */
|
||||
D_MP | D_NEW /* Driver compatibility flag */
|
||||
};
|
||||
|
||||
static struct dev_ops lockstat_ops = {
|
||||
DEVO_REV, /* devo_rev, */
|
||||
0, /* refcnt */
|
||||
lockstat_info, /* getinfo */
|
||||
nulldev, /* identify */
|
||||
nulldev, /* probe */
|
||||
lockstat_attach, /* attach */
|
||||
lockstat_detach, /* detach */
|
||||
nulldev, /* reset */
|
||||
&lockstat_cb_ops, /* cb_ops */
|
||||
NULL, /* bus_ops */
|
||||
};
|
||||
|
||||
static struct modldrv modldrv = {
|
||||
&mod_driverops, /* Type of module. This one is a driver */
|
||||
"Lock Statistics %I%", /* name of module */
|
||||
&lockstat_ops, /* driver ops */
|
||||
};
|
||||
|
||||
static struct modlinkage modlinkage = {
|
||||
MODREV_1, (void *)&modldrv, NULL
|
||||
};
|
||||
|
||||
int
|
||||
_init(void)
|
||||
{
|
||||
return (mod_install(&modlinkage));
|
||||
}
|
||||
|
||||
int
|
||||
_fini(void)
|
||||
{
|
||||
return (mod_remove(&modlinkage));
|
||||
}
|
||||
|
||||
int
|
||||
_info(struct modinfo *modinfop)
|
||||
{
|
||||
return (mod_info(&modlinkage, modinfop));
|
||||
}
|
@ -1,576 +0,0 @@
|
||||
/*
|
||||
* CDDL HEADER START
|
||||
*
|
||||
* The contents of this file are subject to the terms of the
|
||||
* Common Development and Distribution License (the "License").
|
||||
* You may not use this file except in compliance with the License.
|
||||
*
|
||||
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
||||
* or http://www.opensolaris.org/os/licensing.
|
||||
* See the License for the specific language governing permissions
|
||||
* and limitations under the License.
|
||||
*
|
||||
* When distributing Covered Code, include this CDDL HEADER in each
|
||||
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
||||
* If applicable, add the following below this CDDL HEADER, with the
|
||||
* fields enclosed by brackets "[]" replaced with your own identifying
|
||||
* information: Portions Copyright [yyyy] [name of copyright owner]
|
||||
*
|
||||
* CDDL HEADER END
|
||||
*/
|
||||
/*
|
||||
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
|
||||
* Use is subject to license terms.
|
||||
*/
|
||||
|
||||
#pragma ident "%Z%%M% %I% %E% SMI"
|
||||
|
||||
#include <sys/errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/modctl.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/ddi.h>
|
||||
#include <sys/sunddi.h>
|
||||
#include <sys/cpuvar.h>
|
||||
#include <sys/kmem.h>
|
||||
#include <sys/strsubr.h>
|
||||
#include <sys/dtrace.h>
|
||||
#include <sys/cyclic.h>
|
||||
#include <sys/atomic.h>
|
||||
|
||||
static dev_info_t *profile_devi;
|
||||
static dtrace_provider_id_t profile_id;
|
||||
|
||||
/*
|
||||
* Regardless of platform, the stack frames look like this in the case of the
|
||||
* profile provider:
|
||||
*
|
||||
* profile_fire
|
||||
* cyclic_expire
|
||||
* cyclic_fire
|
||||
* [ cbe ]
|
||||
* [ interrupt code ]
|
||||
*
|
||||
* On x86, there are five frames from the generic interrupt code; further, the
|
||||
* interrupted instruction appears as its own stack frame, giving us a total of
|
||||
* 10.
|
||||
*
|
||||
* On SPARC, the picture is further complicated because the compiler
|
||||
* optimizes away tail-calls -- so the following frames are optimized away:
|
||||
*
|
||||
* profile_fire
|
||||
* cyclic_expire
|
||||
*
|
||||
* This gives three frames. However, on DEBUG kernels, the cyclic_expire
|
||||
* frame cannot be tail-call eliminated, yielding four frames in this case.
|
||||
*
|
||||
* All of the above constraints lead to the mess below. Yes, the profile
|
||||
* provider should ideally figure this out on-the-fly by hitting one of its own
|
||||
* probes and then walking its own stack trace. This is complicated, however,
|
||||
* and the static definition doesn't seem to be overly brittle. Still, we
|
||||
* allow for a manual override in case we get it completely wrong.
|
||||
*/
|
||||
#ifdef __x86
|
||||
#define PROF_ARTIFICIAL_FRAMES 10
|
||||
#else
|
||||
#ifdef __sparc
|
||||
#ifdef DEBUG
|
||||
#define PROF_ARTIFICIAL_FRAMES 4
|
||||
#else
|
||||
#define PROF_ARTIFICIAL_FRAMES 3
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define PROF_NAMELEN 15
|
||||
|
||||
#define PROF_PROFILE 0
|
||||
#define PROF_TICK 1
|
||||
#define PROF_PREFIX_PROFILE "profile-"
|
||||
#define PROF_PREFIX_TICK "tick-"
|
||||
|
||||
typedef struct profile_probe {
|
||||
char prof_name[PROF_NAMELEN];
|
||||
dtrace_id_t prof_id;
|
||||
int prof_kind;
|
||||
hrtime_t prof_interval;
|
||||
cyclic_id_t prof_cyclic;
|
||||
} profile_probe_t;
|
||||
|
||||
typedef struct profile_probe_percpu {
|
||||
hrtime_t profc_expected;
|
||||
hrtime_t profc_interval;
|
||||
profile_probe_t *profc_probe;
|
||||
} profile_probe_percpu_t;
|
||||
|
||||
hrtime_t profile_interval_min = NANOSEC / 5000; /* 5000 hz */
|
||||
int profile_aframes = 0; /* override */
|
||||
|
||||
static int profile_rates[] = {
|
||||
97, 199, 499, 997, 1999,
|
||||
4001, 4999, 0, 0, 0,
|
||||
0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
static int profile_ticks[] = {
|
||||
1, 10, 100, 500, 1000,
|
||||
5000, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
/*
|
||||
* profile_max defines the upper bound on the number of profile probes that
|
||||
* can exist (this is to prevent malicious or clumsy users from exhausing
|
||||
* system resources by creating a slew of profile probes). At mod load time,
|
||||
* this gets its value from PROFILE_MAX_DEFAULT or profile-max-probes if it's
|
||||
* present in the profile.conf file.
|
||||
*/
|
||||
#define PROFILE_MAX_DEFAULT 1000 /* default max. number of probes */
|
||||
static uint32_t profile_max; /* maximum number of profile probes */
|
||||
static uint32_t profile_total; /* current number of profile probes */
|
||||
|
||||
static void
|
||||
profile_fire(void *arg)
|
||||
{
|
||||
profile_probe_percpu_t *pcpu = arg;
|
||||
profile_probe_t *prof = pcpu->profc_probe;
|
||||
hrtime_t late;
|
||||
|
||||
late = dtrace_gethrtime() - pcpu->profc_expected;
|
||||
pcpu->profc_expected += pcpu->profc_interval;
|
||||
|
||||
dtrace_probe(prof->prof_id, CPU->cpu_profile_pc,
|
||||
CPU->cpu_profile_upc, late, 0, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
profile_tick(void *arg)
|
||||
{
|
||||
profile_probe_t *prof = arg;
|
||||
|
||||
dtrace_probe(prof->prof_id, CPU->cpu_profile_pc,
|
||||
CPU->cpu_profile_upc, 0, 0, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
profile_create(hrtime_t interval, const char *name, int kind)
|
||||
{
|
||||
profile_probe_t *prof;
|
||||
int nr_frames = PROF_ARTIFICIAL_FRAMES + dtrace_mach_aframes();
|
||||
|
||||
if (profile_aframes)
|
||||
nr_frames = profile_aframes;
|
||||
|
||||
if (interval < profile_interval_min)
|
||||
return;
|
||||
|
||||
if (dtrace_probe_lookup(profile_id, NULL, NULL, name) != 0)
|
||||
return;
|
||||
|
||||
atomic_inc_32(&profile_total);
|
||||
if (profile_total > profile_max) {
|
||||
atomic_dec_32(&profile_total);
|
||||
return;
|
||||
}
|
||||
|
||||
prof = kmem_zalloc(sizeof (profile_probe_t), KM_SLEEP);
|
||||
(void) strcpy(prof->prof_name, name);
|
||||
prof->prof_interval = interval;
|
||||
prof->prof_cyclic = CYCLIC_NONE;
|
||||
prof->prof_kind = kind;
|
||||
prof->prof_id = dtrace_probe_create(profile_id,
|
||||
NULL, NULL, name, nr_frames, prof);
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
profile_provide(void *arg, const dtrace_probedesc_t *desc)
|
||||
{
|
||||
int i, j, rate, kind;
|
||||
hrtime_t val = 0, mult = 1, len;
|
||||
const char *name, *suffix = NULL;
|
||||
|
||||
const struct {
|
||||
char *prefix;
|
||||
int kind;
|
||||
} types[] = {
|
||||
{ PROF_PREFIX_PROFILE, PROF_PROFILE },
|
||||
{ PROF_PREFIX_TICK, PROF_TICK },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
const struct {
|
||||
char *name;
|
||||
hrtime_t mult;
|
||||
} suffixes[] = {
|
||||
{ "ns", NANOSEC / NANOSEC },
|
||||
{ "nsec", NANOSEC / NANOSEC },
|
||||
{ "us", NANOSEC / MICROSEC },
|
||||
{ "usec", NANOSEC / MICROSEC },
|
||||
{ "ms", NANOSEC / MILLISEC },
|
||||
{ "msec", NANOSEC / MILLISEC },
|
||||
{ "s", NANOSEC / SEC },
|
||||
{ "sec", NANOSEC / SEC },
|
||||
{ "m", NANOSEC * (hrtime_t)60 },
|
||||
{ "min", NANOSEC * (hrtime_t)60 },
|
||||
{ "h", NANOSEC * (hrtime_t)(60 * 60) },
|
||||
{ "hour", NANOSEC * (hrtime_t)(60 * 60) },
|
||||
{ "d", NANOSEC * (hrtime_t)(24 * 60 * 60) },
|
||||
{ "day", NANOSEC * (hrtime_t)(24 * 60 * 60) },
|
||||
{ "hz", 0 },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
if (desc == NULL) {
|
||||
char n[PROF_NAMELEN];
|
||||
|
||||
/*
|
||||
* If no description was provided, provide all of our probes.
|
||||
*/
|
||||
for (i = 0; i < sizeof (profile_rates) / sizeof (int); i++) {
|
||||
if ((rate = profile_rates[i]) == 0)
|
||||
continue;
|
||||
|
||||
(void) snprintf(n, PROF_NAMELEN, "%s%d",
|
||||
PROF_PREFIX_PROFILE, rate);
|
||||
profile_create(NANOSEC / rate, n, PROF_PROFILE);
|
||||
}
|
||||
|
||||
for (i = 0; i < sizeof (profile_ticks) / sizeof (int); i++) {
|
||||
if ((rate = profile_ticks[i]) == 0)
|
||||
continue;
|
||||
|
||||
(void) snprintf(n, PROF_NAMELEN, "%s%d",
|
||||
PROF_PREFIX_TICK, rate);
|
||||
profile_create(NANOSEC / rate, n, PROF_TICK);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
name = desc->dtpd_name;
|
||||
|
||||
for (i = 0; types[i].prefix != NULL; i++) {
|
||||
len = strlen(types[i].prefix);
|
||||
|
||||
if (strncmp(name, types[i].prefix, len) != 0)
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
if (types[i].prefix == NULL)
|
||||
return;
|
||||
|
||||
kind = types[i].kind;
|
||||
j = strlen(name) - len;
|
||||
|
||||
/*
|
||||
* We need to start before any time suffix.
|
||||
*/
|
||||
for (j = strlen(name); j >= len; j--) {
|
||||
if (name[j] >= '0' && name[j] <= '9')
|
||||
break;
|
||||
suffix = &name[j];
|
||||
}
|
||||
|
||||
ASSERT(suffix != NULL);
|
||||
|
||||
/*
|
||||
* Now determine the numerical value present in the probe name.
|
||||
*/
|
||||
for (; j >= len; j--) {
|
||||
if (name[j] < '0' || name[j] > '9')
|
||||
return;
|
||||
|
||||
val += (name[j] - '0') * mult;
|
||||
mult *= (hrtime_t)10;
|
||||
}
|
||||
|
||||
if (val == 0)
|
||||
return;
|
||||
|
||||
/*
|
||||
* Look-up the suffix to determine the multiplier.
|
||||
*/
|
||||
for (i = 0, mult = 0; suffixes[i].name != NULL; i++) {
|
||||
if (strcasecmp(suffixes[i].name, suffix) == 0) {
|
||||
mult = suffixes[i].mult;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (suffixes[i].name == NULL && *suffix != '\0')
|
||||
return;
|
||||
|
||||
if (mult == 0) {
|
||||
/*
|
||||
* The default is frequency-per-second.
|
||||
*/
|
||||
val = NANOSEC / val;
|
||||
} else {
|
||||
val *= mult;
|
||||
}
|
||||
|
||||
profile_create(val, name, kind);
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
profile_destroy(void *arg, dtrace_id_t id, void *parg)
|
||||
{
|
||||
profile_probe_t *prof = parg;
|
||||
|
||||
ASSERT(prof->prof_cyclic == CYCLIC_NONE);
|
||||
kmem_free(prof, sizeof (profile_probe_t));
|
||||
|
||||
ASSERT(profile_total >= 1);
|
||||
atomic_dec_32(&profile_total);
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
profile_online(void *arg, cpu_t *cpu, cyc_handler_t *hdlr, cyc_time_t *when)
|
||||
{
|
||||
profile_probe_t *prof = arg;
|
||||
profile_probe_percpu_t *pcpu;
|
||||
|
||||
pcpu = kmem_zalloc(sizeof (profile_probe_percpu_t), KM_SLEEP);
|
||||
pcpu->profc_probe = prof;
|
||||
|
||||
hdlr->cyh_func = profile_fire;
|
||||
hdlr->cyh_arg = pcpu;
|
||||
hdlr->cyh_level = CY_HIGH_LEVEL;
|
||||
|
||||
when->cyt_interval = prof->prof_interval;
|
||||
when->cyt_when = dtrace_gethrtime() + when->cyt_interval;
|
||||
|
||||
pcpu->profc_expected = when->cyt_when;
|
||||
pcpu->profc_interval = when->cyt_interval;
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
profile_offline(void *arg, cpu_t *cpu, void *oarg)
|
||||
{
|
||||
profile_probe_percpu_t *pcpu = oarg;
|
||||
|
||||
ASSERT(pcpu->profc_probe == arg);
|
||||
kmem_free(pcpu, sizeof (profile_probe_percpu_t));
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
profile_enable(void *arg, dtrace_id_t id, void *parg)
|
||||
{
|
||||
profile_probe_t *prof = parg;
|
||||
cyc_omni_handler_t omni;
|
||||
cyc_handler_t hdlr;
|
||||
cyc_time_t when;
|
||||
|
||||
ASSERT(prof->prof_interval != 0);
|
||||
ASSERT(MUTEX_HELD(&cpu_lock));
|
||||
|
||||
if (prof->prof_kind == PROF_TICK) {
|
||||
hdlr.cyh_func = profile_tick;
|
||||
hdlr.cyh_arg = prof;
|
||||
hdlr.cyh_level = CY_HIGH_LEVEL;
|
||||
|
||||
when.cyt_interval = prof->prof_interval;
|
||||
when.cyt_when = dtrace_gethrtime() + when.cyt_interval;
|
||||
} else {
|
||||
ASSERT(prof->prof_kind == PROF_PROFILE);
|
||||
omni.cyo_online = profile_online;
|
||||
omni.cyo_offline = profile_offline;
|
||||
omni.cyo_arg = prof;
|
||||
}
|
||||
|
||||
if (prof->prof_kind == PROF_TICK) {
|
||||
prof->prof_cyclic = cyclic_add(&hdlr, &when);
|
||||
} else {
|
||||
prof->prof_cyclic = cyclic_add_omni(&omni);
|
||||
}
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
profile_disable(void *arg, dtrace_id_t id, void *parg)
|
||||
{
|
||||
profile_probe_t *prof = parg;
|
||||
|
||||
ASSERT(prof->prof_cyclic != CYCLIC_NONE);
|
||||
ASSERT(MUTEX_HELD(&cpu_lock));
|
||||
|
||||
cyclic_remove(prof->prof_cyclic);
|
||||
prof->prof_cyclic = CYCLIC_NONE;
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static int
|
||||
profile_usermode(void *arg, dtrace_id_t id, void *parg)
|
||||
{
|
||||
return (CPU->cpu_profile_pc == 0);
|
||||
}
|
||||
|
||||
static dtrace_pattr_t profile_attr = {
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON },
|
||||
{ DTRACE_STABILITY_UNSTABLE, DTRACE_STABILITY_UNSTABLE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON },
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON },
|
||||
};
|
||||
|
||||
static dtrace_pops_t profile_pops = {
|
||||
profile_provide,
|
||||
NULL,
|
||||
profile_enable,
|
||||
profile_disable,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
profile_usermode,
|
||||
profile_destroy
|
||||
};
|
||||
|
||||
static int
|
||||
profile_attach(dev_info_t *devi, ddi_attach_cmd_t cmd)
|
||||
{
|
||||
switch (cmd) {
|
||||
case DDI_ATTACH:
|
||||
break;
|
||||
case DDI_RESUME:
|
||||
return (DDI_SUCCESS);
|
||||
default:
|
||||
return (DDI_FAILURE);
|
||||
}
|
||||
|
||||
if (ddi_create_minor_node(devi, "profile", S_IFCHR, 0,
|
||||
DDI_PSEUDO, NULL) == DDI_FAILURE ||
|
||||
dtrace_register("profile", &profile_attr,
|
||||
DTRACE_PRIV_KERNEL | DTRACE_PRIV_USER, NULL,
|
||||
&profile_pops, NULL, &profile_id) != 0) {
|
||||
ddi_remove_minor_node(devi, NULL);
|
||||
return (DDI_FAILURE);
|
||||
}
|
||||
|
||||
profile_max = ddi_getprop(DDI_DEV_T_ANY, devi, DDI_PROP_DONTPASS,
|
||||
"profile-max-probes", PROFILE_MAX_DEFAULT);
|
||||
|
||||
ddi_report_dev(devi);
|
||||
profile_devi = devi;
|
||||
return (DDI_SUCCESS);
|
||||
}
|
||||
|
||||
static int
|
||||
profile_detach(dev_info_t *devi, ddi_detach_cmd_t cmd)
|
||||
{
|
||||
switch (cmd) {
|
||||
case DDI_DETACH:
|
||||
break;
|
||||
case DDI_SUSPEND:
|
||||
return (DDI_SUCCESS);
|
||||
default:
|
||||
return (DDI_FAILURE);
|
||||
}
|
||||
|
||||
if (dtrace_unregister(profile_id) != 0)
|
||||
return (DDI_FAILURE);
|
||||
|
||||
ddi_remove_minor_node(devi, NULL);
|
||||
return (DDI_SUCCESS);
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static int
|
||||
profile_info(dev_info_t *dip, ddi_info_cmd_t infocmd, void *arg, void **result)
|
||||
{
|
||||
int error;
|
||||
|
||||
switch (infocmd) {
|
||||
case DDI_INFO_DEVT2DEVINFO:
|
||||
*result = (void *)profile_devi;
|
||||
error = DDI_SUCCESS;
|
||||
break;
|
||||
case DDI_INFO_DEVT2INSTANCE:
|
||||
*result = (void *)0;
|
||||
error = DDI_SUCCESS;
|
||||
break;
|
||||
default:
|
||||
error = DDI_FAILURE;
|
||||
}
|
||||
return (error);
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static int
|
||||
profile_open(dev_t *devp, int flag, int otyp, cred_t *cred_p)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
static struct cb_ops profile_cb_ops = {
|
||||
profile_open, /* open */
|
||||
nodev, /* close */
|
||||
nulldev, /* strategy */
|
||||
nulldev, /* print */
|
||||
nodev, /* dump */
|
||||
nodev, /* read */
|
||||
nodev, /* write */
|
||||
nodev, /* ioctl */
|
||||
nodev, /* devmap */
|
||||
nodev, /* mmap */
|
||||
nodev, /* segmap */
|
||||
nochpoll, /* poll */
|
||||
ddi_prop_op, /* cb_prop_op */
|
||||
0, /* streamtab */
|
||||
D_NEW | D_MP /* Driver compatibility flag */
|
||||
};
|
||||
|
||||
static struct dev_ops profile_ops = {
|
||||
DEVO_REV, /* devo_rev, */
|
||||
0, /* refcnt */
|
||||
profile_info, /* get_dev_info */
|
||||
nulldev, /* identify */
|
||||
nulldev, /* probe */
|
||||
profile_attach, /* attach */
|
||||
profile_detach, /* detach */
|
||||
nodev, /* reset */
|
||||
&profile_cb_ops, /* driver operations */
|
||||
NULL, /* bus operations */
|
||||
nodev /* dev power */
|
||||
};
|
||||
|
||||
/*
|
||||
* Module linkage information for the kernel.
|
||||
*/
|
||||
static struct modldrv modldrv = {
|
||||
&mod_driverops, /* module type (this is a pseudo driver) */
|
||||
"Profile Interrupt Tracing", /* name of module */
|
||||
&profile_ops, /* driver ops */
|
||||
};
|
||||
|
||||
static struct modlinkage modlinkage = {
|
||||
MODREV_1,
|
||||
(void *)&modldrv,
|
||||
NULL
|
||||
};
|
||||
|
||||
int
|
||||
_init(void)
|
||||
{
|
||||
return (mod_install(&modlinkage));
|
||||
}
|
||||
|
||||
int
|
||||
_info(struct modinfo *modinfop)
|
||||
{
|
||||
return (mod_info(&modlinkage, modinfop));
|
||||
}
|
||||
|
||||
int
|
||||
_fini(void)
|
||||
{
|
||||
return (mod_remove(&modlinkage));
|
||||
}
|
@ -1,903 +0,0 @@
|
||||
/*
|
||||
* CDDL HEADER START
|
||||
*
|
||||
* The contents of this file are subject to the terms of the
|
||||
* Common Development and Distribution License (the "License").
|
||||
* You may not use this file except in compliance with the License.
|
||||
*
|
||||
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
||||
* or http://www.opensolaris.org/os/licensing.
|
||||
* See the License for the specific language governing permissions
|
||||
* and limitations under the License.
|
||||
*
|
||||
* When distributing Covered Code, include this CDDL HEADER in each
|
||||
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
||||
* If applicable, add the following below this CDDL HEADER, with the
|
||||
* fields enclosed by brackets "[]" replaced with your own identifying
|
||||
* information: Portions Copyright [yyyy] [name of copyright owner]
|
||||
*
|
||||
* CDDL HEADER END
|
||||
*/
|
||||
/*
|
||||
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
|
||||
* Use is subject to license terms.
|
||||
* Copyright (c) 2012, Joyent, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#pragma ident "%Z%%M% %I% %E% SMI"
|
||||
|
||||
#include <sys/sdt_impl.h>
|
||||
|
||||
static dtrace_pattr_t vtrace_attr = {
|
||||
{ DTRACE_STABILITY_UNSTABLE, DTRACE_STABILITY_UNSTABLE, DTRACE_CLASS_ISA },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_UNSTABLE, DTRACE_STABILITY_UNSTABLE, DTRACE_CLASS_ISA },
|
||||
};
|
||||
|
||||
static dtrace_pattr_t info_attr = {
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA },
|
||||
};
|
||||
|
||||
static dtrace_pattr_t fpu_attr = {
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_CPU },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA },
|
||||
};
|
||||
|
||||
static dtrace_pattr_t fsinfo_attr = {
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
|
||||
};
|
||||
|
||||
static dtrace_pattr_t stab_attr = {
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
|
||||
};
|
||||
|
||||
static dtrace_pattr_t sdt_attr = {
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA },
|
||||
};
|
||||
|
||||
static dtrace_pattr_t xpv_attr = {
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_PLATFORM },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_PLATFORM },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_PLATFORM },
|
||||
};
|
||||
|
||||
sdt_provider_t sdt_providers[] = {
|
||||
{ "vtrace", "__vtrace_", &vtrace_attr, 0 },
|
||||
{ "sysinfo", "__cpu_sysinfo_", &info_attr, DTRACE_PRIV_USER },
|
||||
{ "vminfo", "__cpu_vminfo_", &info_attr, DTRACE_PRIV_USER },
|
||||
{ "fpuinfo", "__fpuinfo_", &fpu_attr, 0 },
|
||||
{ "sched", "__sched_", &stab_attr, DTRACE_PRIV_USER },
|
||||
{ "proc", "__proc_", &stab_attr, DTRACE_PRIV_USER },
|
||||
{ "io", "__io_", &stab_attr, 0 },
|
||||
{ "mib", "__mib_", &stab_attr, 0 },
|
||||
{ "fsinfo", "__fsinfo_", &fsinfo_attr, 0 },
|
||||
{ "nfsv3", "__nfsv3_", &stab_attr, 0 },
|
||||
{ "nfsv4", "__nfsv4_", &stab_attr, 0 },
|
||||
{ "xpv", "__xpv_", &xpv_attr, 0 },
|
||||
{ "sysevent", "__sysevent_", &stab_attr, 0 },
|
||||
{ "sdt", NULL, &sdt_attr, 0 },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
sdt_argdesc_t sdt_args[] = {
|
||||
{ "sched", "wakeup", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "sched", "wakeup", 1, 0, "kthread_t *", "psinfo_t *" },
|
||||
{ "sched", "dequeue", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "sched", "dequeue", 1, 0, "kthread_t *", "psinfo_t *" },
|
||||
{ "sched", "dequeue", 2, 1, "disp_t *", "cpuinfo_t *" },
|
||||
{ "sched", "enqueue", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "sched", "enqueue", 1, 0, "kthread_t *", "psinfo_t *" },
|
||||
{ "sched", "enqueue", 2, 1, "disp_t *", "cpuinfo_t *" },
|
||||
{ "sched", "enqueue", 3, 2, "int" },
|
||||
{ "sched", "off-cpu", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "sched", "off-cpu", 1, 0, "kthread_t *", "psinfo_t *" },
|
||||
{ "sched", "tick", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "sched", "tick", 1, 0, "kthread_t *", "psinfo_t *" },
|
||||
{ "sched", "change-pri", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "sched", "change-pri", 1, 0, "kthread_t *", "psinfo_t *" },
|
||||
{ "sched", "change-pri", 2, 1, "pri_t" },
|
||||
{ "sched", "schedctl-nopreempt", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "sched", "schedctl-nopreempt", 1, 0, "kthread_t *", "psinfo_t *" },
|
||||
{ "sched", "schedctl-nopreempt", 2, 1, "int" },
|
||||
{ "sched", "schedctl-preempt", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "sched", "schedctl-preempt", 1, 0, "kthread_t *", "psinfo_t *" },
|
||||
{ "sched", "schedctl-yield", 0, 0, "int" },
|
||||
{ "sched", "surrender", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "sched", "surrender", 1, 0, "kthread_t *", "psinfo_t *" },
|
||||
{ "sched", "cpucaps-sleep", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "sched", "cpucaps-sleep", 1, 0, "kthread_t *", "psinfo_t *" },
|
||||
{ "sched", "cpucaps-wakeup", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "sched", "cpucaps-wakeup", 1, 0, "kthread_t *", "psinfo_t *" },
|
||||
|
||||
{ "proc", "create", 0, 0, "proc_t *", "psinfo_t *" },
|
||||
{ "proc", "exec", 0, 0, "string" },
|
||||
{ "proc", "exec-failure", 0, 0, "int" },
|
||||
{ "proc", "exit", 0, 0, "int" },
|
||||
{ "proc", "fault", 0, 0, "int" },
|
||||
{ "proc", "fault", 1, 1, "siginfo_t *" },
|
||||
{ "proc", "lwp-create", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "proc", "lwp-create", 1, 0, "kthread_t *", "psinfo_t *" },
|
||||
{ "proc", "signal-clear", 0, 0, "int" },
|
||||
{ "proc", "signal-clear", 1, 1, "siginfo_t *" },
|
||||
{ "proc", "signal-discard", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "proc", "signal-discard", 1, 1, "proc_t *", "psinfo_t *" },
|
||||
{ "proc", "signal-discard", 2, 2, "int" },
|
||||
{ "proc", "signal-handle", 0, 0, "int" },
|
||||
{ "proc", "signal-handle", 1, 1, "siginfo_t *" },
|
||||
{ "proc", "signal-handle", 2, 2, "void (*)(void)" },
|
||||
{ "proc", "signal-send", 0, 0, "kthread_t *", "lwpsinfo_t *" },
|
||||
{ "proc", "signal-send", 1, 0, "kthread_t *", "psinfo_t *" },
|
||||
{ "proc", "signal-send", 2, 1, "int" },
|
||||
|
||||
{ "io", "start", 0, 0, "buf_t *", "bufinfo_t *" },
|
||||
{ "io", "start", 1, 0, "buf_t *", "devinfo_t *" },
|
||||
{ "io", "start", 2, 0, "buf_t *", "fileinfo_t *" },
|
||||
{ "io", "done", 0, 0, "buf_t *", "bufinfo_t *" },
|
||||
{ "io", "done", 1, 0, "buf_t *", "devinfo_t *" },
|
||||
{ "io", "done", 2, 0, "buf_t *", "fileinfo_t *" },
|
||||
{ "io", "wait-start", 0, 0, "buf_t *", "bufinfo_t *" },
|
||||
{ "io", "wait-start", 1, 0, "buf_t *", "devinfo_t *" },
|
||||
{ "io", "wait-start", 2, 0, "buf_t *", "fileinfo_t *" },
|
||||
{ "io", "wait-done", 0, 0, "buf_t *", "bufinfo_t *" },
|
||||
{ "io", "wait-done", 1, 0, "buf_t *", "devinfo_t *" },
|
||||
{ "io", "wait-done", 2, 0, "buf_t *", "fileinfo_t *" },
|
||||
|
||||
{ "mib", NULL, 0, 0, "int" },
|
||||
|
||||
{ "fsinfo", NULL, 0, 0, "vnode_t *", "fileinfo_t *" },
|
||||
{ "fsinfo", NULL, 1, 1, "int", "int" },
|
||||
|
||||
{ "nfsv3", "op-getattr-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-getattr-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-getattr-start", 2, 3, "GETATTR3args *" },
|
||||
{ "nfsv3", "op-getattr-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-getattr-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-getattr-done", 2, 3, "GETATTR3res *" },
|
||||
{ "nfsv3", "op-setattr-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-setattr-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-setattr-start", 2, 3, "SETATTR3args *" },
|
||||
{ "nfsv3", "op-setattr-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-setattr-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-setattr-done", 2, 3, "SETATTR3res *" },
|
||||
{ "nfsv3", "op-lookup-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-lookup-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-lookup-start", 2, 3, "LOOKUP3args *" },
|
||||
{ "nfsv3", "op-lookup-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-lookup-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-lookup-done", 2, 3, "LOOKUP3res *" },
|
||||
{ "nfsv3", "op-access-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-access-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-access-start", 2, 3, "ACCESS3args *" },
|
||||
{ "nfsv3", "op-access-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-access-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-access-done", 2, 3, "ACCESS3res *" },
|
||||
{ "nfsv3", "op-commit-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-commit-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-commit-start", 2, 3, "COMMIT3args *" },
|
||||
{ "nfsv3", "op-commit-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-commit-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-commit-done", 2, 3, "COMMIT3res *" },
|
||||
{ "nfsv3", "op-create-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-create-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-create-start", 2, 3, "CREATE3args *" },
|
||||
{ "nfsv3", "op-create-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-create-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-create-done", 2, 3, "CREATE3res *" },
|
||||
{ "nfsv3", "op-fsinfo-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-fsinfo-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-fsinfo-start", 2, 3, "FSINFO3args *" },
|
||||
{ "nfsv3", "op-fsinfo-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-fsinfo-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-fsinfo-done", 2, 3, "FSINFO3res *" },
|
||||
{ "nfsv3", "op-fsstat-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-fsstat-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-fsstat-start", 2, 3, "FSSTAT3args *" },
|
||||
{ "nfsv3", "op-fsstat-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-fsstat-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-fsstat-done", 2, 3, "FSSTAT3res *" },
|
||||
{ "nfsv3", "op-link-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-link-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-link-start", 2, 3, "LINK3args *" },
|
||||
{ "nfsv3", "op-link-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-link-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-link-done", 2, 3, "LINK3res *" },
|
||||
{ "nfsv3", "op-mkdir-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-mkdir-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-mkdir-start", 2, 3, "MKDIR3args *" },
|
||||
{ "nfsv3", "op-mkdir-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-mkdir-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-mkdir-done", 2, 3, "MKDIR3res *" },
|
||||
{ "nfsv3", "op-mknod-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-mknod-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-mknod-start", 2, 3, "MKNOD3args *" },
|
||||
{ "nfsv3", "op-mknod-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-mknod-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-mknod-done", 2, 3, "MKNOD3res *" },
|
||||
{ "nfsv3", "op-null-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-null-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-null-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-null-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-pathconf-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-pathconf-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-pathconf-start", 2, 3, "PATHCONF3args *" },
|
||||
{ "nfsv3", "op-pathconf-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-pathconf-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-pathconf-done", 2, 3, "PATHCONF3res *" },
|
||||
{ "nfsv3", "op-read-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-read-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-read-start", 2, 3, "READ3args *" },
|
||||
{ "nfsv3", "op-read-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-read-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-read-done", 2, 3, "READ3res *" },
|
||||
{ "nfsv3", "op-readdir-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-readdir-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-readdir-start", 2, 3, "READDIR3args *" },
|
||||
{ "nfsv3", "op-readdir-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-readdir-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-readdir-done", 2, 3, "READDIR3res *" },
|
||||
{ "nfsv3", "op-readdirplus-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-readdirplus-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-readdirplus-start", 2, 3, "READDIRPLUS3args *" },
|
||||
{ "nfsv3", "op-readdirplus-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-readdirplus-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-readdirplus-done", 2, 3, "READDIRPLUS3res *" },
|
||||
{ "nfsv3", "op-readlink-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-readlink-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-readlink-start", 2, 3, "READLINK3args *" },
|
||||
{ "nfsv3", "op-readlink-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-readlink-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-readlink-done", 2, 3, "READLINK3res *" },
|
||||
{ "nfsv3", "op-remove-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-remove-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-remove-start", 2, 3, "REMOVE3args *" },
|
||||
{ "nfsv3", "op-remove-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-remove-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-remove-done", 2, 3, "REMOVE3res *" },
|
||||
{ "nfsv3", "op-rename-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-rename-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-rename-start", 2, 3, "RENAME3args *" },
|
||||
{ "nfsv3", "op-rename-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-rename-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-rename-done", 2, 3, "RENAME3res *" },
|
||||
{ "nfsv3", "op-rmdir-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-rmdir-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-rmdir-start", 2, 3, "RMDIR3args *" },
|
||||
{ "nfsv3", "op-rmdir-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-rmdir-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-rmdir-done", 2, 3, "RMDIR3res *" },
|
||||
{ "nfsv3", "op-setattr-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-setattr-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-setattr-start", 2, 3, "SETATTR3args *" },
|
||||
{ "nfsv3", "op-setattr-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-setattr-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-setattr-done", 2, 3, "SETATTR3res *" },
|
||||
{ "nfsv3", "op-symlink-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-symlink-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-symlink-start", 2, 3, "SYMLINK3args *" },
|
||||
{ "nfsv3", "op-symlink-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-symlink-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-symlink-done", 2, 3, "SYMLINK3res *" },
|
||||
{ "nfsv3", "op-write-start", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-write-start", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-write-start", 2, 3, "WRITE3args *" },
|
||||
{ "nfsv3", "op-write-done", 0, 0, "struct svc_req *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv3", "op-write-done", 1, 1, "nfsv3oparg_t *",
|
||||
"nfsv3opinfo_t *" },
|
||||
{ "nfsv3", "op-write-done", 2, 3, "WRITE3res *" },
|
||||
|
||||
{ "nfsv4", "null-start", 0, 0, "struct svc_req *", "conninfo_t *" },
|
||||
{ "nfsv4", "null-done", 0, 0, "struct svc_req *", "conninfo_t *" },
|
||||
{ "nfsv4", "compound-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "compound-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "compound-start", 2, 1, "COMPOUND4args *" },
|
||||
{ "nfsv4", "compound-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "compound-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "compound-done", 2, 1, "COMPOUND4res *" },
|
||||
{ "nfsv4", "op-access-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *"},
|
||||
{ "nfsv4", "op-access-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-access-start", 2, 1, "ACCESS4args *" },
|
||||
{ "nfsv4", "op-access-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-access-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-access-done", 2, 1, "ACCESS4res *" },
|
||||
{ "nfsv4", "op-close-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-close-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-close-start", 2, 1, "CLOSE4args *" },
|
||||
{ "nfsv4", "op-close-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-close-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-close-done", 2, 1, "CLOSE4res *" },
|
||||
{ "nfsv4", "op-commit-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-commit-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-commit-start", 2, 1, "COMMIT4args *" },
|
||||
{ "nfsv4", "op-commit-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-commit-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-commit-done", 2, 1, "COMMIT4res *" },
|
||||
{ "nfsv4", "op-create-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-create-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-create-start", 2, 1, "CREATE4args *" },
|
||||
{ "nfsv4", "op-create-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-create-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-create-done", 2, 1, "CREATE4res *" },
|
||||
{ "nfsv4", "op-delegpurge-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-delegpurge-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-delegpurge-start", 2, 1, "DELEGPURGE4args *" },
|
||||
{ "nfsv4", "op-delegpurge-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-delegpurge-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-delegpurge-done", 2, 1, "DELEGPURGE4res *" },
|
||||
{ "nfsv4", "op-delegreturn-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-delegreturn-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-delegreturn-start", 2, 1, "DELEGRETURN4args *" },
|
||||
{ "nfsv4", "op-delegreturn-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-delegreturn-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-delegreturn-done", 2, 1, "DELEGRETURN4res *" },
|
||||
{ "nfsv4", "op-getattr-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-getattr-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-getattr-start", 2, 1, "GETATTR4args *" },
|
||||
{ "nfsv4", "op-getattr-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-getattr-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-getattr-done", 2, 1, "GETATTR4res *" },
|
||||
{ "nfsv4", "op-getfh-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-getfh-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-getfh-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-getfh-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-getfh-done", 2, 1, "GETFH4res *" },
|
||||
{ "nfsv4", "op-link-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-link-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-link-start", 2, 1, "LINK4args *" },
|
||||
{ "nfsv4", "op-link-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-link-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-link-done", 2, 1, "LINK4res *" },
|
||||
{ "nfsv4", "op-lock-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-lock-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-lock-start", 2, 1, "LOCK4args *" },
|
||||
{ "nfsv4", "op-lock-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-lock-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-lock-done", 2, 1, "LOCK4res *" },
|
||||
{ "nfsv4", "op-lockt-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-lockt-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-lockt-start", 2, 1, "LOCKT4args *" },
|
||||
{ "nfsv4", "op-lockt-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-lockt-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-lockt-done", 2, 1, "LOCKT4res *" },
|
||||
{ "nfsv4", "op-locku-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-locku-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-locku-start", 2, 1, "LOCKU4args *" },
|
||||
{ "nfsv4", "op-locku-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-locku-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-locku-done", 2, 1, "LOCKU4res *" },
|
||||
{ "nfsv4", "op-lookup-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-lookup-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-lookup-start", 2, 1, "LOOKUP4args *" },
|
||||
{ "nfsv4", "op-lookup-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-lookup-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-lookup-done", 2, 1, "LOOKUP4res *" },
|
||||
{ "nfsv4", "op-lookupp-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-lookupp-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-lookupp-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-lookupp-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-lookupp-done", 2, 1, "LOOKUPP4res *" },
|
||||
{ "nfsv4", "op-nverify-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-nverify-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-nverify-start", 2, 1, "NVERIFY4args *" },
|
||||
{ "nfsv4", "op-nverify-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-nverify-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-nverify-done", 2, 1, "NVERIFY4res *" },
|
||||
{ "nfsv4", "op-open-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-open-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-open-start", 2, 1, "OPEN4args *" },
|
||||
{ "nfsv4", "op-open-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-open-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-open-done", 2, 1, "OPEN4res *" },
|
||||
{ "nfsv4", "op-open-confirm-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-open-confirm-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-open-confirm-start", 2, 1, "OPEN_CONFIRM4args *" },
|
||||
{ "nfsv4", "op-open-confirm-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-open-confirm-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-open-confirm-done", 2, 1, "OPEN_CONFIRM4res *" },
|
||||
{ "nfsv4", "op-open-downgrade-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-open-downgrade-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-open-downgrade-start", 2, 1, "OPEN_DOWNGRADE4args *" },
|
||||
{ "nfsv4", "op-open-downgrade-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-open-downgrade-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-open-downgrade-done", 2, 1, "OPEN_DOWNGRADE4res *" },
|
||||
{ "nfsv4", "op-openattr-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-openattr-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-openattr-start", 2, 1, "OPENATTR4args *" },
|
||||
{ "nfsv4", "op-openattr-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-openattr-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-openattr-done", 2, 1, "OPENATTR4res *" },
|
||||
{ "nfsv4", "op-putfh-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-putfh-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-putfh-start", 2, 1, "PUTFH4args *" },
|
||||
{ "nfsv4", "op-putfh-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-putfh-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-putfh-done", 2, 1, "PUTFH4res *" },
|
||||
{ "nfsv4", "op-putpubfh-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-putpubfh-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-putpubfh-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-putpubfh-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-putpubfh-done", 2, 1, "PUTPUBFH4res *" },
|
||||
{ "nfsv4", "op-putrootfh-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-putrootfh-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-putrootfh-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-putrootfh-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-putrootfh-done", 2, 1, "PUTROOTFH4res *" },
|
||||
{ "nfsv4", "op-read-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-read-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-read-start", 2, 1, "READ4args *" },
|
||||
{ "nfsv4", "op-read-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-read-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-read-done", 2, 1, "READ4res *" },
|
||||
{ "nfsv4", "op-readdir-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-readdir-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-readdir-start", 2, 1, "READDIR4args *" },
|
||||
{ "nfsv4", "op-readdir-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-readdir-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-readdir-done", 2, 1, "READDIR4res *" },
|
||||
{ "nfsv4", "op-readlink-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-readlink-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-readlink-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-readlink-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-readlink-done", 2, 1, "READLINK4res *" },
|
||||
{ "nfsv4", "op-release-lockowner-start", 0, 0,
|
||||
"struct compound_state *", "conninfo_t *" },
|
||||
{ "nfsv4", "op-release-lockowner-start", 1, 0,
|
||||
"struct compound_state *", "nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-release-lockowner-start", 2, 1,
|
||||
"RELEASE_LOCKOWNER4args *" },
|
||||
{ "nfsv4", "op-release-lockowner-done", 0, 0,
|
||||
"struct compound_state *", "conninfo_t *" },
|
||||
{ "nfsv4", "op-release-lockowner-done", 1, 0,
|
||||
"struct compound_state *", "nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-release-lockowner-done", 2, 1,
|
||||
"RELEASE_LOCKOWNER4res *" },
|
||||
{ "nfsv4", "op-remove-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-remove-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-remove-start", 2, 1, "REMOVE4args *" },
|
||||
{ "nfsv4", "op-remove-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-remove-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-remove-done", 2, 1, "REMOVE4res *" },
|
||||
{ "nfsv4", "op-rename-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-rename-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-rename-start", 2, 1, "RENAME4args *" },
|
||||
{ "nfsv4", "op-rename-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-rename-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-rename-done", 2, 1, "RENAME4res *" },
|
||||
{ "nfsv4", "op-renew-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-renew-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-renew-start", 2, 1, "RENEW4args *" },
|
||||
{ "nfsv4", "op-renew-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-renew-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-renew-done", 2, 1, "RENEW4res *" },
|
||||
{ "nfsv4", "op-restorefh-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-restorefh-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-restorefh-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-restorefh-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-restorefh-done", 2, 1, "RESTOREFH4res *" },
|
||||
{ "nfsv4", "op-savefh-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-savefh-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-savefh-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-savefh-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-savefh-done", 2, 1, "SAVEFH4res *" },
|
||||
{ "nfsv4", "op-secinfo-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-secinfo-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-secinfo-start", 2, 1, "SECINFO4args *" },
|
||||
{ "nfsv4", "op-secinfo-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-secinfo-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-secinfo-done", 2, 1, "SECINFO4res *" },
|
||||
{ "nfsv4", "op-setattr-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-setattr-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-setattr-start", 2, 1, "SETATTR4args *" },
|
||||
{ "nfsv4", "op-setattr-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-setattr-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-setattr-done", 2, 1, "SETATTR4res *" },
|
||||
{ "nfsv4", "op-setclientid-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-setclientid-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-setclientid-start", 2, 1, "SETCLIENTID4args *" },
|
||||
{ "nfsv4", "op-setclientid-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-setclientid-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-setclientid-done", 2, 1, "SETCLIENTID4res *" },
|
||||
{ "nfsv4", "op-setclientid-confirm-start", 0, 0,
|
||||
"struct compound_state *", "conninfo_t *" },
|
||||
{ "nfsv4", "op-setclientid-confirm-start", 1, 0,
|
||||
"struct compound_state *", "nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-setclientid-confirm-start", 2, 1,
|
||||
"SETCLIENTID_CONFIRM4args *" },
|
||||
{ "nfsv4", "op-setclientid-confirm-done", 0, 0,
|
||||
"struct compound_state *", "conninfo_t *" },
|
||||
{ "nfsv4", "op-setclientid-confirm-done", 1, 0,
|
||||
"struct compound_state *", "nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-setclientid-confirm-done", 2, 1,
|
||||
"SETCLIENTID_CONFIRM4res *" },
|
||||
{ "nfsv4", "op-verify-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-verify-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-verify-start", 2, 1, "VERIFY4args *" },
|
||||
{ "nfsv4", "op-verify-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-verify-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-verify-done", 2, 1, "VERIFY4res *" },
|
||||
{ "nfsv4", "op-write-start", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-write-start", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-write-start", 2, 1, "WRITE4args *" },
|
||||
{ "nfsv4", "op-write-done", 0, 0, "struct compound_state *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "op-write-done", 1, 0, "struct compound_state *",
|
||||
"nfsv4opinfo_t *" },
|
||||
{ "nfsv4", "op-write-done", 2, 1, "WRITE4res *" },
|
||||
{ "nfsv4", "cb-recall-start", 0, 0, "rfs4_client_t *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "cb-recall-start", 1, 1, "rfs4_deleg_state_t *",
|
||||
"nfsv4cbinfo_t *" },
|
||||
{ "nfsv4", "cb-recall-start", 2, 2, "CB_RECALL4args *" },
|
||||
{ "nfsv4", "cb-recall-done", 0, 0, "rfs4_client_t *",
|
||||
"conninfo_t *" },
|
||||
{ "nfsv4", "cb-recall-done", 1, 1, "rfs4_deleg_state_t *",
|
||||
"nfsv4cbinfo_t *" },
|
||||
{ "nfsv4", "cb-recall-done", 2, 2, "CB_RECALL4res *" },
|
||||
|
||||
{ "sysevent", "post", 0, 0, "evch_bind_t *", "syseventchaninfo_t *" },
|
||||
{ "sysevent", "post", 1, 1, "sysevent_impl_t *", "syseventinfo_t *" },
|
||||
|
||||
{ "xpv", "add-to-physmap-end", 0, 0, "int" },
|
||||
{ "xpv", "add-to-physmap-start", 0, 0, "domid_t" },
|
||||
{ "xpv", "add-to-physmap-start", 1, 1, "uint_t" },
|
||||
{ "xpv", "add-to-physmap-start", 2, 2, "ulong_t" },
|
||||
{ "xpv", "add-to-physmap-start", 3, 3, "ulong_t" },
|
||||
{ "xpv", "decrease-reservation-end", 0, 0, "int" },
|
||||
{ "xpv", "decrease-reservation-start", 0, 0, "domid_t" },
|
||||
{ "xpv", "decrease-reservation-start", 1, 1, "ulong_t" },
|
||||
{ "xpv", "decrease-reservation-start", 2, 2, "uint_t" },
|
||||
{ "xpv", "decrease-reservation-start", 3, 3, "ulong_t *" },
|
||||
{ "xpv", "dom-create-start", 0, 0, "xen_domctl_t *" },
|
||||
{ "xpv", "dom-destroy-start", 0, 0, "domid_t" },
|
||||
{ "xpv", "dom-pause-start", 0, 0, "domid_t" },
|
||||
{ "xpv", "dom-unpause-start", 0, 0, "domid_t" },
|
||||
{ "xpv", "dom-create-end", 0, 0, "int" },
|
||||
{ "xpv", "dom-destroy-end", 0, 0, "int" },
|
||||
{ "xpv", "dom-pause-end", 0, 0, "int" },
|
||||
{ "xpv", "dom-unpause-end", 0, 0, "int" },
|
||||
{ "xpv", "evtchn-op-end", 0, 0, "int" },
|
||||
{ "xpv", "evtchn-op-start", 0, 0, "int" },
|
||||
{ "xpv", "evtchn-op-start", 1, 1, "void *" },
|
||||
{ "xpv", "increase-reservation-end", 0, 0, "int" },
|
||||
{ "xpv", "increase-reservation-start", 0, 0, "domid_t" },
|
||||
{ "xpv", "increase-reservation-start", 1, 1, "ulong_t" },
|
||||
{ "xpv", "increase-reservation-start", 2, 2, "uint_t" },
|
||||
{ "xpv", "increase-reservation-start", 3, 3, "ulong_t *" },
|
||||
{ "xpv", "mmap-end", 0, 0, "int" },
|
||||
{ "xpv", "mmap-entry", 0, 0, "ulong_t" },
|
||||
{ "xpv", "mmap-entry", 1, 1, "ulong_t" },
|
||||
{ "xpv", "mmap-entry", 2, 2, "ulong_t" },
|
||||
{ "xpv", "mmap-start", 0, 0, "domid_t" },
|
||||
{ "xpv", "mmap-start", 1, 1, "int" },
|
||||
{ "xpv", "mmap-start", 2, 2, "privcmd_mmap_entry_t *" },
|
||||
{ "xpv", "mmapbatch-end", 0, 0, "int" },
|
||||
{ "xpv", "mmapbatch-end", 1, 1, "struct seg *" },
|
||||
{ "xpv", "mmapbatch-end", 2, 2, "caddr_t" },
|
||||
{ "xpv", "mmapbatch-start", 0, 0, "domid_t" },
|
||||
{ "xpv", "mmapbatch-start", 1, 1, "int" },
|
||||
{ "xpv", "mmapbatch-start", 2, 2, "caddr_t" },
|
||||
{ "xpv", "mmu-ext-op-end", 0, 0, "int" },
|
||||
{ "xpv", "mmu-ext-op-start", 0, 0, "int" },
|
||||
{ "xpv", "mmu-ext-op-start", 1, 1, "struct mmuext_op *" },
|
||||
{ "xpv", "mmu-update-start", 0, 0, "int" },
|
||||
{ "xpv", "mmu-update-start", 1, 1, "int" },
|
||||
{ "xpv", "mmu-update-start", 2, 2, "mmu_update_t *" },
|
||||
{ "xpv", "mmu-update-end", 0, 0, "int" },
|
||||
{ "xpv", "populate-physmap-end", 0, 0, "int" },
|
||||
{ "xpv", "populate-physmap-start", 0, 0, "domid_t" },
|
||||
{ "xpv", "populate-physmap-start", 1, 1, "ulong_t" },
|
||||
{ "xpv", "populate-physmap-start", 2, 2, "ulong_t *" },
|
||||
{ "xpv", "set-memory-map-end", 0, 0, "int" },
|
||||
{ "xpv", "set-memory-map-start", 0, 0, "domid_t" },
|
||||
{ "xpv", "set-memory-map-start", 1, 1, "int" },
|
||||
{ "xpv", "set-memory-map-start", 2, 2, "struct xen_memory_map *" },
|
||||
{ "xpv", "setvcpucontext-end", 0, 0, "int" },
|
||||
{ "xpv", "setvcpucontext-start", 0, 0, "domid_t" },
|
||||
{ "xpv", "setvcpucontext-start", 1, 1, "vcpu_guest_context_t *" },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
sdt_mode(void *arg, dtrace_id_t id, void *parg)
|
||||
{
|
||||
/*
|
||||
* We tell DTrace that we're in kernel mode, that the firing needs to
|
||||
* be dropped for anything that doesn't have necessary privileges, and
|
||||
* that it needs to be restricted for anything that has restricted
|
||||
* (i.e., not all-zone) privileges.
|
||||
*/
|
||||
return (DTRACE_MODE_KERNEL | DTRACE_MODE_NOPRIV_DROP |
|
||||
DTRACE_MODE_LIMITEDPRIV_RESTRICT);
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
sdt_getargdesc(void *arg, dtrace_id_t id, void *parg, dtrace_argdesc_t *desc)
|
||||
{
|
||||
sdt_probe_t *sdp = parg;
|
||||
int i;
|
||||
|
||||
desc->dtargd_native[0] = '\0';
|
||||
desc->dtargd_xlate[0] = '\0';
|
||||
|
||||
for (i = 0; sdt_args[i].sda_provider != NULL; i++) {
|
||||
sdt_argdesc_t *a = &sdt_args[i];
|
||||
|
||||
if (strcmp(sdp->sdp_provider->sdtp_name, a->sda_provider) != 0)
|
||||
continue;
|
||||
|
||||
if (a->sda_name != NULL &&
|
||||
strcmp(sdp->sdp_name, a->sda_name) != 0)
|
||||
continue;
|
||||
|
||||
if (desc->dtargd_ndx != a->sda_ndx)
|
||||
continue;
|
||||
|
||||
if (a->sda_native != NULL)
|
||||
(void) strcpy(desc->dtargd_native, a->sda_native);
|
||||
|
||||
if (a->sda_xlate != NULL)
|
||||
(void) strcpy(desc->dtargd_xlate, a->sda_xlate);
|
||||
|
||||
desc->dtargd_mapping = a->sda_mapping;
|
||||
return;
|
||||
}
|
||||
|
||||
desc->dtargd_ndx = DTRACE_ARGNONE;
|
||||
}
|
@ -1,373 +0,0 @@
|
||||
/*
|
||||
* CDDL HEADER START
|
||||
*
|
||||
* The contents of this file are subject to the terms of the
|
||||
* Common Development and Distribution License (the "License").
|
||||
* You may not use this file except in compliance with the License.
|
||||
*
|
||||
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
||||
* or http://www.opensolaris.org/os/licensing.
|
||||
* See the License for the specific language governing permissions
|
||||
* and limitations under the License.
|
||||
*
|
||||
* When distributing Covered Code, include this CDDL HEADER in each
|
||||
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
||||
* If applicable, add the following below this CDDL HEADER, with the
|
||||
* fields enclosed by brackets "[]" replaced with your own identifying
|
||||
* information: Portions Copyright [yyyy] [name of copyright owner]
|
||||
*
|
||||
* CDDL HEADER END
|
||||
*/
|
||||
/*
|
||||
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
|
||||
* Use is subject to license terms.
|
||||
*/
|
||||
|
||||
#pragma ident "%Z%%M% %I% %E% SMI"
|
||||
|
||||
#include <sys/dtrace.h>
|
||||
#include <sys/systrace.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/ddi.h>
|
||||
#include <sys/sunddi.h>
|
||||
#include <sys/atomic.h>
|
||||
|
||||
#define SYSTRACE_ARTIFICIAL_FRAMES 1
|
||||
|
||||
#define SYSTRACE_SHIFT 16
|
||||
#define SYSTRACE_ISENTRY(x) ((int)(x) >> SYSTRACE_SHIFT)
|
||||
#define SYSTRACE_SYSNUM(x) ((int)(x) & ((1 << SYSTRACE_SHIFT) - 1))
|
||||
#define SYSTRACE_ENTRY(id) ((1 << SYSTRACE_SHIFT) | (id))
|
||||
#define SYSTRACE_RETURN(id) (id)
|
||||
|
||||
#if ((1 << SYSTRACE_SHIFT) <= NSYSCALL)
|
||||
#error 1 << SYSTRACE_SHIFT must exceed number of system calls
|
||||
#endif
|
||||
|
||||
static dev_info_t *systrace_devi;
|
||||
static dtrace_provider_id_t systrace_id;
|
||||
|
||||
static void
|
||||
systrace_init(struct sysent *actual, systrace_sysent_t **interposed)
|
||||
{
|
||||
systrace_sysent_t *sysent = *interposed;
|
||||
int i;
|
||||
|
||||
if (sysent == NULL) {
|
||||
*interposed = sysent = kmem_zalloc(sizeof (systrace_sysent_t) *
|
||||
NSYSCALL, KM_SLEEP);
|
||||
}
|
||||
|
||||
for (i = 0; i < NSYSCALL; i++) {
|
||||
struct sysent *a = &actual[i];
|
||||
systrace_sysent_t *s = &sysent[i];
|
||||
|
||||
if (LOADABLE_SYSCALL(a) && !LOADED_SYSCALL(a))
|
||||
continue;
|
||||
|
||||
if (a->sy_callc == dtrace_systrace_syscall)
|
||||
continue;
|
||||
|
||||
#ifdef _SYSCALL32_IMPL
|
||||
if (a->sy_callc == dtrace_systrace_syscall32)
|
||||
continue;
|
||||
#endif
|
||||
|
||||
s->stsy_underlying = a->sy_callc;
|
||||
}
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
systrace_provide(void *arg, const dtrace_probedesc_t *desc)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (desc != NULL)
|
||||
return;
|
||||
|
||||
systrace_init(sysent, &systrace_sysent);
|
||||
#ifdef _SYSCALL32_IMPL
|
||||
systrace_init(sysent32, &systrace_sysent32);
|
||||
#endif
|
||||
|
||||
for (i = 0; i < NSYSCALL; i++) {
|
||||
if (systrace_sysent[i].stsy_underlying == NULL)
|
||||
continue;
|
||||
|
||||
if (dtrace_probe_lookup(systrace_id, NULL,
|
||||
syscallnames[i], "entry") != 0)
|
||||
continue;
|
||||
|
||||
(void) dtrace_probe_create(systrace_id, NULL, syscallnames[i],
|
||||
"entry", SYSTRACE_ARTIFICIAL_FRAMES,
|
||||
(void *)((uintptr_t)SYSTRACE_ENTRY(i)));
|
||||
(void) dtrace_probe_create(systrace_id, NULL, syscallnames[i],
|
||||
"return", SYSTRACE_ARTIFICIAL_FRAMES,
|
||||
(void *)((uintptr_t)SYSTRACE_RETURN(i)));
|
||||
|
||||
systrace_sysent[i].stsy_entry = DTRACE_IDNONE;
|
||||
systrace_sysent[i].stsy_return = DTRACE_IDNONE;
|
||||
#ifdef _SYSCALL32_IMPL
|
||||
systrace_sysent32[i].stsy_entry = DTRACE_IDNONE;
|
||||
systrace_sysent32[i].stsy_return = DTRACE_IDNONE;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
systrace_destroy(void *arg, dtrace_id_t id, void *parg)
|
||||
{
|
||||
int sysnum = SYSTRACE_SYSNUM((uintptr_t)parg);
|
||||
|
||||
/*
|
||||
* There's nothing to do here but assert that we have actually been
|
||||
* disabled.
|
||||
*/
|
||||
if (SYSTRACE_ISENTRY((uintptr_t)parg)) {
|
||||
ASSERT(systrace_sysent[sysnum].stsy_entry == DTRACE_IDNONE);
|
||||
#ifdef _SYSCALL32_IMPL
|
||||
ASSERT(systrace_sysent32[sysnum].stsy_entry == DTRACE_IDNONE);
|
||||
#endif
|
||||
} else {
|
||||
ASSERT(systrace_sysent[sysnum].stsy_return == DTRACE_IDNONE);
|
||||
#ifdef _SYSCALL32_IMPL
|
||||
ASSERT(systrace_sysent32[sysnum].stsy_return == DTRACE_IDNONE);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
systrace_enable(void *arg, dtrace_id_t id, void *parg)
|
||||
{
|
||||
int sysnum = SYSTRACE_SYSNUM((uintptr_t)parg);
|
||||
int enabled = (systrace_sysent[sysnum].stsy_entry != DTRACE_IDNONE ||
|
||||
systrace_sysent[sysnum].stsy_return != DTRACE_IDNONE);
|
||||
|
||||
if (SYSTRACE_ISENTRY((uintptr_t)parg)) {
|
||||
systrace_sysent[sysnum].stsy_entry = id;
|
||||
#ifdef _SYSCALL32_IMPL
|
||||
systrace_sysent32[sysnum].stsy_entry = id;
|
||||
#endif
|
||||
} else {
|
||||
systrace_sysent[sysnum].stsy_return = id;
|
||||
#ifdef _SYSCALL32_IMPL
|
||||
systrace_sysent32[sysnum].stsy_return = id;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (enabled) {
|
||||
ASSERT(sysent[sysnum].sy_callc == dtrace_systrace_syscall);
|
||||
return;
|
||||
}
|
||||
|
||||
(void) atomic_cas_ptr(&sysent[sysnum].sy_callc,
|
||||
(void *)systrace_sysent[sysnum].stsy_underlying,
|
||||
(void *)dtrace_systrace_syscall);
|
||||
#ifdef _SYSCALL32_IMPL
|
||||
(void) atomic_cas_ptr(&sysent32[sysnum].sy_callc,
|
||||
(void *)systrace_sysent32[sysnum].stsy_underlying,
|
||||
(void *)dtrace_systrace_syscall32);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
systrace_disable(void *arg, dtrace_id_t id, void *parg)
|
||||
{
|
||||
int sysnum = SYSTRACE_SYSNUM((uintptr_t)parg);
|
||||
int disable = (systrace_sysent[sysnum].stsy_entry == DTRACE_IDNONE ||
|
||||
systrace_sysent[sysnum].stsy_return == DTRACE_IDNONE);
|
||||
|
||||
if (disable) {
|
||||
(void) atomic_cas_ptr(&sysent[sysnum].sy_callc,
|
||||
(void *)dtrace_systrace_syscall,
|
||||
(void *)systrace_sysent[sysnum].stsy_underlying);
|
||||
|
||||
#ifdef _SYSCALL32_IMPL
|
||||
(void) atomic_cas_ptr(&sysent32[sysnum].sy_callc,
|
||||
(void *)dtrace_systrace_syscall32,
|
||||
(void *)systrace_sysent32[sysnum].stsy_underlying);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (SYSTRACE_ISENTRY((uintptr_t)parg)) {
|
||||
systrace_sysent[sysnum].stsy_entry = DTRACE_IDNONE;
|
||||
#ifdef _SYSCALL32_IMPL
|
||||
systrace_sysent32[sysnum].stsy_entry = DTRACE_IDNONE;
|
||||
#endif
|
||||
} else {
|
||||
systrace_sysent[sysnum].stsy_return = DTRACE_IDNONE;
|
||||
#ifdef _SYSCALL32_IMPL
|
||||
systrace_sysent32[sysnum].stsy_return = DTRACE_IDNONE;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
static dtrace_pattr_t systrace_attr = {
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA },
|
||||
{ DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON },
|
||||
{ DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA },
|
||||
};
|
||||
|
||||
static dtrace_pops_t systrace_pops = {
|
||||
systrace_provide,
|
||||
NULL,
|
||||
systrace_enable,
|
||||
systrace_disable,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
systrace_destroy
|
||||
};
|
||||
|
||||
static int
|
||||
systrace_attach(dev_info_t *devi, ddi_attach_cmd_t cmd)
|
||||
{
|
||||
switch (cmd) {
|
||||
case DDI_ATTACH:
|
||||
break;
|
||||
case DDI_RESUME:
|
||||
return (DDI_SUCCESS);
|
||||
default:
|
||||
return (DDI_FAILURE);
|
||||
}
|
||||
|
||||
systrace_probe = (void (*)())dtrace_probe;
|
||||
membar_enter();
|
||||
|
||||
if (ddi_create_minor_node(devi, "systrace", S_IFCHR, 0,
|
||||
DDI_PSEUDO, NULL) == DDI_FAILURE ||
|
||||
dtrace_register("syscall", &systrace_attr, DTRACE_PRIV_USER, NULL,
|
||||
&systrace_pops, NULL, &systrace_id) != 0) {
|
||||
systrace_probe = systrace_stub;
|
||||
ddi_remove_minor_node(devi, NULL);
|
||||
return (DDI_FAILURE);
|
||||
}
|
||||
|
||||
ddi_report_dev(devi);
|
||||
systrace_devi = devi;
|
||||
|
||||
return (DDI_SUCCESS);
|
||||
}
|
||||
|
||||
static int
|
||||
systrace_detach(dev_info_t *devi, ddi_detach_cmd_t cmd)
|
||||
{
|
||||
switch (cmd) {
|
||||
case DDI_DETACH:
|
||||
break;
|
||||
case DDI_SUSPEND:
|
||||
return (DDI_SUCCESS);
|
||||
default:
|
||||
return (DDI_FAILURE);
|
||||
}
|
||||
|
||||
if (dtrace_unregister(systrace_id) != 0)
|
||||
return (DDI_FAILURE);
|
||||
|
||||
ddi_remove_minor_node(devi, NULL);
|
||||
systrace_probe = systrace_stub;
|
||||
return (DDI_SUCCESS);
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static int
|
||||
systrace_info(dev_info_t *dip, ddi_info_cmd_t infocmd, void *arg, void **result)
|
||||
{
|
||||
int error;
|
||||
|
||||
switch (infocmd) {
|
||||
case DDI_INFO_DEVT2DEVINFO:
|
||||
*result = (void *)systrace_devi;
|
||||
error = DDI_SUCCESS;
|
||||
break;
|
||||
case DDI_INFO_DEVT2INSTANCE:
|
||||
*result = (void *)0;
|
||||
error = DDI_SUCCESS;
|
||||
break;
|
||||
default:
|
||||
error = DDI_FAILURE;
|
||||
}
|
||||
return (error);
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static int
|
||||
systrace_open(dev_t *devp, int flag, int otyp, cred_t *cred_p)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
static struct cb_ops systrace_cb_ops = {
|
||||
systrace_open, /* open */
|
||||
nodev, /* close */
|
||||
nulldev, /* strategy */
|
||||
nulldev, /* print */
|
||||
nodev, /* dump */
|
||||
nodev, /* read */
|
||||
nodev, /* write */
|
||||
nodev, /* ioctl */
|
||||
nodev, /* devmap */
|
||||
nodev, /* mmap */
|
||||
nodev, /* segmap */
|
||||
nochpoll, /* poll */
|
||||
ddi_prop_op, /* cb_prop_op */
|
||||
0, /* streamtab */
|
||||
D_NEW | D_MP /* Driver compatibility flag */
|
||||
};
|
||||
|
||||
static struct dev_ops systrace_ops = {
|
||||
DEVO_REV, /* devo_rev, */
|
||||
0, /* refcnt */
|
||||
systrace_info, /* get_dev_info */
|
||||
nulldev, /* identify */
|
||||
nulldev, /* probe */
|
||||
systrace_attach, /* attach */
|
||||
systrace_detach, /* detach */
|
||||
nodev, /* reset */
|
||||
&systrace_cb_ops, /* driver operations */
|
||||
NULL, /* bus operations */
|
||||
nodev /* dev power */
|
||||
};
|
||||
|
||||
/*
|
||||
* Module linkage information for the kernel.
|
||||
*/
|
||||
static struct modldrv modldrv = {
|
||||
&mod_driverops, /* module type (this is a pseudo driver) */
|
||||
"System Call Tracing", /* name of module */
|
||||
&systrace_ops, /* driver ops */
|
||||
};
|
||||
|
||||
static struct modlinkage modlinkage = {
|
||||
MODREV_1,
|
||||
(void *)&modldrv,
|
||||
NULL
|
||||
};
|
||||
|
||||
int
|
||||
_init(void)
|
||||
{
|
||||
return (mod_install(&modlinkage));
|
||||
}
|
||||
|
||||
int
|
||||
_info(struct modinfo *modinfop)
|
||||
{
|
||||
return (mod_info(&modlinkage, modinfop));
|
||||
}
|
||||
|
||||
int
|
||||
_fini(void)
|
||||
{
|
||||
return (mod_remove(&modlinkage));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user