Re: Article on Sun's DTrace

2004-07-08 Thread Daniel Ellard
On Wed, 7 Jul 2004, David Schultz wrote: The page referenced earlier in this thread pointed out that 6 staff-years went into DTrace. That's accurate, and we're not talking about part-time employees or people who don't know what they're doing. The D compiler aside, this is not a small matter

Re: Article on Sun's DTrace

2004-07-08 Thread Julian Elischer
On Thu, 8 Jul 2004, Steven Smith wrote: It's also possible to put probes on the return instruction of the function. I'm not sure how they're actually finding that, though. I think the return probe is done by adding a call probe that changes the return address.

what's wrong with uhid ?

2004-07-08 Thread Werner Backes
I tried to access an UHID device using FreeBSD (4.10) and I'm a bit confused. I did the same thing before with NetBSD and expected the device to behave the same under FreeBSD, because the man pages are pretty much the same. Two things I've noticed: - There is an man page for uhidev(4). uhidev

getaddrinfo

2004-07-08 Thread Jan Mikael Melen
Hi, I'm having problems with getaddrinfo call. When resolving multiple IPv6 addresses that are specified in /etc/hosts, the response from getaddrinfo call contains only the first address not the whole list. If I'll configure the corresponding addresses in to DNS I'll get all the addresses as

Re: getaddrinfo

2004-07-08 Thread Hajimu UMEMOTO
Hi, On Thu, 8 Jul 2004 12:05:52 +0300 Jan Mikael Melen [EMAIL PROTECTED] said: Jan.Melen /etc/hosts: Jan.Melen 1ffe::10 oneffeten Jan.Melen 1ffe:1000:0001:10 oneffeten Jan.Melen 1ffe:1000:0002:10 oneffeten It should be: 1ffe::10 oneffeten 1ffe:1000:0001::10 oneffeten

Re: Article on Sun's DTrace

2004-07-08 Thread Avleen Vig
On Thu, Jul 08, 2004 at 03:46:24AM -0400, Daniel Ellard wrote: I don't doubt that DTrace took a long time to do. However, in most projects the design phase consumes a lot of time, and it is often the case that unforeseen problems or changes in the feature set cost the developers a lot of

Adding DMA support for a device

2004-07-08 Thread Avleen Vig
I have a DVD drive which is recognised by FreeBSD: acd0: DVD-R DVD-RW IDE1004 at ata1-slave PIO4 The drive supports DMA, and Windows sets it to use UDMA mode 5 (I think), but BSD does not. I am assume because the device is not listed as supported correct driver? I had a look in ata-dma.c but

Re: where to get info to write basic usb driver for own device?

2004-07-08 Thread Avleen Vig
On Sun, Jul 04, 2004 at 12:53:39PM +, [EMAIL PROTECTED] wrote: So what I guess what I am asking is how hard would this be? (I have a reasonable knowledge of C and Java and have been using FreeBSD for a couple of years but have never written a device driver (for any OS)) Do I actually

Re: Article on Sun's DTrace

2004-07-08 Thread Eitarou Kamo
Hi Julian, Julian Elischer wrote: On Thu, 8 Jul 2004, Steven Smith wrote: It's also possible to put probes on the return instruction of the function. I'm not sure how they're actually finding that, though. I think the return probe is done by adding a call probe that changes the return

Re: Adding DMA support for a device

2004-07-08 Thread Martin Nilsson
Avleen Vig wrote: The drive supports DMA, and Windows sets it to use UDMA mode 5 (I think), but BSD does not. Can anyone point me in the right direction for this? have you tried man ata ? The following tunables are settable from the loader: hw.ata.atapi_dma set to 1 for DMA access, 0 for PIO

Re: Adding DMA support for a device

2004-07-08 Thread Joerg Sonnenberger
On Thu, Jul 08, 2004 at 01:17:26AM -0700, Avleen Vig wrote: I have a DVD drive which is recognised by FreeBSD: acd0: DVD-R DVD-RW IDE1004 at ata1-slave PIO4 Can anyone point me in the right direction for this? hw.ata.atapi_dma=1 in /boot/loader.conf. DMA for ATAPI is not active by default

Re: Article on Sun's DTrace

2004-07-08 Thread Eitarou Kamo
Hi, Avleen Vig wrote: They said 6 staff-years. This means if they have 6 people working on it full time, it took 1 year to complete. If they had 60 people full time, it took just over 5 weeks (technically, i doubt that would work practically). From speaking to a friend at sun, I do know it took a

Re: Article on Sun's DTrace

2004-07-08 Thread Dag-Erling Smørgrav
Avleen Vig [EMAIL PROTECTED] writes: They said 6 staff-years. No, they said three engineers working full-time for two years. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list

Re: Article on Sun's DTrace

2004-07-08 Thread David Schultz
On Thu, Jul 08, 2004, Wilko Bulte wrote: On Thu, Jul 08, 2004 at 01:23:04AM -0700, Avleen Vig wrote: On Thu, Jul 08, 2004 at 03:46:24AM -0400, Daniel Ellard wrote: I don't doubt that DTrace took a long time to do. However, in most projects the design phase consumes a lot of time, and it

Re: where to get info to write basic usb driver for own device?

2004-07-08 Thread Zera Holladay
This may go without saying, but have you read Chapter 22 of the FreeBSD Developers' Handbook? I have not read intro(4) extensively but that is probably a good starting place, if you are completely in the dark. -Zera Holladay On Sun, 4 Jul 2004, Avleen Vig wrote: On Sun, Jul 04, 2004 at

Re: where to get info to write basic usb driver for own device?

2004-07-08 Thread Rita Lin
I would read up some code in /dev/usb and see how others did theirs. I would also read the Dynamic Kernel Linker by Andrew Reiter http://www.daemonnews.org/200010/blueprints.html, and the white paper by zep software http://www.zepsoftware.com/whitepapers/bsd_devtree.php. That's how I wrote my

Re: where to get info to write basic usb driver for own device?

2004-07-08 Thread Mark Dixon
On Sunday 04 Jul 2004 19:20, Avleen Vig wrote: I am actually in a similar situation. I know some C, and want to write a device driver for a USB device (web cam), but I have no idea where to start. I've searched for a beginners guide to writing device drivers but failed miserably :-( I