From patchwork Wed Sep 6 17:30:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Llu=C3=ADs_Vilanova?= X-Patchwork-Id: 9941125 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EE6BF60350 for ; Wed, 6 Sep 2017 17:31:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D879828C15 for ; Wed, 6 Sep 2017 17:31:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D71E828C5B; Wed, 6 Sep 2017 17:31:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 23CE028C15 for ; Wed, 6 Sep 2017 17:31:39 +0000 (UTC) Received: from localhost ([::1]:37272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpeAs-0001t1-SJ for patchwork-qemu-devel@patchwork.kernel.org; Wed, 06 Sep 2017 13:31:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpeAG-0001si-V9 for qemu-devel@nongnu.org; Wed, 06 Sep 2017 13:31:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpeAD-0004ON-0e for qemu-devel@nongnu.org; Wed, 06 Sep 2017 13:31:00 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:36872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpeAC-0004Nr-M9 for qemu-devel@nongnu.org; Wed, 06 Sep 2017 13:30:56 -0400 Received: from correu-1.ac.upc.es (correu-1.ac.upc.es [147.83.30.91]) by roura.ac.upc.es (8.13.8/8.13.8) with ESMTP id v86HUrcC003860; Wed, 6 Sep 2017 19:30:53 +0200 Received: from localhost (unknown [31.210.187.58]) by correu-1.ac.upc.es (Postfix) with ESMTPSA id C2AF8355; Wed, 6 Sep 2017 19:30:47 +0200 (CEST) From: =?utf-8?b?TGx1w61z?= Vilanova To: qemu-devel@nongnu.org Date: Wed, 6 Sep 2017 20:30:46 +0300 Message-Id: <150471904580.24907.15196045749813468308.stgit@frigg.lan> X-Mailer: git-send-email 2.14.1 In-Reply-To: <150471856141.24907.274176769201097378.stgit@frigg.lan> References: <150471856141.24907.274176769201097378.stgit@frigg.lan> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-MIME-Autoconverted: from 8bit to quoted-printable by roura.ac.upc.es id v86HUrcC003860 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-Received-From: 147.83.33.10 Subject: [Qemu-devel] [PATCH v4 02/20] instrument: Add configure-time flag X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Emilio G. Cota" , Stefan Hajnoczi Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: LluĂ­s Vilanova --- configure | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure b/configure index dd73cce62f..80dcc91c98 100755 --- a/configure +++ b/configure @@ -352,6 +352,7 @@ pie="" qom_cast_debug="yes" trace_backends="log" trace_file="trace" +instrument="no" spice="" rbd="" smartcard="" @@ -891,6 +892,8 @@ for opt do ;; --with-trace-file=*) trace_file="$optarg" ;; + --enable-instrument) instrument="yes" + ;; --enable-gprof) gprof="yes" ;; --enable-gcov) gcov="yes" @@ -1441,6 +1444,7 @@ Advanced options (experts only): Available backends: $trace_backend_list --with-trace-file=NAME Full PATH,NAME of file to store traces Default:trace- + --enable-instrument enable event instrumentation --disable-slirp disable SLIRP userspace network connectivity --enable-tcg-interpreter enable TCG with bytecode interpreter (TCI) --oss-lib path to OSS library @@ -5371,6 +5375,7 @@ echo "Trace backends $trace_backends" if have_backend "simple"; then echo "Trace output file $trace_file-" fi +echo "instrumentation $instrument" echo "spice support $spice $(echo_version $spice $spice_protocol_version/$spice_server_version)" echo "rbd support $rbd" echo "xfsctl support $xfs" @@ -6028,6 +6033,10 @@ if have_backend "syslog"; then fi echo "CONFIG_TRACE_FILE=$trace_file" >> $config_host_mak +if test "$instrument" = "yes"; then + echo "CONFIG_INSTRUMENT=y" >> $config_host_mak +fi + if test "$rdma" = "yes" ; then echo "CONFIG_RDMA=y" >> $config_host_mak fi