{"id":813294,"url":"http://patchwork.ozlabs.org/api/1.2/patches/813294/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/150529690677.10902.10312448222212938107.stgit@frigg.lan/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.2/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":"<150529690677.10902.10312448222212938107.stgit@frigg.lan>","list_archive_url":null,"date":"2017-09-13T10:01:46","name":"[v6,02/22] 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/1.2/people/9099/?format=json","name":"Lluís Vilanova","email":"vilanova@ac.upc.edu"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/150529690677.10902.10312448222212938107.stgit@frigg.lan/mbox/","series":[{"id":2857,"url":"http://patchwork.ozlabs.org/api/1.2/series/2857/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=2857","date":"2017-09-13T09:53:43","name":"instrument: Add basic event instrumentation","version":6,"mbox":"http://patchwork.ozlabs.org/series/2857/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/813294/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/813294/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 3xscfP3d6Vz9s76\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 20:02:37 +1000 (AEST)","from localhost ([::1]:41307 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 1ds4V9-0001wQ-JS\n\tfor incoming@patchwork.ozlabs.org; Wed, 13 Sep 2017 06:02:35 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:36136)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <vilanova@ac.upc.edu>) id 1ds4Ub-0001tn-NB\n\tfor qemu-devel@nongnu.org; Wed, 13 Sep 2017 06:02:05 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <vilanova@ac.upc.edu>) id 1ds4UX-00018d-Qs\n\tfor qemu-devel@nongnu.org; Wed, 13 Sep 2017 06:02:01 -0400","from roura.ac.upc.es ([147.83.33.10]:35904)\n\tby eggs.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <vilanova@ac.upc.edu>) id 1ds4UX-00016G-GO\n\tfor qemu-devel@nongnu.org; Wed, 13 Sep 2017 06:01:57 -0400","from correu-2.ac.upc.es (correu-2.ac.upc.es [147.83.30.92])\n\tby roura.ac.upc.es (8.13.8/8.13.8) with ESMTP id v8DA1rv4007862;\n\tWed, 13 Sep 2017 12:01:53 +0200","from localhost (unknown [132.68.137.204])\n\tby correu-2.ac.upc.es (Postfix) with ESMTPSA id 2E141654;\n\tWed, 13 Sep 2017 12:01:48 +0200 (CEST)"],"From":"=?utf-8?b?TGx1w61z?= Vilanova <vilanova@ac.upc.edu>","To":"qemu-devel@nongnu.org","Date":"Wed, 13 Sep 2017 13:01:46 +0300","Message-Id":"<150529690677.10902.10312448222212938107.stgit@frigg.lan>","X-Mailer":"git-send-email 2.14.1","In-Reply-To":"<150529642278.10902.18234057937634437857.stgit@frigg.lan>","References":"<150529642278.10902.18234057937634437857.stgit@frigg.lan>","User-Agent":"StGit/0.18","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\tv8DA1rv4007862","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 v6 02/22] 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>, Markus Armbruster <armbru@redhat.com>,\n\tStefan 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 fd7e3a5e81..a21d1bceb9 100755\n--- a/configure\n+++ b/configure\n@@ -356,6 +356,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@@ -886,6 +887,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@@ -1436,6 +1439,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@@ -5366,6 +5370,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@@ -6019,6 +6024,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":["v6","02/22"]}