Accessing address space of a process through kld!!

2006-02-27 Thread Tanmay
Hello, How do I access the address space ie text,data and stack of a (user level)process whose pid I know from my kld. for eg: Suppose 'vi' is running and I want to access its address space through my kld, then how do I do it? TIA, Tanmay ___

Re: world's toolchain CPUTYPE

2006-02-27 Thread Yar Tikhiy
On Mon, Feb 27, 2006 at 12:03:17AM -0700, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Ruslan Ermilov [EMAIL PROTECTED] writes: : On Sun, Feb 26, 2006 at 06:50:09PM +0300, Yar Tikhiy wrote: : Hi all, : : Yesterday I hit the following problem: : : - was given an

unversal watchdog

2006-02-27 Thread Vitaliy Ovsyannikov
Hello, freebsd-hackers. I've stuck with the unable to make watchdogs for daemons running via startup rc-scripts. In linux we can just put the process in the inittab. Does FreeBSD contains ability like this? -- Sincerely, Vitaliy Ovsyannikov JSC Skala, Krasnoyarsk, Russia

UMA zone allocator memory fragmentation questions

2006-02-27 Thread Rohit Jalan
Hi, Is there an upper limit on the amount of fragmentation / wastage that can occur in a UMA zone? Is there a method to know the total number of pages used by a UMA zone at some instance of time? Thanks, rohit -- ___ freebsd-hackers@freebsd.org

Re: unversal watchdog

2006-02-27 Thread Daniel O'Connor
On Monday 27 February 2006 21:11, Vitaliy Ovsyannikov wrote: I've stuck with the unable to make watchdogs for daemons running via startup rc-scripts. In linux we can just put the process in the inittab. Does FreeBSD contains ability like this? Create a script for /etc/rc.d (or

Re: unversal watchdog

2006-02-27 Thread Tobias Roth
On Mon, Feb 27, 2006 at 09:53:17PM +1030, Daniel O'Connor wrote: On Monday 27 February 2006 21:11, Vitaliy Ovsyannikov wrote: I've stuck with the unable to make watchdogs for daemons running via startup rc-scripts. In linux we can just put the process in the inittab. Does FreeBSD contains

Re: unversal watchdog

2006-02-27 Thread Daniel O'Connor
On Monday 27 February 2006 22:33, Tobias Roth wrote: man rc.subr plus a look through /etc/rc.d should get you started :) Can you explain in more detail how one can handle the watchdog part of the equation? I can't find that information in the rc.subr manpage. Ahh sorry I think I

Re: Re: unversal watchdog

2006-02-27 Thread Sergey Babkin
From: Daniel O'Connor [EMAIL PROTECTED] On Monday 27 February 2006 22:33, Tobias Roth wrote: man rc.subr plus a look through /etc/rc.d should get you started :) Can you explain in more detail how one can handle the watchdog part of the equation? I can't find that information in the rc.subr

Re: unversal watchdog

2006-02-27 Thread Joseph Koshy
dc As to answer the question - I am not aware of any facility for dc automatically restarting things (unless you can get init to do dc it via /etc/ttys somehow) Wasn't there a port of launchd in the wings? -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy

Re: unversal watchdog

2006-02-27 Thread Deomid Ryabkov
Vitaliy Ovsyannikov wrote: Hello, freebsd-hackers. I've stuck with the unable to make watchdogs for daemons running via startup rc-scripts. In linux we can just put the process in the inittab. Does FreeBSD contains ability like this? try sysutils/daemontools -- Deomid Ryabkov aka Rojer

Re: Re: unversal watchdog

2006-02-27 Thread joerg
On Mon, Feb 27, 2006 at 07:20:45AM -0600, Sergey Babkin wrote: Well, it's been a long story now. Every time someone comes with the idea of adding init to BSD, other people feel very strongly that they hate init and that it must not be in BSD. /sbin/init existed on BSD almost forever. You could

Fastest timecounter ?

2006-02-27 Thread Vlad GALU
Dear hackers, I'm in a dilemma (more like a trilemma, actually). While following the 5.x and 6.x development cycle I observed that the default timecounter varies from one machine from another (for instance on my home desktop which is an AMD Athlon 2400+ it uses ACPI-fast, whereas on my

Re: Fastest timecounter ?

2006-02-27 Thread Joseph Koshy
vg I wrote a piece of software that has to get the current vg timestamp, one way or the other, a huge number of times per vg second. Apart from the empyrical tests one can perform to vg find out the timekeeping scheme with the less performance vg impact, is there any rule of thumb as to what

HP Smart Array 6i opinions

2006-02-27 Thread Steven Hartland
Has anyone had any dealings with the HP Smart Array 6i? Specifically looking for info on: * Performance * Disk failure recover * Available tools for monitoring etc. Regards Steve This e.mail is private and confidential between Multiplay

HP Smart Array 6i opinions

2006-02-27 Thread Steven Hartland
Has anyone had any dealings with the HP Smart Array 6i? Specifically looking for info on: * Performance * Disk failure recover * Available tools for monitoring etc. Regards Steve This e.mail is private and confidential between Multiplay

Difference between signal related structures

2006-02-27 Thread Pranav Sawargaonkar
Hi I am studying signaling related work in FreeBSD kernel just for learning. Can anybody tell me that why there are two different structures named 1)struct sigcontext 2)struct osigcontext are defined in /sys/i386/include/signal.h I want to know what is basic difference between them? Thanks in

Re: Accessing address space of a process through kld!!

2006-02-27 Thread John-Mark Gurney
Tanmay wrote this message on Mon, Feb 27, 2006 at 13:56 +0530: How do I access the address space ie text,data and stack of a (user level)process whose pid I know from my kld. for eg: Suppose 'vi' is running and I want to access its address space through my kld, then how do I do it? You look up

Re: Difference between signal related structures

2006-02-27 Thread Sergey Babkin
From: Pranav Sawargaonkar [EMAIL PROTECTED] Hi I am studying signaling related work in FreeBSD kernel just for learning. Can anybody tell me that why there are two different structures named 1)struct sigcontext 2)struct osigcontext are defined in /sys/i386/include/signal.h I want to know what

Re: unversal watchdog

2006-02-27 Thread John-Mark Gurney
Vitaliy Ovsyannikov wrote this message on Mon, Feb 27, 2006 at 17:41 +0700: I've stuck with the unable to make watchdogs for daemons running via startup rc-scripts. In linux we can just put the process in the inittab. Does FreeBSD contains ability like this? yes, you can use ttys(5) for

Re: unversal watchdog

2006-02-27 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Daniel O'Connor [EMAIL PROTECTED] writes: : As to answer the question - I am not aware of any facility for automatically : restarting things (unless you can get init to do it via /etc/ttys somehow) : : I don't think it would be too hard to create a shell

Re: unversal watchdog

2006-02-27 Thread Alex Semenyaka
On Mon, Feb 27, 2006 at 05:41:32PM +0700, Vitaliy Ovsyannikov wrote: Hello, freebsd-hackers. I've stuck with the unable to make watchdogs for daemons running via startup rc-scripts. In linux we can just put the process in the inittab. Does FreeBSD contains ability like this? You can do it

Re: world's toolchain CPUTYPE

2006-02-27 Thread Alex Semenyaka
Ruslan, On Sun, Feb 26, 2006 at 08:57:21PM +0200, Ruslan Ermilov wrote: More details: during the install, part of the toolchain and some special install tools that were built on the build host are used. They have been built using that host's toolchain, CFLAGS, libraries, etc., but libraries