Re: user-space resource information...

2000-11-05 Thread Daniel C. Sobral
"Kenneth D. Merry" wrote: > ... > > That's vmstat's problem, not a feature. :-) ... > > If it's not vm-related, it shouldn't be listed by vmstat. > > Interrupts aren't vm-related either, yet vmstat displays them. And it shouldn't do so. See my first comment. :-) -- Daniel C. Sobral

Re: gdb & threaded application

2000-11-05 Thread andrew
On 5 Nov 2000, Jason Evans wrote: > the first thing I'd do if I were you would be to link statically. Yep that fixed it. Thanks for your time, Andrew To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: gdb & threaded application

2000-11-05 Thread Jason Evans
On Mon, Nov 06, 2000 at 01:33:21AM +1000, [EMAIL PROTECTED] wrote: > Hi, > > I have a program compiled with -pthread and I'm trying to use gdb to debug > it. I run the program in one window and then try to attach to it from > another. I have put a sleep 10 in the program so I can catch it before

Re: isp1100 serial console problem

2000-11-05 Thread Mike Smith
> the doc mentions that using hypertermial on win you can access the bios > via F2, but if i use kermit on freebsd, this does not work. Use an xterm and cu. It's expecting ansi function key codes. > can i setup kermit that it submit function keys to the device the same way > hyerterminal does,

Re: KLD's on ISA bus: how?

2000-11-05 Thread Warner Losh
In message <[EMAIL PROTECTED]> Rink Springer VII writes: : Yes... is that bad? It was the only way to get BSD to probe it. You should do this only if you haven't done it already. : On the sidenote, my BSD box totally CRASHES after I attach the device using the : ether_attach call... any idea why

Re: KLD's on ISA bus: how?

2000-11-05 Thread Rink Springer VII
On Sun, 05 Nov 2000, Warner Losh wrote: > In message <[EMAIL PROTECTED]> Rink Springer writes: > : I've got a probe, attach and a dummy identify procedure for my driver > : now. When I load the KLD, my identify procedure gets triggered, but the > : probe procedure doesn't! Why? Can someone help

Re: KLD's on ISA bus: how?

2000-11-05 Thread Warner Losh
In message <[EMAIL PROTECTED]> Sergey Babkin writes: : Hints file is only in -current (AKA 5.0). In 4.x the kernel config : file contains this information (which I guess is of no use for : KLD drivers). Probably you can do a likewise thing in 4.x with : sysctl variables. I've ported the meat of t

Re: KLD's on ISA: another problem

