On Wed, 2006-05-31 at 17:25 +0200, Fernando Apesteguía wrote: > Hi, > > I'm writing a module to profile some syscalls parameters. I replace > the original functions by my own ones, doing (for brk syscall): > > old_brk = (void *) sct[__NR_brk]; > sct[__NR_brk] = (unsigned long *) my_brk; this code isn't going to work ;) for one it's full of races already there is a reason the system call table isn't exported to modules... -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/