Re: Determine location of LD_PRELOAD'ed shared libraries/functions.

2005-05-22 Thread Jake Burkholder
Marcin wrote: Hello Hackers, I'd like to find locations of functions exported by shared lib loaded into the running ptrace'd process via LD_PRELOAD. I want do determine this from tracing process. For shared libraries linked with a program i can just open the program file and search for

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 Jake Burkholder
possible bus, device, function number combination. I was thinking that each of these segments was a bus resource, but maybe that isn't the right approach. Any thoughts as to a better approach? Jake Burkholder suggested using pmap_mapdev() for small sections of memory, but cautioned that this uses up

Re: Exceptions via setjmp/longjmp in kernel.

2003-01-09 Thread Jake Burkholder
Apparently, On Thu, Jan 09, 2003 at 03:30:59PM +0100, Pawel Jakub Dawidek said words to the effect of; Hello hackers... I got strange problem when trying to implement something like exceptions with setjmp()/longjmp() functions. [...] int ret; jmpbuf buf;

Re: More dynamic KVA_SPACE

2002-08-29 Thread Jake Burkholder
Apparently, On Thu, Aug 29, 2002 at 12:41:14PM -0700, Terry Lambert said words to the effect of; Aaro J Koskinen wrote: I've been thinking what kind of modifications would it need to decide the KVA space size at the kernel boot time (maybe an argument to btext), instead of compile

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

Re: question: hacking init_main.c

2002-05-13 Thread Jake Burkholder
Apparently, On Sun, May 12, 2002 at 11:36:27PM -0700, Terry Lambert said words to the effect of; Jake Burkholder wrote: I know that you wrote it and I know that you're wrong. Take sparc64_init() for example, which is called from locore.S before mi_startup

Re: question: hacking init_main.c

2002-05-12 Thread Jake Burkholder
Apparently, On Sun, May 12, 2002 at 11:26:13AM -0700, Terry Lambert said words to the effect of; Dmitry Mottl wrote: I got a page fault (page not present, supervisor read) when I try to modify /sys/kern/init_main.c I want kernel print each subsytem name when it called from

Re: question: hacking init_main.c

2002-05-12 Thread Jake Burkholder
Apparently, On Sun, May 12, 2002 at 10:31:17PM -0700, Terry Lambert said words to the effect of; Jake Burkholder wrote: Wrong, no cookie. kernel printf uses the low level console which is initialized by cninit, which is called from init386 (etc), before mi_startup. My best

Re: struct __hack

2002-03-01 Thread Jake Burkholder
Apparently, On Fri, Mar 01, 2002 at 11:14:38AM +0300, Alexey V. Neyman said words to the effect of; Hello there! In FreeBSD headers there are many occurences of 'struct __hack' (e.g. in src/sys/module.h, eventhandler.h). What's the point of this structure? I guess it help to

Re: init code in dynamic libraries

2001-12-19 Thread Jake Burkholder
Apparently, On Wed, Dec 19, 2001 at 09:46:46PM +0100, Bernd Walter said words to the effect of; On Wed, Dec 19, 2001 at 08:06:20PM +0100, Maxime Henrion wrote: Bernd Walter wrote: How can I add initalisation code to a library without needing to call a function in the using

Re: review: sparc64 port commit candidate

2001-07-29 Thread Jake Burkholder
On Tue, Jul 24, 2001 at 01:41:24AM -0400, Jake Burkholder wrote: and here is a dump of how far it gets: http://people.freebsd.org/~jake/tip.record One thing I did notice here was the OpenBoot prom version (3.15) which, to be blunt, is something Noah had installed on his navigation

Re: Need a clean room implementation of this function

2001-07-26 Thread Jake Burkholder
On Thu, Jul 26, 2001 at 03:49:58PM -0700, John Baldwin wrote: That does set, not test-and-set. What I want is exactly what the Intel BTS instruction does: atomically test and set a bit. Unfortunately that is very ia32 specific. The code would be more friendly on alpha and ia64 at

review: sparc64 port commit candidate

2001-07-23 Thread Jake Burkholder
Hello, Below are links to the sparc64 port I've been working on, which I'd like to commit. The way I started the port was to make stub versions of all the machine dependent functions in the kernel, which panic with an informative message when called. Given minimal startup code and console

Re: Patching live kernels

2000-12-10 Thread Jake Burkholder
Ok, sometimes we find a bug in a particular release where what's needed is a function replaced with fixed code. I'm wondering if it's possible to: 1) look at the kernel symbol table for a particular function in a particular object file (static functions would be even better?) 2)