2000-11-05 Thread Warner Losh
In message <[EMAIL PROTECTED]> Rink Springer VII writes: : static void : dl_identify (driver_t* driver,device_t parent) { : device_t t; : : printf ("DL: IDENTIFY\n"); : t = BUS_ADD_CHILD (parent, 0, "dl", 0); : bus_set_resource (t, SYS_RES_IOPORT, 0, 0x378, 3); : bus_set_resou

Re: KLD's on ISA bus: how?

2000-11-05 Thread Warner Losh
In message <[EMAIL PROTECTED]> Rink Springer writes: : I'd like to point out that I'm writing a KLD driver, so the problem : shouldn't be in the kernel, correct? Yes : Why is this? Aha.c does an ISA auto-detect, which I want to do too... : why does it work for AHA and not for me? I'll need so

Re: KLD's on ISA bus: how?

2000-11-05 Thread Warner Losh
In message <[EMAIL PROTECTED]> Rink Springer writes: : I've got a probe, attach and a dummy identify procedure for my driver : now. When I load the KLD, my identify procedure gets triggered, but the : probe procedure doesn't! Why? Can someone help me? I've tightly used : aha_isa.c as a help...

isp1100 serial console problem

2000-11-05 Thread Sven Huster
hi there, i just got a intel isp1100 server, which supports redirection of the console to serial ports. the doc mentions that using hypertermial on win you can access the bios via F2, but if i use kermit on freebsd, this does not work. can i setup kermit that it submit function keys to the dev

Re: user-space resource information...

2000-11-05 Thread Kenneth D. Merry
On Sun, Nov 05, 2000 at 17:32:16 +0900, Daniel C. Sobral wrote: > "Kenneth D. Merry" wrote: > > > > I think vmstat(8) might be a better fit than iostat. vmstat already > > displays kernel memory usage (-m), interrupt usage (-i), paging stats (-s), > > and zone allocator stats (-z). > > That's v

Re: KLD's on ISA bus: how?

2000-11-05 Thread Sergey Babkin
Rink Springer wrote: > > PS. I couldn't find a hints file or something, as someone pointed out... Hints file is only in -current (AKA 5.0). In 4.x the kernel config file contains this information (which I guess is of no use for KLD drivers). Probably you can do a likewise thing in 4.x with sysct

Re: KLD's on ISA bus: how?

2000-11-05 Thread Sergey Babkin
Rink Springer wrote: > > Sergey Babkin wrote: > > Hi, > > I've got a probe, attach and a dummy identify procedure for my driver > now. When I load the KLD, my identify procedure gets triggered, but the > probe procedure doesn't! Why? Can someone help me? I've tightly used > aha_isa.c as a help.

gdb & threaded application

2000-11-05 Thread andrew
Hi, I have a program compiled with -pthread and I'm trying to use gdb to debug it. I run the program in one window and then try to attach to it from another. I have put a sleep 10 in the program so I can catch it before it enters the section I want to debug. This is what I get: Attaching to prog

KLD's on ISA: another problem

2000-11-05 Thread Rink Springer VII
Hi guys, It works nicer now... the IDENTIFY code will now happily tell FreeBSD the device is at 0x378, IRQ 7. The code I used for this is: static void dl_identify (driver_t* driver,device_t parent) { device_t t; printf ("DL: IDENTIFY\n"); t = BUS_ADD_CHILD (parent, 0, "dl", 0);

sppp driver bug?

2000-11-05 Thread Ido Barnea
Hi  I am trying to use the sppp driver of the 4.1FreeBSD to establish ip connection over ppp between two pc's.  It usually works, but in a small percentage of the cases one of the interfaces gets stack in the following state: lcp is in state closed and ipcp is in state closed (I know that f

Re: KLD's on ISA bus: how?

2000-11-05 Thread Rink Springer VII
> [snip] > There is two way. > > 1.Write device_identify method and put auto-probe scheme to this.and ,if found, > use BUS_ADD_CHILD to add your driver as ISA driver and > use BUS_SET_RESOURCE to set resource you found. What are the prototypes of these? Can't find them... vpo.c has it for BUS_AD

pxe

2000-11-05 Thread Danny Braniss
hi all, I'm trying to figure out why in pxe.c (sys/boot/i386/libi386) the ip in ip:path is quietly ignored. there must be a reason, but it escapes me. the problem im having, is that since my nfs-root server is not the dhcpd-server, the only way to give it the root nfs ip, is via the opt

Re: KLD's on ISA bus: how?

2000-11-05 Thread Rink Springer
Hi, I'd like to point out that I'm writing a KLD driver, so the problem shouldn't be in the kernel, correct? For some reason, FreeBSD refuses to call my probe() thing. It does identify() it, though. Why is this? Aha.c does an ISA auto-detect, which I want to do too... why does it work for AH

Re: dhcp boot was: Re: diskless workstation

2000-11-05 Thread Ian Dowse
In message <[EMAIL PROTECTED]>, Doug Ambrisko writes: >| to the kernel's output. I had a look at the pxe code in >| /sys/boot/i386/libi386/pxe.c where pxeboot is built from and in >| /sys/i386/i386/autoconf.c which is the kernel side and it looks like >| they don't do anything about swap. There is

Re: KLD's on ISA bus: how?

2000-11-05 Thread Rink Springer
Sergey Babkin wrote: Hi, I've got a probe, attach and a dummy identify procedure for my driver now. When I load the KLD, my identify procedure gets triggered, but the probe procedure doesn't! Why? Can someone help me? I've tightly used aha_isa.c as a help... for some reason, FreeBSD doesn't a

Bogus filename error with pkg_add

2000-11-05 Thread Stefan Moeding
Hi! I'm working on a port which tries to install some files containing a "'" character in the filename. The ports system works well but when I create the package and try to install it with pkg_add it bombs with a "Bogus filename" message. The code in /usr/src/usr.sbin/pkg_install/add/extract.c

Re: user-space resource information...

2000-11-05 Thread Daniel C. Sobral
"Kenneth D. Merry" wrote: > > I think vmstat(8) might be a better fit than iostat. vmstat already > displays kernel memory usage (-m), interrupt usage (-i), paging stats (-s), > and zone allocator stats (-z). That's vmstat's problem, not a feature. :-) That kind of thinking is what led to Linu