PERFORCE change 97441 for review
John Birrell
jb at FreeBSD.org
Fri May 19 02:23:52 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=97441
Change 97441 by jb at 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;
More information about the p4-projects
mailing list