PERFORCE change 96126 for review

John Birrell jb at FreeBSD.org
Wed Apr 26 04:22:54 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=96126

Change 96126 by jb at jb_freebsd2 on 2006/04/26 04:22:04

	SysV -> BSD ioctls for BUFSNAP, AGGSNAP, EPROBE, STOP, AND REPLICATE.
	
	That just leaves two more ioctls to be converted. They are used for more
	complicated 'D' programs than 'BEGIN'. 8-)

Affected files ...

.. //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/sys/dtrace.h#11 edit

Differences ...

==== //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/sys/dtrace.h#11 (text) ====

@@ -1200,7 +1200,8 @@
 							/* provider query */
 #define	DTRACEIOC_PROBES	_IOWR('x',2,dtrace_probedesc_t)
 							/* probe query */
-#define	DTRACEIOC_BUFSNAP	_IO('x',4)		/* snapshot buffer */
+#define	DTRACEIOC_BUFSNAP	_IOW('x',4,dtrace_bufdesc_t *)	
+							/* snapshot buffer */
 #define	DTRACEIOC_PROBEMATCH	_IOWR('x',5,dtrace_probedesc_t)
 							/* match probes */
 typedef struct {
@@ -1209,8 +1210,10 @@
 } dtrace_enable_io_t;
 #define	DTRACEIOC_ENABLE	_IOWR('x',6,dtrace_enable_io_t)
 							/* enable probes */
-#define	DTRACEIOC_AGGSNAP	_IO('x',7)		/* snapshot agg. */
-#define	DTRACEIOC_EPROBE	_IO('x',8)		/* get eprobe desc. */
+#define	DTRACEIOC_AGGSNAP	_IOW('x',7,dtrace_bufdesc_t *)
+							/* snapshot agg. */
+#define	DTRACEIOC_EPROBE	_IOW('x',8,dtrace_eprobedesc_t)
+							/* get eprobe desc. */
 #define	DTRACEIOC_PROBEARG	_IOWR('x',9,dtrace_argdesc_t)
 							/* get probe arg */
 #define	DTRACEIOC_CONF		_IOR('x',10,dtrace_conf_t)
@@ -1219,12 +1222,14 @@
 							/* get status */
 #define	DTRACEIOC_GO		_IOR('x',12,processorid_t)
 							/* start tracing */
-#define	DTRACEIOC_STOP		_IO('x',13)		/* stop tracing */
+#define	DTRACEIOC_STOP		_IOWR('x',13,processorid_t)
+							/* stop tracing */
 #define	DTRACEIOC_AGGDESC	_IO('x',15)		/* get agg. desc. */
 #define	DTRACEIOC_FORMAT	_IO('x',16)		/* get format str */
 #define	DTRACEIOC_DOFGET	_IOW('x',17,dof_hdr_t *)
 							/* get DOF */
-#define	DTRACEIOC_REPLICATE	_IO('x',18)		/* replicate enab */
+#define	DTRACEIOC_REPLICATE	_IOW('x',18,dtrace_repldesc_t)	
+							/* replicate enab */
 #endif
 
 /*


More information about the p4-projects mailing list