summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2013-08-15 04:08:55 +0000
committermarkj <markj@FreeBSD.org>2013-08-15 04:08:55 +0000
commit6c24c9fb32bf0787f43d84a01b56eba2dcb38305 (patch)
treef0c62cee77e48dd1372d34190c890a8878f89867 /sys/kern/kern_exit.c
parent6c901ce0a876d561e03779bdf6269ed9a7e4c5c6 (diff)
downloadFreeBSD-src-6c24c9fb32bf0787f43d84a01b56eba2dcb38305.zip
FreeBSD-src-6c24c9fb32bf0787f43d84a01b56eba2dcb38305.tar.gz
Specify SDT probe argument types in the probe definition itself rather than
using SDT_PROBE_ARGTYPE(). This will make it easy to extend the SDT(9) API to allow probes with dynamically-translated types. There is no functional change. MFC after: 2 weeks
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 6acfc63..f0be10e 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -94,8 +94,7 @@ dtrace_execexit_func_t dtrace_fasttrap_exit;
#endif
SDT_PROVIDER_DECLARE(proc);
-SDT_PROBE_DEFINE(proc, kernel, , exit, exit);
-SDT_PROBE_ARGTYPE(proc, kernel, , exit, 0, "int");
+SDT_PROBE_DEFINE1(proc, kernel, , exit, exit, "int");
/* Hook for NFS teardown procedure. */
void (*nlminfo_release_p)(struct proc *p);
OpenPOWER on IntegriCloud