Re: programming question: u_char vs. uint32_t

2006-05-04 Thread John-Mark Gurney
Andrew wrote this message on Thu, May 04, 2006 at 19:57 -0500: I'm reading through /usr/src/sys/dd/dd.h, and I noticed the following lines: 39 u_char *db;/* buffer address */ 40u_char *dbp; /* current buffer I/O address */ Why was u_char

Re: programming question: u_char vs. uint32_t

2006-05-04 Thread Andrew
On Thu, 2006-05-04 at 18:03 -0700, John-Mark Gurney wrote: Andrew wrote this message on Thu, May 04, 2006 at 19:57 -0500: I'm reading through /usr/src/sys/dd/dd.h, and I noticed the following lines: 39 u_char *db;/* buffer address */ 40 u_char *dbp;

Re: sched_newthread question

2006-03-06 Thread Andrey Simonenko
On Sat, Mar 04, 2006 at 06:11:24PM +0100, Divacky Roman wrote: hi, sched_newthread(struct thread *td) { struct td_sched *ke; ke = (struct td_sched *) (td + 1); bzero(ke, sizeof(*ke)); td-td_sched = ke; ke-ke_thread = td; ke-ke_state=

Re: easy question about kill command

2005-12-16 Thread Joseph Koshy
Is there anyone who can explain me, why when i say 'kill -HUP id', and its failed to restart, kill say nothing? It is such an easy to implement... Your application could be choosing to ignore SIGHUP (restarting on SIGHUP is a convention, not a OS defined requirement)? -- FreeBSD Volunteer,

Re: easy question about kill command

2005-12-16 Thread Oliver Fromme
roma.a.g [EMAIL PROTECTED] wrote: Is there anyone who can explain me, why when i say 'kill -HUP id', and its failed to restart, kill say nothing? Because the kill command has no way to know about it. The kill command only instructs the kernel to deliver a signal to a process (or to a process

Re: easy question about kill command

2005-12-16 Thread Oliver Fromme
Oliver Fromme [EMAIL PROTECTED] wrote: roma.a.g [EMAIL PROTECTED] wrote: Is there anyone who can explain me, why when i say 'kill -HUP id', and its failed to restart, kill say nothing? Because the kill command has no way to know about it. The kill command only instructs the

Re: easy question about kill command

2005-12-16 Thread Oliver Fromme
Roman Gorohov. [EMAIL PROTECTED] wrote: Thanks for your reply. My question was about standard bsd daemons, not about some apps with unpredictable behaviour. But the kill command doesn't know what kind of daemon it is sending a signal to. It just sends a signal to a PID. That PID could belong

Re: easy question about kill command

2005-12-16 Thread Dan Nelson
In the last episode (Dec 16), Roman Gorohov. said: Oliver Fromme wrote: roma.a.g [EMAIL PROTECTED] wrote: Is there anyone who can explain me, why when i say 'kill -HUP id', and its failed to restart, kill say nothing? There is no way for the kill command to know what

Re: easy question about kill command

2005-12-16 Thread Brian Reichert
On Fri, Dec 16, 2005 at 10:52:25AM +0300, roma.a.g wrote: Is there anyone who can explain me, why when i say 'kill -HUP id', and its failed to restart, kill say nothing? That's because all kill is responsible for is sending the signal; see kill(2). As to whether or not the process in question

Re: dev_lock() question

2005-09-30 Thread John Baldwin
On Thursday 29 September 2005 03:36 pm, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], John Baldwin writes: On Thursday 29 September 2005 02:14 pm, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], John Baldwin writes: Actually, you would think that it could be initialized

Re: dev_lock() question

2005-09-29 Thread Stanislav Sedov
On Thu, Sep 29, 2005 at 06:55:38PM +0200, Divacky Roman wrote: Hi, dev_lock() looks this way: void dev_lock(void) { if (!mtx_initialized(devmtx)) mtx_init(devmtx, cdev, NULL, MTX_DEF); mtx_lock(devmtx); } I wonder why is the mtx_initialized checking

Re: dev_lock() question

2005-09-29 Thread John Baldwin
On Thursday 29 September 2005 01:04 pm, Stanislav Sedov wrote: On Thu, Sep 29, 2005 at 06:55:38PM +0200, Divacky Roman wrote: Hi, dev_lock() looks this way: void dev_lock(void) { if (!mtx_initialized(devmtx)) mtx_init(devmtx, cdev, NULL, MTX_DEF);

Re: dev_lock() question

2005-09-29 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], John Baldwin writes: Actually, you would think that it could be initialized either via an early SYSINIT() or in the init_mutexes() function in kern_mutex.c and thus not need the early check and avoid penalizing dev_lock(). phk, how early his dev_lock needed? Far

