On Tue, Jul 12, 2011 at 8:52 AM, Otto Moerbeek <o...@drijf.net> wrote: ... > diff -u -p -r1.117 syscalls.master > --- sys/kern/syscalls.master 9 Jul 2011 05:46:26 -0000 1.117 > +++ sys/kern/syscalls.master 12 Jul 2011 14:59:03 -0000 > @@ -572,3 +572,9 @@ > int flag); } > 326 STD { int sys_utimensat(int fd, const char *path, \ > const struct timespec *times, int flag); } > +#ifdef KTRACE > +327 STD { int sys_utrace(const char *label, void *addr, \ > + size_t len); } > +#else > +327 UNIMPL utrace > +#endif
Hmm, if a process calls utrace() with a kernel that doesn't have KTRACE defined, should it really kill the process (SIGSYS) or just do nothing? (Just pondering a day when ld.so or libc calls utrace(). Don't want to have to add another stub to the ramdisk build bits...) Philip Guenther