{"id":810736,"url":"http://patchwork.ozlabs.org/api/patches/810736/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/150471904580.24907.15196045749813468308.stgit@frigg.lan/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<150471904580.24907.15196045749813468308.stgit@frigg.lan>","list_archive_url":null,"date":"2017-09-06T17:30:46","name":"[v4,02/20] instrument: Add configure-time flag","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"bca1bccbf8e502ead0b342aaca602e3f9b12cbad","submitter":{"id":9099,"url":"http://patchwork.ozlabs.org/api/people/9099/?format=json","name":"Lluís Vilanova","email":"vilanova@ac.upc.edu"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/150471904580.24907.15196045749813468308.stgit@frigg.lan/mbox/","series":[{"id":1859,"url":"http://patchwork.ozlabs.org/api/series/1859/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=1859","date":"2017-09-06T17:22:41","name":"instrument: Add basic event instrumentation","version":4,"mbox":"http://patchwork.ozlabs.org/series/1859/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/810736/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/810736/checks/","tags":{},"related":[],"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xnVxS1Zbdz9t2d\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  7 Sep 2017 03:31:23 +1000 (AEST)","from localhost ([::1]:37272 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dpeAb-0001t1-T3\n\tfor incoming@patchwork.ozlabs.org; Wed, 06 Sep 2017 13:31:21 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:37428)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <vilanova@ac.upc.edu>) id 1dpeAG-0001si-V9\n\tfor qemu-devel@nongnu.org; Wed, 06 Sep 2017 13:31:01 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <vilanova@ac.upc.edu>) id 1dpeAD-0004ON-0e\n\tfor qemu-devel@nongnu.org; Wed, 06 Sep 2017 13:31:00 -0400","from roura.ac.upc.es ([147.83.33.10]:36872)\n\tby eggs.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <vilanova@ac.upc.edu>) id 1dpeAC-0004Nr-M9\n\tfor qemu-devel@nongnu.org; Wed, 06 Sep 2017 13:30:56 -0400","from correu-1.ac.upc.es (correu-1.ac.upc.es [147.83.30.91])\n\tby roura.ac.upc.es (8.13.8/8.13.8) with ESMTP id v86HUrcC003860;\n\tWed, 6 Sep 2017 19:30:53 +0200","from localhost (unknown [31.210.187.58])\n\tby correu-1.ac.upc.es (Postfix) with ESMTPSA id C2AF8355;\n\tWed,  6 Sep 2017 19:30:47 +0200 (CEST)"],"From":"=?utf-8?b?TGx1w61z?= Vilanova <vilanova@ac.upc.edu>","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","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"quoted-printable","X-MIME-Autoconverted":"from 8bit to quoted-printable by roura.ac.upc.es id\n\tv86HUrcC003860","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":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"\"Emilio G. Cota\" <cota@braap.org>, Stefan Hajnoczi <stefanha@redhat.com>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"},"content":"Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>\n---\n configure |    9 +++++++++\n 1 file changed, 9 insertions(+)","diff":"diff --git a/configure b/configure\nindex dd73cce62f..80dcc91c98 100755\n--- a/configure\n+++ b/configure\n@@ -352,6 +352,7 @@ pie=\"\"\n qom_cast_debug=\"yes\"\n trace_backends=\"log\"\n trace_file=\"trace\"\n+instrument=\"no\"\n spice=\"\"\n rbd=\"\"\n smartcard=\"\"\n@@ -891,6 +892,8 @@ for opt do\n   ;;\n   --with-trace-file=*) trace_file=\"$optarg\"\n   ;;\n+  --enable-instrument) instrument=\"yes\"\n+  ;;\n   --enable-gprof) gprof=\"yes\"\n   ;;\n   --enable-gcov) gcov=\"yes\"\n@@ -1441,6 +1444,7 @@ Advanced options (experts only):\n                            Available backends: $trace_backend_list\n   --with-trace-file=NAME   Full PATH,NAME of file to store traces\n                            Default:trace-<pid>\n+  --enable-instrument      enable event instrumentation\n   --disable-slirp          disable SLIRP userspace network connectivity\n   --enable-tcg-interpreter enable TCG with bytecode interpreter (TCI)\n   --oss-lib                path to OSS library\n@@ -5371,6 +5375,7 @@ echo \"Trace backends    $trace_backends\"\n if have_backend \"simple\"; then\n echo \"Trace output file $trace_file-<pid>\"\n fi\n+echo \"instrumentation   $instrument\"\n echo \"spice support     $spice $(echo_version $spice $spice_protocol_version/$spice_server_version)\"\n echo \"rbd support       $rbd\"\n echo \"xfsctl support    $xfs\"\n@@ -6028,6 +6033,10 @@ if have_backend \"syslog\"; then\n fi\n echo \"CONFIG_TRACE_FILE=$trace_file\" >> $config_host_mak\n \n+if test \"$instrument\" = \"yes\"; then\n+  echo \"CONFIG_INSTRUMENT=y\" >> $config_host_mak\n+fi\n+\n if test \"$rdma\" = \"yes\" ; then\n   echo \"CONFIG_RDMA=y\" >> $config_host_mak\n fi\n","prefixes":["v4","02/20"]}