Re: dev_lock() question

2005-09-29 Thread John Baldwin
On Thursday 29 September 2005 02:14 pm, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], John Baldwin writes: Actually, you would think that it could be initialized either via an early SYSINIT() or in the init_mutexes() function in kern_mutex.c and thus not need the early check and

Re: dev_lock() question

2005-09-29 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], John Baldwin writes: On Thursday 29 September 2005 02:14 pm, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], John Baldwin writes: Actually, you would think that it could be initialized either via an early SYSINIT() or in the init_mutexes() function in

RE: synchronization question about /sys/dev/vkbd/vkbd.c

2005-06-06 Thread Norbert Koch
My question is: Is it not possible, that vkbd_dev_intr() could be interrupted at any position before the VKBD_LOCK() and then vkbd_dev_write() called? in theory it is possible. If yes, how should vkbd_dev_write() know, that it should call task_enqueue(), as TASK is still set?

Re: synchronization question about /sys/dev/vkbd/vkbd.c

2005-06-03 Thread Maksim Yevmenkin
Norbert, When looking at /sys/dev/vkbd/vkbd.c I found one thing, that I do not understand. There are three places, where a flag TASK is used: 1. in vkbd_dev_close(): while(state-ks_flag TASK) VKBD_SLEEP (...); 2. in vkbd_dev_write() VKBD_LOCK (); ... if (!(state-ks_flags TASK)

Re: Pci Question

2005-05-05 Thread Cole
Err, sorry. I meant the linux version of this is using outl_p to communicate with the device, and write the values. /Cole - Original Message - From: Cole [EMAIL PROTECTED] To: freebsd-hackers@freebsd.org Sent: Thursday, May 05, 2005 12:04 PM Subject: Pci Question Hi Im trying to

Re: Pci Question

2005-05-05 Thread Cole
Nevermind, I figured it out and got it working. Thanks - Original Message - From: Cole [EMAIL PROTECTED] To: freebsd-hackers@freebsd.org Sent: Thursday, May 05, 2005 12:39 PM Subject: Re: Pci Question Err, sorry. I meant the linux version of this is using outl_p to communicate

Re: Pci Question

2005-05-05 Thread M. Warner Losh
Open /dev/io to use out*/in* functions. Warner ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: A question about /sys/kern/link_elf.c

2005-05-03 Thread Doug Rabson
On Monday 02 May 2005 13:35, [EMAIL PROTECTED] wrote: There is a #ifdef SPARSE_MAPPING at line 701,and again a #ifdef SPARSE_MAPPING at line 713.I just can't understand the second one.Does it have any special mean ? thanks . It's just conditional compiling construct...however as you can

Re: A question about /sys/kern/link_elf.c

2005-05-03 Thread prime
thanks for all your responses.I know that it is just conditional compiling construct,but I just can't understand the nested *test* of SPARSE_MAPPING( the 2nd #ifdef ... is nested in the 1st one). Thanks .I think I get it now. On Monday 02 May 2005 13:35, gerarra at tin.it wrote: There is a

RE: A question about /sys/kern/link_elf.c

2005-05-02 Thread gerarra
There is a #ifdef SPARSE_MAPPING at line 701,and again a #ifdef SPARSE_MAPPING at line 713.I just can't understand the second one.Does it have any special mean ? thanks . It's just conditional compiling construct...however as you can see in the tag For whatever reason, SPARSE_MAPPING is not

Re: vinum question

2005-04-14 Thread Bernd Walter
On Thu, Apr 14, 2005 at 08:50:20AM -0700, Matt wrote: I have a two disk array that I want to move to another machine. It is configured with striping using vinum. What is the best way to set it up under a new machine? Should I simply load the old vinum.conf file and enable vinum? Thanks

Re: vinum question

2005-04-14 Thread Matt
Bernd Walter wrote: On Thu, Apr 14, 2005 at 08:50:20AM -0700, Matt wrote: I have a two disk array that I want to move to another machine. It is configured with striping using vinum. What is the best way to set it up under a new machine? Should I simply load the old vinum.conf file and

Re: vinum question

2005-04-14 Thread Matt
Matt wrote: Bernd Walter wrote: On Thu, Apr 14, 2005 at 08:50:20AM -0700, Matt wrote: I have a two disk array that I want to move to another machine. It is configured with striping using vinum. What is the best way to set it up under a new machine? Should I simply load the old vinum.conf

Re: vinum question

2005-04-14 Thread Joan Picanyol i Puig
* Matt [EMAIL PROTECTED] [20050414 18:43]: Bernd Walter wrote: On Thu, Apr 14, 2005 at 08:50:20AM -0700, Matt wrote: I have a two disk array that I want to move to another machine. It is configured with striping using vinum. What is the best way to set it up under a new machine?

Re: vinum question

2005-04-14 Thread Rex Roof
i noticed the documentation hasn't been migrated to gvinum, though. anyone have a config suggestion to stripe two mirrors? I tried this: drive diska device /dev/ad4s1a drive diskb device /dev/ad6s1a drive diskc device /dev/ad8s1a drive diskd device /dev/ad12s1a volume mirrorone plex org

Re: vinum question

2005-04-14 Thread Joan Picanyol i Puig
* Rex Roof [EMAIL PROTECTED] [20050414 19:34]: i noticed the documentation hasn't been migrated to gvinum, though. anyone have a config suggestion to stripe two mirrors? Short answer: you can't. Longer answer: http://docs.FreeBSD.org/cgi/mid.cgi?423CAE7E.4070009 qvb -- pica

Re: vinum question

2005-04-14 Thread Rex Roof
can I stripe two mirrors with vinum that were created with gmirror? On 4/14/05, Joan Picanyol i Puig [EMAIL PROTECTED] wrote: * Rex Roof [EMAIL PROTECTED] [20050414 19:34]: i noticed the documentation hasn't been migrated to gvinum, though. anyone have a config suggestion to stripe two

Re: A question about hot-pluggable PCI.

2005-04-13 Thread Bruce M Simpson
On Mon, Apr 11, 2005 at 11:21:14AM -0600, M. Warner Losh wrote: No we don't. We use what the BIOS provides, but will lazily allocate the BARs as necessary. We don't open the resource windows on the bridges, however. This 'sorta' works now. I program a hard-coded window into the PCI bridge

Re: A question about hot-pluggable PCI.

2005-04-13 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Bruce M Simpson [EMAIL PROTECTED] writes: : On Mon, Apr 11, 2005 at 11:21:14AM -0600, M. Warner Losh wrote: : No we don't. We use what the BIOS provides, but will lazily allocate : the BARs as necessary. We don't open the resource windows on the :

Re: A question about hot-pluggable PCI.

2005-04-11 Thread Scott Long
Bruce M Simpson wrote: Hi, I have acquired a Mobility Electronics EasiDock 5000. As some of you may already know, this is a device which allows you to connect regular PCI cards to your laptop, using a device called a 'Split Bridge'. (*) Ok. Cool toy, you may be thinking. Indeed. But I want to make

Re: A question about hot-pluggable PCI.

2005-04-11 Thread Bruce M Simpson
On Mon, Apr 11, 2005 at 07:25:07AM -0600, Scott Long wrote: Asking for 'hotplug support' is pretty generic and non-descriptive. Are you asking for device level hotplug support, where we carefully drain transactions out of a device, device driver, and whatever I/O or network or whatever layers

Re: A question about hot-pluggable PCI.

2005-04-11 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Bruce M Simpson [EMAIL PROTECTED] writes: : On Mon, Apr 11, 2005 at 07:25:07AM -0600, Scott Long wrote: : Asking for 'hotplug support' is pretty generic and non-descriptive. Are : you asking for device level hotplug support, where we carefully drain :

Re: threads question

2005-03-16 Thread Peter Schuller
this works perfectly because I moved MGPMrUpgrade into the same .c file so it would be a static function:

Re: threads question

2005-03-16 Thread Michael C. Shultz
On Wednesday 16 March 2005 01:40 pm, you wrote: this works perfectly because I moved MGPMrUpgrade into the same .c file so it would be a static function: structProperty* property; pthread_t threads[NTHREADS]; pthread_create( threads[0], NULL, zzMGPMrUpgrade, property ); When

Re: threads question

2005-03-15 Thread Michael C. Shultz
On Monday 14 March 2005 08:57 pm, Daniel Eischen wrote: On Mon, 14 Mar 2005, Michael C. Shultz wrote: Hi, I've just reached a point in a program I'm writing where I'd like to do threading. When I try to start a thread like this: pthread_create(thread, attr, MGPMrUpgrade, property );

Re: threads question

2005-03-15 Thread Daniel Eischen
On Tue, 15 Mar 2005, Michael C. Shultz wrote: Daniel, sorry to bother you again but I ran into something that is either a bug or I am missing a vital piece of information somewhere. Here is the situation: this works perfectly because I moved MGPMrUpgrade into the same .c file so it would be

Re: threads question

2005-03-15 Thread Michael C. Shultz
On Tuesday 15 March 2005 10:19 am, Daniel Eischen wrote: On Tue, 15 Mar 2005, Michael C. Shultz wrote: Daniel, sorry to bother you again but I ran into something that is either a bug or I am missing a vital piece of information somewhere. Here is the situation: this works perfectly

Re: threads question

2005-03-15 Thread Zera William Holladay
On Tue, 15 Mar 2005, Michael C. Shultz wrote: [cut] The answer is probably something like what you just said, scope being lost when making the call to a shared library. Why is it ok going to a static library but not a shared though? There is probably a race condition, so your code will work

Re: threads question

2005-03-15 Thread Michael C. Shultz
On Tuesday 15 March 2005 12:02 pm, you wrote: On Tue, 15 Mar 2005, Michael C. Shultz wrote: [cut] The answer is probably something like what you just said, scope being lost when making the call to a shared library. Why is it ok going to a static library but not a shared though? There is

Re: threads question

2005-03-14 Thread Daniel Eischen
On Mon, 14 Mar 2005, Michael C. Shultz wrote: Hi, I've just reached a point in a program I'm writing where I'd like to do threading. When I try to start a thread like this: pthread_create(thread, attr, MGPMrUpgrade, property );

Re: threads question

2005-03-14 Thread Michael C. Shultz
On Monday 14 March 2005 08:57 pm, Daniel Eischen wrote: On Mon, 14 Mar 2005, Michael C. Shultz wrote: Hi, I've just reached a point in a program I'm writing where I'd like to do threading. When I try to start a thread like this: pthread_create(thread, attr, MGPMrUpgrade, property );

Re: gcc question

2005-02-25 Thread Giorgos Keramidas
On 2005-02-25 11:34, Kathy Quinlan [EMAIL PROTECTED] wrote: Daniel O'Connor wrote: On Thu, 24 Feb 2005 17:57, Kathy Quinlan wrote: ATM it is written in codevisionAVR which is where the function is called, so I guess for now I will just break the AVR support;) Ahh.. So.. are you talking about

Re: gcc question

2005-02-24 Thread Kathy Quinlan
Daniel O'Connor wrote: On Thu, 24 Feb 2005 17:57, Kathy Quinlan wrote: ATM it is written in codevisionAVR which is where the function is called, so I guess for now I will just break the AVR support;) Ahh.. So.. are you talking about getting the coding running _in FreeBSD_ or compiled on FreeBSD

Re: gcc question

2005-02-23 Thread Daniel O'Connor
On Thu, 24 Feb 2005 15:00, Kathy Quinlan wrote: I have some code that I build for two targets, one an Atmel uC and the other FreeBSD. What is the best way to redefine getchar and putchar (in uC they use the serial port, in FreeBSD stdin stdout) Or would I be better #ifdef the commands and

Re: gcc question

2005-02-23 Thread Kathy Quinlan
Daniel O'Connor wrote: On Thu, 24 Feb 2005 15:00, Kathy Quinlan wrote: I have some code that I build for two targets, one an Atmel uC and the other FreeBSD. What is the best way to redefine getchar and putchar (in uC they use the serial port, in FreeBSD stdin stdout) Or would I be better #ifdef

Re: ln question

2005-02-18 Thread ALeine
[EMAIL PROTECTED] wrote: I have one strange thing about 'ln' command. my box is 5.2R. This is not strange, it works exactly as expected, but you do not seem to understand how ln works. Read on for the explanation... I built some directory on $HOME , such as $HOME/a/b I want to create a

Re: ln question

2005-02-18 Thread Andrew Konstantinov
On Fri, Feb 18, 2005 at 05:17:07PM +0800, [EMAIL PROTECTED] wrote: Hi hackers ! I have one strange thing about 'ln' command. my box is 5.2R. I built some directory on $HOME , such as $HOME/a/b I want to create a symbolic link for 'b' under top directory , $HOME. The confusion is caused

Re: Simple question about CPUs and processes

2005-01-31 Thread Robert Watson
On Mon, 31 Jan 2005 [EMAIL PROTECTED] wrote: I'd like some insight on the following; Me and a friend were discussing tech stuff and he said that, when using dual (or more) CPU systems, it is the hardware itself (and alone) choosing which CPU will execute this or that process. But I think

Re: Simple question about CPUs and processes

2005-01-31 Thread Ryan Sommers
[EMAIL PROTECTED] wrote: Hi list, I'd like some insight on the following; Me and a friend were discussing tech stuff and he said that, when using dual (or more) CPU systems, it is the hardware itself (and alone) choosing which CPU will execute this or that process. The OS and the OS alone chooses

Re: Simple question about CPUs and processes

2005-01-31 Thread security
Hey, Thanks for the replies Robert and Ryan! That was insigthful. I didn't know about the BP and the shutdown thingy, always learning :-) On Mon, 31 Jan 2005 [EMAIL PROTECTED] wrote: I'd like some insight on the following; Me and a friend were discussing tech stuff and he said that, when

Re: Simple question about CPUs and processes

2005-01-31 Thread Kamal R. Prasad
--- Ryan Sommers [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: [snip] CPU cares about is endlessly executing instructions fed to it and delivering interrupts/exceptions. What your friend might be Im not sure to how many types of hw FreeBSD has been ported, but the POWER4 processor

Re: bus_alloc_resource question

2004-07-27 Thread Jake Burkholder
Apparently, On Mon, Jul 26, 2004 at 06:59:24PM -0700, Chuck Tuffli said words to the effect of; I'm having some trouble adding a bus resource and am hoping someone can point out where I goofed. The host bus to a new x86 chipset has a memory mapped region in PCI space that provides

Re: bus_alloc_resource question

2004-07-27 Thread Chuck Tuffli
On Mon, Jul 26, 2004 at 09:54:53PM -0600, M. Warner Losh wrote: ... Generally, one doesn't need to set the resource value. Doing so usually indicates the presence of some bug in the system. Also, just I realize now that the original email wasn't clear. This is a bus driver for a new bus.

Re: bus_alloc_resource question

2004-07-27 Thread Jake Burkholder
Apparently, On Tue, Jul 27, 2004 at 09:51:25AM -0700, Chuck Tuffli said words to the effect of; On Mon, Jul 26, 2004 at 09:54:53PM -0600, M. Warner Losh wrote: ... Generally, one doesn't need to set the resource value. Doing so usually indicates the presence of some bug in the

Re: bus_alloc_resource question

2004-07-26 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Chuck Tuffli [EMAIL PROTECTED] writes: : I'm having some trouble adding a bus resource and am hoping someone : can point out where I goofed. : : The host bus to a new x86 chipset has a memory mapped region in PCI : space that provides access to status and

Re: Hyperthreading question

2004-06-09 Thread John Baldwin
On Wednesday 09 June 2004 11:04 am, Dwayne MacKinnon wrote: Hello, I'm in charge of upgrading a number of boxes from 4.8-RELEASE from 4.10-RELEASE. My problem is this section of notes from the 4.9-RELEASE errata: (28 Oct 2003) Very late in the release cycle, a change was made to the

Re: Re[2]: Question regarding shell user creation at login time

2004-04-02 Thread David Taylor
On Tue, 30 Mar 2004, ghos wrote: You wrote 29 mar 2004, 8:05:55 +0500: Hi, I traced sshd using ktrace and it says: .. 10198 new CALL setuid(0) 10198 new RET setuid -1 errno 1 Operation not permitted 10198 new CALL

Re[2]: Question regarding shell user creation at login time

2004-03-29 Thread ghos
You wrote 29 mar 2004, 8:05:55 +0500: Hi, I traced sshd using ktrace and it says: .. 10198 new CALL setuid(0) 10198 new RET setuid -1 errno 1 Operation not permitted 10198 new CALL execve(0x80485d0,0xbfbfed8c,0xbfbfed94) 10198 new NAMI

Re: CVS question: diff between dates on a branch

2004-03-18 Thread Ruslan Ermilov
On Thu, Mar 18, 2004 at 01:49:07PM +0300, Dmitry Morozovsky wrote: Dear colleagues, maybe I'm stupid and blind ;-) but I still can't fugure out how can I ask CVS to get diff between two states of a branch with known dates (such as today and yesterday). All that I found was 'cvs get

Re: CVS question: diff between dates on a branch

2004-03-18 Thread Dmitry Morozovsky
On Thu, 18 Mar 2004, Ruslan Ermilov wrote: RE maybe I'm stupid and blind ;-) but I still can't fugure out how can I ask CVS RE to get diff between two states of a branch with known dates (such as today and RE yesterday). All that I found was 'cvs get -jBRANCH:date1 -jBRACH:date2' but RE this

Re: USB Question: unable to open /dev/ugen0 more than once

2003-11-24 Thread Bernd Walter
On Sun, Nov 23, 2003 at 08:50:45PM -0500, Michael E. Mercer wrote: Hello peoples, I posted this to questions with no reply, I was hoping someone here may be able to give some insight. Question: Should I be able to open /dev/ugen0 more than once? I am using FreeBSD 4.9-Stable,

Re: Driver question

2003-11-10 Thread Bruce M Simpson
Craig, On Sat, Nov 08, 2003 at 10:11:22PM -0500, Craig StJean wrote: I have a prism2 USB wireless device. I've never written drivers before but I have been developing for the past 8 years. Could someone guide me to a website or something that would help me write a USB wrapper for the wi

Re: Driver question

2003-11-10 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Bruce M Simpson [EMAIL PROTECTED] writes: : Craig, : : On Sat, Nov 08, 2003 at 10:11:22PM -0500, Craig StJean wrote: : I have a prism2 USB wireless device. I've never written drivers before but I have been developing for the past 8 years. Could someone

Re: quick question about raid controllers

2003-07-20 Thread M. Warner Losh
In message: [EMAIL PROTECTED] [EMAIL PROTECTED] writes: : Are there any SCSI raid controllers that have real-time array rebuild : capabilities/tools for FreeBSD?? All of the ones I have used so far : require reboot for rebuilding/modifying. Also are there any good tools for :

Re: mbuf question again

2003-04-01 Thread Dmitry V.Galant
On Tue, Apr 01, 2003 at 11:34:03AM +0200, Stalker wrote: Hi I would like to know if it is possible to write a program to check which mbuf's are allocated to which programs that are currently running, or is this totally not possible? If it is possible, could someone point me in the right

Re: mbuf question again

2003-04-01 Thread Terry Lambert
Stalker wrote: I would like to know if it is possible to write a program to check which mbuf's are allocated to which programs that are currently running, or is this totally not possible? If it is possible, could someone point me in the right direction as in which libraries / functions /

Re: Simple question about profiling

2003-02-18 Thread Erik Trulsson
On Mon, Feb 17, 2003 at 03:10:34PM +0100, Paolo Pisati wrote: I've to confess this my first serious profile session, and i found something really strange (at least for me... =P) [flag@law3 src]$ gprof proto3 [snip] % cumulative self self total time seconds

Re: A question about S/390 port

2002-07-11 Thread Jake Burkholder
Apparently, On Thu, Jul 11, 2002 at 09:11:47AM +0400, Serguei Tzukanov said words to the effect of; On Thursday 11 July 2002 02:45, Jake Burkholder wrote: I think this is because your console driver (hc) doesn't have a tty interface, just the low level cn* stuff. If you look at

Re: A question about S/390 port

2002-07-11 Thread Serguei Tzukanov
On Thursday 11 July 2002 18:43, Jake Burkholder wrote: Where exactly in init are you trying to print? If you're in the single_user function, you can only use stdio in the forked child after it calls setctty. Before that you have to open an fd on /dev/console yourself and write(2) to it, or

RE: A question about S/390 port

2002-07-10 Thread John Baldwin
On 10-Jul-2002 Serguei Tzukanov wrote: Some working notes. I've written the libc/csu part, kernel successfully starts init and init forks off for the execve of -sh, (http://tzukanov.narod.ru/freebsd390/bootlog.txt) but there is problem with printing from userland, e.g. output from

Re: A question about S/390 port

2002-07-10 Thread Serguei Tzukanov
td_retval[0] is the low word, and td_retval[1] is the high word, you just need to make sure the values from those two words get returned properly to userland. 1) syscall returns 32-bit value: r2 = rv[0]; r3 = rv[1]; r3 is irrelevant here (ABI: 32-bit values returned

Re: A question about S/390 port

2002-07-10 Thread John Baldwin
On 10-Jul-2002 Serguei Tzukanov wrote: td_retval[0] is the low word, and td_retval[1] is the high word, you just need to make sure the values from those two words get returned properly to userland. 1) syscall returns 32-bit value: r2 = rv[0]; r3 = rv[1]; r3 is

Re: A question about S/390 port

2002-07-10 Thread Terry Lambert
It sounds like a tty driver problem. Does the emulator even support this? Do you have a package, so that people can install your developement environment and use your patches so they can participate in helping you code? -- Terry Serguei Tzukanov wrote: Some working notes. I've written

Re: A question about S/390 port

2002-07-10 Thread Terry Lambert
John Baldwin wrote: Why does the cast from 32 to 64 treat r3 as the lower 32-bits when a 64-bit return value treats r3 as the upper 32-bits and r2 as the lower 32-bits? That is inconsistent and you are going to have problems with either one or the other. I also don't understand exactly

Re: A question about S/390 port

2002-07-10 Thread Serguei Tzukanov
On Wednesday 10 July 2002 23:04, Julian Elischer wrote: OK so I have to ask.. S/390 as in IBM Mainframem S/390? Yeas, ESA/390. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: A question about S/390 port

2002-07-10 Thread Serguei Tzukanov
On Thursday 11 July 2002 02:45, Jake Burkholder wrote: I think this is because your console driver (hc) doesn't have a tty interface, just the low level cn* stuff. If you look at the ofw_console driver, it provides a rudimentary tty interface using polling and cngetc, cnputc equivalents.

Re: VM Question (was Re: larger kernel virtual address space)

2002-05-01 Thread David Schultz
Thus spake Lamont Granquist [EMAIL PROTECTED]: Does the FreeBSD VM system do O(1) or O(N) searches for gaps in a processes virtual memory space? I'm not a VM guru, but if I'm reading vm_map.c right, it's O(n) w.r.t. the number of map entries. But since map entries are merged when possible, I

Re: VM Question (was Re: larger kernel virtual address space)

2002-05-01 Thread Lamont Granquist
On Wed, 1 May 2002, David Schultz wrote: Thus spake Lamont Granquist [EMAIL PROTECTED]: Does the FreeBSD VM system do O(1) or O(N) searches for gaps in a processes virtual memory space? I'm not a VM guru, but if I'm reading vm_map.c right, it's O(n) w.r.t. the number of map entries.

Re: A question of VM page ownership

2002-03-07 Thread Alfred Perlstein
* Zhihui Zhang [EMAIL PROTECTED] [020307 08:28] wrote: Is there any fundamental reason why a page can not be owned by more than one VM object? If that was the case, the bogus page stuff in vfs_bio.c could be made cleaner IMHO. There is only enough linkage in the vm page to support it being

Re: A question of VM page ownership

2002-03-07 Thread Terry Lambert
Zhihui Zhang wrote: Is there any fundamental reason why a page can not be owned by more than one VM object? If that was the case, the bogus page stuff in vfs_bio.c could be made cleaner IMHO. When you need to reclaim the page, you would have to identify all owners, rather than a single

Re: A question of VM page ownership

2002-03-07 Thread Julian Elischer
which one does the data come from? On Thu, 7 Mar 2002, Zhihui Zhang wrote: Is there any fundamental reason why a page can not be owned by more than one VM object? If that was the case, the bogus page stuff in vfs_bio.c could be made cleaner IMHO. -Zhihui To Unsubscribe: send mail

Re: A question of VM page ownership

2002-03-07 Thread Zhihui Zhang
The bogus page is owned by the system object, not by individual objects associated with the files. If a page could be owned by more than one objects, then we could let the object associated with a file to own the bogus page. -Zhihui On Thu, 7 Mar 2002, Julian Elischer wrote: which one does

Re: A question of VM page ownership

2002-03-07 Thread Matthew Dillon
:which one does the data come from? : :On Thu, 7 Mar 2002, Zhihui Zhang wrote: : : : Is there any fundamental reason why a page can not be owned by more than : one VM object? If that was the case, the bogus page stuff in vfs_bio.c : could be made cleaner IMHO. : : -Zhihui : I think

Re: A question and a suggestion about loadable modules

2002-02-20 Thread Cliff Sarginson
On Tue, Feb 19, 2002 at 02:58:09PM -0600, Dan Nelson wrote: In the last episode (Feb 19), Cliff Sarginson said: Hello, Someone suggested this may be the right list for this. - Has consideration in the loadable modules implementation been given to a module dependency facility, in the

Re: A question and a suggestion about loadable modules

2002-02-20 Thread Dan Nelson
In the last episode (Feb 20), Cliff Sarginson said: On Tue, Feb 19, 2002 at 02:58:09PM -0600, Dan Nelson wrote: In the last episode (Feb 19), Cliff Sarginson said: Hello, Someone suggested this may be the right list for this. - Has consideration in the loadable modules

Re: A question and a suggestion about loadable modules

2002-02-20 Thread Cliff Sarginson
On Wed, Feb 20, 2002 at 01:42:40PM -0600, Dan Nelson wrote: In the last episode (Feb 20), Cliff Sarginson said: On Tue, Feb 19, 2002 at 02:58:09PM -0600, Dan Nelson wrote: In the last episode (Feb 19), Cliff Sarginson said: Hello, Someone suggested this may be the right list for

Re: Posix question

2002-02-20 Thread Rogier R. Mulhuijzen
At 16:32 20-2-2002 -0600, Lane, Frank L wrote: Hi List, I'm facing a serial write problem. Posix provides a function tcdrain () that blocks until all serial data has been written from the card. Is there an analogous function in the gnu c compiler for windows platforms? Does the gnu c compiler

Re: Posix question

2002-02-20 Thread Terry Lambert
Lane, Frank L wrote: I'm facing a serial write problem. Posix provides a function tcdrain () that blocks until all serial data has been written from the card. Is there an analogous function in the gnu c compiler for windows platforms? Does the gnu c compiler try to give you posix

Re: A question and a suggestion about loadable modules

2002-02-19 Thread Dan Nelson
In the last episode (Feb 19), Cliff Sarginson said: Hello, Someone suggested this may be the right list for this. - Has consideration in the loadable modules implementation been given to a module dependency facility, in the manner of depmod in Linux ? So that any module loaded will

RE: A question about timecounters

2002-02-06 Thread DOROVSKOY,IGOR (A-Portsmouth,ex1)
be open source. It's a simulated web client and web server, running inside the kernel. It's good for load-testing and performance-testing many kinds of network devices. With two 1-GHz PIII boxes (one acting as the client and the other acting as the server) it can generate around 5

Re: A question about timecounters

2002-02-05 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], John Polstra writes: Mike Smith [EMAIL PROTECTED] wrote: It's not necessarily caused by interrupt latency. Here's the assumption that's being made. [...] Thanks for the superb explanation! I appreciate it. My apologies for never getting the timecounter

