Date: Mon, 26 Jun 2006 05:32:16 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 100023 for review Message-ID: <200606260532.k5Q5WGmD019726@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100023 Change 100023 by jb@jb_freebsd2 on 2006/06/26 05:31:32 Add a bit of missing code required for anonymous enablings. Without this you get the infamous "no such file" error. 8-) Remove the demo sdt probe in preparation for changing the SDT provider to use invops like Sun does. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_ioctl.c#15 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_ioctl.c#15 (text+ko) ==== @@ -32,8 +32,6 @@ if (state == NULL) return (EINVAL); - SDT_PROBE(dtrace, ioctl, entry, cmd, addr, 0, 0, 0); - #if defined(__i386__) /* * Check if any probe recursions have occurred. These are more @@ -46,6 +44,11 @@ } #endif + if (state->dts_anon) { + ASSERT(dtrace_anon.dta_state == NULL); + state = state->dts_anon; + } + switch (cmd) { case DTRACEIOC_AGGDESC: { dtrace_aggdesc_t **paggdesc = (dtrace_aggdesc_t **) addr;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606260532.k5Q5WGmD019726>