Re: thr_sleep() and thr_wakeup()

2000-12-01 Thread Jake Burkholder
Can we kill these syscalls? They are not used anywhere in the kernel and although they have wrapper functions in libc, no header contains prototypes for these wrappers. According to the CVS log they were originally brought in for POSIX threads and AIO, neither of which use this facility.

Re: thr_sleep() and thr_wakeup()

2000-12-01 Thread Jake Burkholder
On Friday, December 01, 2000, John Baldwin wrote: Can we kill these syscalls? They are not used anywhere in the kernel and although they have wrapper functions in libc, no header contains prototypes for these wrappers. According to the CVS log they were originally brought in for POSIX

Re: kernel SMP thread

2000-05-11 Thread Jake Burkholder
Jordan said that the kernel SMP thread is ready in CURRENT FreeBSD, but I could not find any document for the SMP kthread. By looking at the kern/kern_kthread.c code, it does not look like a SMP thread, and does not even have mutex functions in there. Does any one happen to know where is

Re: problem with ioctl handler in a module

2000-05-06 Thread Jake Burkholder
Hello! I have: int ziva_ioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct proc* pr) when this function catches a ioctl from userspace, called as: int foo = 199; ioctl(fd, 10, foo); the u_long cmd contains 10, which is correct (so the ioctl-handler is called

Re: Writing a multithreaded daemon process

2000-02-06 Thread Jake Burkholder
If the daemon can somehow reside entirely inside the kernel, like NFS daemon, we can save those crossings. But the daemon is a multi-threaded process and we have no kernel thread yet, so I do not know how to do better if possible. Maybe all user filesystems have to live with this

Re: System Call

1999-11-13 Thread Jake Burkholder
Dear Sir, How do I set up a system call of my own in the FreeBSD kernel? 1) Do I just change the syscalls.master and my new function and rebuild the entire kernel?. If so where do I put my implementation files? in the same directory as syscalls.master exists? I am new to writing custom

Re: mmap bug

1999-08-11 Thread Jake Burkholder
He's trying to ask if this is a problem with the code in question or 3.2R's mmap. That's better. It appears to be a classic resource related deadlock that is caused by the VFS code needing pages in order to page things out (and thus free up pages), but is unable to since no memory is

Re: mmap bug

1999-08-11 Thread Jake Burkholder
He's trying to ask if this is a problem with the code in question or 3.2R's mmap. That's better. It appears to be a classic resource related deadlock that is caused by the VFS code needing pages in order to page things out (and thus free up pages), but is unable to since no memory is

Re: matcd on an SB16

1999-07-15 Thread Jake Burkholder
Is the matcd driver known to work on FreeBSD 3.2 ? If not, does anyone have any estimate of the amount of effort that'd be required to fix it? It works for some definitions of work. Firstly, there are three different CDROM interfaces that can be hung off an SB16; one is the

Re: hardware

1999-07-09 Thread Jake Burkholder
Given your experience, Could you please inform me of which sound card and video display adapter works best with FreeBSD. There seems to be good support for the Nvidia RivaTNT chipset, and lots of cheap 16 meg cards based on them. If I were to get a new sound card soon, I'd probably get a

Re: Replacement for grep(1) (part 2)

1999-07-06 Thread Jake Burkholder
One way to make it easier for people to test drive your software under FreeBSD is to create a port for the software (FreeBSD-style port, not NetBSD-style port). very rough port available at http://gulf.uvic.ca/~jburkhol/grep.shar -- To Unsubscribe: send mail to majord...@freebsd.org with

Re: [Fwd: Good news from NVIDIA]

1999-06-03 Thread Jake Burkholder
Hi, I spent most of the day recompiling X and what not. All the patches applied cleanly, there are some rejects with MESA, but I think that has to do with tags and comments at the beginning of files. Everything compiled fine, and the module loads, now I just need to get my hands on quake2 :)

Re: Kernel config script

1999-05-30 Thread Jake Burkholder
On Sun, 30 May 1999, Yaroslav Halchinsky wrote: Don't you find editing config file MUCH more easy thing than answering series of dumb questins again and again? *I* do, yes. In fact, I hate any other way. But I've heard it as a about 10 times now from people currently using Linux. And

Re: Kernel config script

1999-05-30 Thread Jake Burkholder
Perhaps this is the wrong list to post this question, but has there been any work done on a script (similar to what Slackware Linux uses) that asks the user questions (Do you want to run SCO binaries, etc) and configures a kernel conf file for them? If not, I'll volunteer to write