Re: A question about timecounters

2002-02-05 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Poul-Henning Kamp [EMAIL PROTECTED] writes: : But the i8254 is a piece of shit in this context, and due to : circumstances (apm being enabled0 most machines end up using the : i8254 by default. : : My (and I belive Bruce's) diagnosis so far is that most

Re: A question about timecounters

2002-02-05 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], M. Warner Losh writes: In message: [EMAIL PROTECTED] Poul-Henning Kamp [EMAIL PROTECTED] writes: : But the i8254 is a piece of shit in this context, and due to : circumstances (apm being enabled0 most machines end up using the : i8254 by default. : : My

Re: A question about timecounters

2002-02-05 Thread John Polstra
In article [EMAIL PROTECTED], John Baldwin [EMAIL PROTECTED] wrote: like, If X is never locked out for longer than Y, this problem cannot happen. I'm looking for definitions of X and Y. X might be hardclock() or softclock() or non-interrupt kernel processing. Y would be some measure

Re: A question about timecounters

2002-02-05 Thread John Polstra
In article [EMAIL PROTECTED], Poul-Henning Kamp [EMAIL PROTECTED] wrote: In message [EMAIL PROTECTED], John Polstra writes: That's the global variable named timecounter, right? I did notice one potential problem: that variable is not declared volatile. So in this part ... This may be a

Re: A question about timecounters

2002-02-05 Thread John Polstra
In article [EMAIL PROTECTED], Poul-Henning Kamp [EMAIL PROTECTED] wrote: In message [EMAIL PROTECTED], John Polstra writes: In article [EMAIL PROTECTED], John Baldwin [EMAIL PROTECTED] wrote: like, If X is never locked out for longer than Y, this problem cannot happen. I'm looking

Re: A question about timecounters

2002-02-05 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], John Polstra writes: Agreed. But in the cases I'm worrying about right now, the timecounter is the TSC. Now, *that* is very interesting, how reproducible is it ? Can you try to MFC rev 1.111 and see if that changes anything ? -- Poul-Henning Kamp | UNIX

<    1   2   3   4   5   6   >