Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2006 15:53:17 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 102859 for review
Message-ID:  <200607311553.k6VFrHTQ036171@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607311553.k6VFrHTQ036171>