qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5685] Disable debug code for production.
@ 2008-11-11 13:30 Aurelien Jarno
  2008-11-12 12:50 ` Paul Brook
  0 siblings, 1 reply; 3+ messages in thread
From: Aurelien Jarno @ 2008-11-11 13:30 UTC (permalink / raw)
  To: qemu-devel

Revision: 5685
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5685
Author:   aurel32
Date:     2008-11-11 13:30:24 +0000 (Tue, 11 Nov 2008)

Log Message:
-----------
Disable debug code for production.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

Modified Paths:
--------------
    trunk/exec-all.h

Modified: trunk/exec-all.h
===================================================================
--- trunk/exec-all.h	2008-11-11 11:50:51 UTC (rev 5684)
+++ trunk/exec-all.h	2008-11-11 13:30:24 UTC (rev 5685)
@@ -21,7 +21,7 @@
 #ifndef _EXEC_ALL_H_
 #define _EXEC_ALL_H_
 /* allow to see translation results - the slowdown should be negligible, so we leave it */
-#define DEBUG_DISAS
+//#define DEBUG_DISAS
 
 /* is_jmp field values */
 #define DISAS_NEXT    0 /* next instruction can be analyzed */

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [5685] Disable debug code for production.
  2008-11-11 13:30 [Qemu-devel] [5685] Disable debug code for production Aurelien Jarno
@ 2008-11-12 12:50 ` Paul Brook
  2008-11-12 15:22   ` Aurelien Jarno
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Brook @ 2008-11-12 12:50 UTC (permalink / raw)
  To: qemu-devel; +Cc: Aurelien Jarno

>  /* allow to see translation results - the slowdown should be negligible,
> so we leave it */
> -#define DEBUG_DISAS 
> +//#define DEBUG_DISAS

Why? As the comment says this has almost no runtime overhead, so there's no 
real downside to leaving it enabled. After your change the code is 
inconsistent with the comment.
If we really want to disble this for production builds then IMHO it can be 
done by whoever spins the release.

Paul

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [5685] Disable debug code for production.
  2008-11-12 12:50 ` Paul Brook
@ 2008-11-12 15:22   ` Aurelien Jarno
  0 siblings, 0 replies; 3+ messages in thread
From: Aurelien Jarno @ 2008-11-12 15:22 UTC (permalink / raw)
  To: qemu-devel

Paul Brook a écrit :
>>  /* allow to see translation results - the slowdown should be negligible,
>> so we leave it */
>> -#define DEBUG_DISAS 
>> +//#define DEBUG_DISAS
> 
> Why? As the comment says this has almost no runtime overhead, so there's no 
> real downside to leaving it enabled. After your change the code is 
> inconsistent with the comment.
> If we really want to disble this for production builds then IMHO it can be 
> done by whoever spins the release.
> 

This has been committed by mistake, and reverted later.

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-12 15:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-11 13:30 [Qemu-devel] [5685] Disable debug code for production Aurelien Jarno
2008-11-12 12:50 ` Paul Brook
2008-11-12 15:22   ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).