Date: Fri, 19 May 2006 02:23:24 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 97441 for review Message-ID: <200605190223.k4J2NOWD044236@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=97441 Change 97441 by jb@jb_freebsd2 on 2006/05/19 02:23:02 Add a SDT probe to DTrace's ioctl() to prove that it can be done. It's also kind of useful to be able to watch what DTrace actually does while it runs the tests. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace.c#23 edit .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_ioctl.c#13 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace.c#23 (text+ko) ==== @@ -63,6 +63,7 @@ #include <sys/mutex.h> #include <sys/poll.h> #include <sys/proc.h> +#include <sys/sdt.h> #include <sys/selinfo.h> #include <sys/smp.h> #include <sys/sysctl.h> ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_ioctl.c#13 (text+ko) ==== @@ -32,6 +32,8 @@ if (state == NULL) return (EINVAL); + SDT_PROBE(dtrace, ioctl, entry, cmd, addr, 0, 0, 0); + 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?200605190223.k4J2NOWD044236>