From owner-p4-projects@FreeBSD.ORG Wed Nov 1 20:40:49 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A6FC116A40F; Wed, 1 Nov 2006 20:40:49 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 824C616A403 for ; Wed, 1 Nov 2006 20:40:49 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4C5043D76 for ; Wed, 1 Nov 2006 20:40:25 +0000 (GMT) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kA1KeP6P033138 for ; Wed, 1 Nov 2006 20:40:25 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kA1KePTX033135 for perforce@freebsd.org; Wed, 1 Nov 2006 20:40:25 GMT (envelope-from rdivacky@FreeBSD.org) Date: Wed, 1 Nov 2006 20:40:25 GMT Message-Id: <200611012040.kA1KePTX033135@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rdivacky@FreeBSD.org using -f From: Roman Divacky To: Perforce Change Reviews Cc: Subject: PERFORCE change 108950 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Nov 2006 20:40:49 -0000 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,