PERFORCE change 95947 for review

Alexander Kabaev kabaev at gmail.com
Sun Apr 23 23:00:20 UTC 2006


On Sun, 23 Apr 2006 20:39:52 GMT
John Birrell <jb at FreeBSD.org> wrote:

> http://perforce.freebsd.org/chv.cgi?CH=95947
> 
> Change 95947 by jb at jb_freebsd2 on 2006/04/23 20:39:34
> 
> 	Go back to just using the /dev/dtrace device name and clone
> from that name explicitly.
> 	
> 	Add a (temporary) debug flag for the device flags so that I
> can sort out what each device is doing in the kernel.
> 
> Affected files ...
> 
> .. //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_open.c#8
> edit .. //depot/projects/dtrace/src/sys/sys/fcntl.h#2 edit
> 
> Differences ...
> 
> ==== //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_open.c#8
> (text) ====
> 
> @@ -922,7 +922,7 @@
>  #if defined(sun)
>  	dtfd = open("/dev/dtrace/dtrace", O_RDWR);
>  #else
> -	dtfd = open("/dev/dtrace0", O_RDWR);
> +	dtfd = open("/dev/dtrace", O_RDWR | O_DEBUG);
>  #endif
>  	err = errno; /* save errno from opening dtfd */
>  
> 
> ==== //depot/projects/dtrace/src/sys/sys/fcntl.h#2 (text+ko) ====
> 
> @@ -113,6 +113,7 @@
>  /* Attempt to bypass buffer cache */
>  #define O_DIRECT	0x00010000
>  #endif
> +#define	O_DEBUG		0x00020000
>  
>  /*
>   * XXX missing O_DSYNC, O_RSYNC.
Nothing stops you from recognizing names with slashes in your clone
event handler, so this defined(sun) is probably unnecessary.

-- 
Alexander Kabaev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/p4-projects/attachments/20060423/fc2b852b/signature.pgp


More information about the p4-projects mailing list