Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/810740/?format=api
{ "id": 810740, "url": "http://patchwork.ozlabs.org/api/patches/810740/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/150472001548.24907.17836290049474089908.stgit@frigg.lan/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "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": "<150472001548.24907.17836290049474089908.stgit@frigg.lan>", "list_archive_url": null, "date": "2017-09-06T17:46:55", "name": "[v4,06/20] instrument: [softmmu] Add command line library loader", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "5274e78f9b7a4cedc81a744a25bd41b518609c5b", "submitter": { "id": 9099, "url": "http://patchwork.ozlabs.org/api/people/9099/?format=api", "name": "Lluís Vilanova", "email": "vilanova@ac.upc.edu" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/150472001548.24907.17836290049474089908.stgit@frigg.lan/mbox/", "series": [ { "id": 1859, "url": "http://patchwork.ozlabs.org/api/series/1859/?format=api", "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/810740/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/810740/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 3xnWJ54NKGz9t2d\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 7 Sep 2017 03:47:32 +1000 (AEST)", "from localhost ([::1]:37318 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 1dpeQE-0007lB-By\n\tfor incoming@patchwork.ozlabs.org; Wed, 06 Sep 2017 13:47:30 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:41046)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <vilanova@ac.upc.edu>) id 1dpePu-0007kw-8B\n\tfor qemu-devel@nongnu.org; Wed, 06 Sep 2017 13:47:11 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <vilanova@ac.upc.edu>) id 1dpePr-0003hv-6o\n\tfor qemu-devel@nongnu.org; Wed, 06 Sep 2017 13:47:10 -0400", "from roura.ac.upc.es ([147.83.33.10]:58780)\n\tby eggs.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <vilanova@ac.upc.edu>) id 1dpePq-0003hh-RU\n\tfor qemu-devel@nongnu.org; Wed, 06 Sep 2017 13:47:07 -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 v86Hl2td004294;\n\tWed, 6 Sep 2017 19:47:02 +0200", "from localhost (unknown [31.210.187.58])\n\tby correu-1.ac.upc.es (Postfix) with ESMTPSA id D00DD7FD;\n\tWed, 6 Sep 2017 19:46:56 +0200 (CEST)" ], "From": "=?utf-8?b?TGx1w61z?= Vilanova <vilanova@ac.upc.edu>", "To": "qemu-devel@nongnu.org", "Date": "Wed, 6 Sep 2017 20:46:55 +0300", "Message-Id": "<150472001548.24907.17836290049474089908.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\tv86Hl2td004294", "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 06/20] instrument: [softmmu] Add command\n\tline library loader", "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": "Paolo Bonzini <pbonzini@redhat.com>, \"Emilio G. Cota\" <cota@braap.org>, \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 qemu-options.hx | 19 +++++++++++++++++++\n vl.c | 15 +++++++++++++++\n 2 files changed, 34 insertions(+)", "diff": "diff --git a/qemu-options.hx b/qemu-options.hx\nindex 9f6e2adfff..6947388aab 100644\n--- a/qemu-options.hx\n+++ b/qemu-options.hx\n@@ -4077,6 +4077,25 @@ HXCOMM HX does not support conditional compilation of text.\n @findex -trace\n @include qemu-option-trace.texi\n ETEXI\n+#if defined(CONFIG_INSTRUMENT)\n+DEF(\"instr\", HAS_ARG, QEMU_OPTION_instr,\n+ \"-instr [file=]<file>[,arg=<string>]\\n\"\n+ \" load an instrumentation library\\n\",\n+ QEMU_ARCH_ALL)\n+#endif\n+STEXI\n+@item -instr file=@var{file}[,arg=@var{string}]\n+@findex -instr\n+\n+Load a dynamic trace instrumentation library.\n+\n+@table @option\n+@item file=@var{file}\n+Load the given dynamic trace instrumentation library.\n+@item arg=@var{string}\n+String argument passed as to the library's @code{qi_init} routine (can be given multiple times).\n+@end table\n+ETEXI\n \n HXCOMM Internal use\n DEF(\"qtest\", HAS_ARG, QEMU_OPTION_qtest, \"\", QEMU_ARCH_ALL)\ndiff --git a/vl.c b/vl.c\nindex 8e247cc2a2..10dfea3ec7 100644\n--- a/vl.c\n+++ b/vl.c\n@@ -118,6 +118,7 @@ int main(int argc, char **argv)\n \n #include \"trace-root.h\"\n #include \"trace/control.h\"\n+#include \"instrument/cmdline.h\"\n #include \"qemu/queue.h\"\n #include \"sysemu/arch_init.h\"\n \n@@ -3035,6 +3036,9 @@ int main(int argc, char **argv, char **envp)\n } BlockdevOptions_queue;\n QSIMPLEQ_HEAD(, BlockdevOptions_queue) bdo_queue\n = QSIMPLEQ_HEAD_INITIALIZER(bdo_queue);\n+ char *instrument_path = NULL;\n+ int instrument_argc = 0;\n+ const char **instrument_argv = NULL;\n \n module_call_init(MODULE_INIT_TRACE);\n \n@@ -3062,6 +3066,9 @@ int main(int argc, char **argv, char **envp)\n qemu_add_opts(&qemu_global_opts);\n qemu_add_opts(&qemu_mon_opts);\n qemu_add_opts(&qemu_trace_opts);\n+#if defined(CONFIG_INSTRUMENT)\n+ qemu_add_opts(&qemu_instr_opts);\n+#endif\n qemu_add_opts(&qemu_option_rom_opts);\n qemu_add_opts(&qemu_machine_opts);\n qemu_add_opts(&qemu_accel_opts);\n@@ -4003,6 +4010,12 @@ int main(int argc, char **argv, char **envp)\n g_free(trace_file);\n trace_file = trace_opt_parse(optarg);\n break;\n+#if defined(CONFIG_INSTRUMENT)\n+ case QEMU_OPTION_instr:\n+ instr_opt_parse(optarg, &instrument_path,\n+ &instrument_argc, &instrument_argv);\n+ break;\n+#endif\n case QEMU_OPTION_readconfig:\n {\n int ret = qemu_read_config_file(optarg);\n@@ -4190,6 +4203,8 @@ int main(int argc, char **argv, char **envp)\n }\n trace_init_file(trace_file);\n \n+ instr_init(instrument_path, instrument_argc, instrument_argv);\n+\n /* Open the logfile at this point and set the log mask if necessary.\n */\n if (log_file) {\n", "prefixes": [ "v4", "06/20" ] }