From owner-p4-projects@FreeBSD.ORG Mon Jul 31 15:53:18 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 5A00816A4DD; Mon, 31 Jul 2006 15:53:18 +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 35C2216A4E5 for ; Mon, 31 Jul 2006 15:53:18 +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 DCBD143D46 for ; Mon, 31 Jul 2006 15:53:17 +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 k6VFrHK4036174 for ; Mon, 31 Jul 2006 15:53:17 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6VFrHTQ036171 for perforce@freebsd.org; Mon, 31 Jul 2006 15:53:17 GMT (envelope-from rdivacky@FreeBSD.org) Date: Mon, 31 Jul 2006 15:53:17 GMT Message-Id: <200607311553.k6VFrHTQ036171@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 102859 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: Mon, 31 Jul 2006 15:53:18 -0000 http://perforce.freebsd.org/chv.cgi?CH=102859 Change 102859 by rdivacky@rdivacky_witten on 2006/07/31 15:52:43 Add standard debuging printf at the begining of the syscall. Affected files ... .. //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_futex.c#12 edit .. //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_machdep.c#28 edit Differences ... ==== //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_futex.c#12 (text+ko) ==== @@ -101,7 +101,7 @@ #ifdef DEBUG if (ldebug(sys_futex)) - printf("FUTEX: %x: %i, %i\n", (unsigned int)args->uaddr, args->op, args->val); + printf(ARGS(futex,"%p, %i, %i"), args->uaddr, args->op, args->val); #endif switch (args->op) { ==== //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_machdep.c#28 (text+ko) ==== @@ -1083,6 +1083,11 @@ struct l_desc_struct desc; struct segment_descriptor sd; +#ifdef DEBUG + if (ldebug(get_thread_area)) + printf(ARGS(get_thread_area, "%p"), args->desc); +#endif + error = copyin(args->desc, &info, sizeof(struct l_user_desc)); if (error) return (error); @@ -1120,6 +1125,10 @@ int linux_gettid(struct thread *td, struct linux_gettid_args *args) { +#ifdef DEBUG + if (ldebug(gettid)) + printf(ARGS(gettid, "")); +#endif td->td_retval[0] = td->td_proc->p_pid; return (0); @@ -1128,6 +1137,10 @@ int linux_tkill(struct thread *td, struct linux_tkill_args *args) { +#ifdef DEBUG + if (ldebug(tkill)) + printf(ARGS(tkill, "%i, %i"), args->tid, args->sig); +#endif return (linux_kill(td, (struct linux_kill_args *) args)); } @@ -1333,6 +1346,11 @@ { struct linux_emuldata *em; +#ifdef DEBUG + if (ldebug(exit_group)) + printf(ARGS(set_tid_address, "%p"), args->tidptr); +#endif + /* find the emuldata */ em = em_find(td->td_proc->p_pid, EMUL_UNLOCKED); @@ -1359,6 +1377,11 @@ struct kill_args ka; int i = 0; +#ifdef DEBUG + if (ldebug(exit_group)) + printf(ARGS(exit_group, "%i"), args->error_code); +#endif + td_em = em_find(td->td_proc->p_pid, EMUL_UNLOCKED); if (td_em == NULL) {