Date: Wed, 1 Nov 2006 20:40:25 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 108950 for review Message-ID: <200611012040.kA1KePTX033135@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=108950 Change 108950 by rdivacky@rdivacky_witten on 2006/11/01 20:39:42 Put some more debuging into syscalls. Its a realy pity to find after 40 minutes of wonder why it doesnt call getppid that you only dont log getppid calling ;( Affected files ... .. //depot/projects/linuxolator/src/sys/compat/linux/linux_misc.c#23 edit Differences ... ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_misc.c#23 (text+ko) ==== @@ -1385,6 +1385,11 @@ struct linux_emuldata *em; char osrel[LINUX_MAX_UTSNAME]; +#ifdef DEBUG + if (ldebug(getpid)) + printf(ARGS(getpid, "")); +#endif + linux_get_osrelease(td, osrel); if (strlen(osrel) >= 3 && osrel[2] == '6') { em = em_find(td->td_proc, EMUL_UNLOCKED); @@ -1422,6 +1427,11 @@ struct proc *p, *pp; char osrel[LINUX_MAX_UTSNAME]; +#ifdef DEBUG + if (ldebug(getppid)) + printf(ARGS(getppid, "")); +#endif + linux_get_osrelease(td, osrel); if (strlen(osrel) >= 3 && osrel[2] != '6') { PROC_LOCK(td->td_proc); @@ -1466,6 +1476,10 @@ int linux_getgid(struct thread *td, struct linux_getgid_args *args) { +#ifdef DEBUG + if (ldebug(getgid)) + printf(ARGS(getgid, "")); +#endif td->td_retval[0] = td->td_ucred->cr_rgid; return (0); @@ -1474,6 +1488,10 @@ int linux_getuid(struct thread *td, struct linux_getuid_args *args) { +#ifdef DEBUG + if (ldebug(getuid)) + printf(ARGS(getuid, "")); +#endif td->td_retval[0] = td->td_ucred->cr_ruid; return (0); @@ -1484,6 +1502,12 @@ linux_getsid(struct thread *td, struct linux_getsid_args *args) { struct getsid_args bsd; + +#ifdef DEBUG + if (ldebug(getsid)) + printf(ARGS(getsid, "")); +#endif + bsd.pid = args->pid; return getsid(td, &bsd); } @@ -1501,6 +1525,11 @@ struct getpriority_args bsd_args; int error; +#ifdef DEBUG + if (ldebug(getpriority)) + printf(ARGS(getpriority, "")); +#endif + bsd_args.which = args->which; bsd_args.who = args->who; error = getpriority(td, &bsd_args); @@ -1513,6 +1542,11 @@ { int name[2]; +#ifdef DEBUG + if (ldebug(sethostname)) + printf(ARGS(sethostname, "")); +#endif + name[0] = CTL_KERN; name[1] = KERN_HOSTNAME; return (userland_sysctl(td, name, 2, 0, 0, 0, args->hostname,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611012040.kA1KePTX033135>