Received: from eggs.gnu.org ([208.118.235.92]:36467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCq8R-00034r-BB for qemu-devel@nongnu.org; Wed, 28 Mar 2012 06:29:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCq8J-0005Th-JT for qemu-devel@nongnu.org; Wed, 28 Mar 2012 06:29:46 -0400 Received: from roura.ac.upc.edu ([147.83.33.10]:43683 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCq8J-0005TU-8c for qemu-devel@nongnu.org; Wed, 28 Mar 2012 06:29:39 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20120326173750.20814.75373.stgit@ginnungagap.bsc.es> <1332866260-28387-1-git-send-email-alevy@redhat.com> <8762dp7wj1.fsf@ginnungagap.bsc.es> <20120328093521.GT32389@garlic> Date: Wed, 28 Mar 2012 12:29:36 +0200 In-Reply-To: <20120328093521.GT32389@garlic> (Alon Levy's message of "Wed, 28 Mar 2012 11:35:21 +0200") Message-ID: <87ty19uigf.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] tracetool.py: always pass --binary, --target-arch, --target-type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alon Levy Cc: stefanha@gmail.com, qemu-devel@nongnu.org Alon Levy writes: [...] >> I don't see the reason for such a change, as in the current bash code it's not >> used except when generating files in the 'stap' format. > Have you tried building with trace backend dtrace? without those changed > it breaks because tracetool.py requires both target_arch and target_type > for dtrace backend. Either change the source or change the invocation. I > thought the later is better, hence this patch. If you're referring to your changes in tracetool.py related to this (when checking binary/prefix/etc), it should be fixed in v3 without resorting to your changes: - if format == "stap": + if arg_format == "stap": Instead of your proposal: - if format == "stap": + if arg_backend == "dtrace": I didn't try to compile the resulting dtrace files (they should be the same), but tracetool does not fail with the aforementioned changes. Thanks, Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth