From nobody Tue Feb 10 19:17:30 2026 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1575451694; cv=none; d=zohomail.com; s=zohoarc; b=JbI9AobX2fw0q6ztAw/u1mTeOx+6bOXdcwD7p5CedMITaCGrdw97uHYb07r9rehGdm8JKVpqRZnU9oIycqYLur/oIx5y4nsc0lAiDqTiGPAEdPJNv4YQZB+HUwd9IL8CkxqeI39RS/vhBL8Fz8fmw/TH4qYGC+PAukyjvvh9Ld0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575451694; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=GUWNpQpkIp7XrA5PEaiWlvQwIFcPfYttvVdDbLNKBH0=; b=HA1nc3x3Al6ZoHPFmxxfY3bMEsbHTTdN9EPfc3krfM38K3fU4okqHLfswN+Ucilf2FRAB1rIkwV2Z4bsBb34pcyLzUf8FJxqOQ9EHuYVd7O1lxArzY2GxIGFJHXLnVtSysecp1XTBGjMkLHdu+c/1Ka8eqmA85rHZosn4smEhCo= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1575451694742933.4262496167199; Wed, 4 Dec 2019 01:28:14 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1icQwQ-0001qn-VA; Wed, 04 Dec 2019 09:27:26 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1icQwQ-0001qd-4f for xen-devel@lists.xenproject.org; Wed, 04 Dec 2019 09:27:26 +0000 Received: from know-smtprelay-omc-1.server.virginmedia.net (unknown [80.0.253.65]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 47705d2b-1678-11ea-81fe-12813bfff9fa; Wed, 04 Dec 2019 09:27:24 +0000 (UTC) Received: from mail0.xen.dingwall.me.uk ([82.47.84.47]) by cmsmtp with ESMTPA id cQwNiY5hqxs8ecQwNioh3X; Wed, 04 Dec 2019 09:27:23 +0000 Received: from localhost (localhost [IPv6:::1]) by mail0.xen.dingwall.me.uk (Postfix) with ESMTP id E9B07159423; Wed, 4 Dec 2019 09:27:41 +0000 (UTC) Received: from mail0.xen.dingwall.me.uk ([IPv6:::1]) by localhost (mail0.xen.dingwall.me.uk [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id K8vWBOZ4fSQp; Wed, 4 Dec 2019 09:27:41 +0000 (UTC) Received: from behemoth.dingwall.me.uk (behemoth.dingwall.me.uk [IPv6:2001:470:695c:302::c0a8:105]) by dingwall.me.uk (Postfix) with ESMTP id 8ADB9159415; Wed, 4 Dec 2019 09:27:41 +0000 (UTC) Received: by behemoth.dingwall.me.uk (Postfix, from userid 1000) id 8EC0B140E19; Wed, 4 Dec 2019 09:27:41 +0000 (UTC) X-Inumbo-ID: 47705d2b-1678-11ea-81fe-12813bfff9fa X-Originating-IP: [82.47.84.47] X-Authenticated-User: james.dingwall@blueyonder.co.uk X-Spam: 0 X-Authority: v=2.3 cv=L98zvdb8 c=1 sm=1 tr=0 a=0bfgdX8EJi0Cr9X0x0jFDA==:117 a=0bfgdX8EJi0Cr9X0x0jFDA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=xqWC_Br6kY4A:10 a=pxVhFHJ0LMsA:10 a=5IRWAbXhAAAA:8 a=Sk5AkFDSzmZvWLMj57EA:9 a=G6QAcT8NE79V4_GB:21 a=pniMzHNUB-FszkVU:21 a=xo7gz2vLY8DhO4BdlxfM:22 X-Virus-Scanned: Debian amavisd-new at dingwall.me.uk From: james-xen@dingwall.me.uk To: xen-devel@lists.xenproject.org Date: Wed, 4 Dec 2019 09:27:37 +0000 Message-Id: <20191204092739.18177-3-james-xen@dingwall.me.uk> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191204092739.18177-1-james-xen@dingwall.me.uk> References: <20191204092739.18177-1-james-xen@dingwall.me.uk> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfKZJoxklV5Q0Crbpl0ZLACJxmaLTqKK6ekPEx8uMnDO5p1kjjD1esGp12wJKNL49IdkWu7Gf7CztIe8p8YMUwMzuIKFOUprkyINvei5hZ1YXg7gtsnRl 5FtC7oEvAQNu+j0pAzSVopzAkwDJG+E603ho9qrM1KK7A9g13YbqQg1D7xjI5wm2evASO8HKBoYuUgcFh65K0Omec8bRgQzAsYtHn8CwyxL+ByavkDOFYH+c cKHD2q24E0ilvqeb+l33P6e5wJVQ+iaquWicJ7YTp5E= Subject: [Xen-devel] [PATCH 2/4] xenstored logging: add control to dynamically toggle tracesyslog flag X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: wei.liu2@citrix.com, ian.jackson@eu.citrix.com, James Dingwall Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: James Dingwall Add a new xenstore control command which allows the tracesyslog boolean to = be changed at run time. --- tools/xenstore/xenstored_control.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tools/xenstore/xenstored_control.c b/tools/xenstore/xenstored_= control.c index e4b8aa95ab..120dc3aa98 100644 --- a/tools/xenstore/xenstored_control.c +++ b/tools/xenstore/xenstored_control.c @@ -76,6 +76,23 @@ static int do_control_logfile(void *ctx, struct connecti= on *conn, return 0; } =20 +static int do_control_logsyslog(void *ctx, struct connection *conn, + char **vec, int num) +{ + if (num !=3D 1) + return EINVAL; + + if (!strcmp(vec[0], "on")) + tracesyslog =3D true; + else if (!strcmp(vec[0], "off")) + tracesyslog =3D false; + else + return EINVAL; + + send_ack(conn, XS_CONTROL); + return 0; +} + static int do_control_memreport(void *ctx, struct connection *conn, char **vec, int num) { @@ -133,6 +150,7 @@ static struct cmd_s cmds[] =3D { { "check", do_control_check, "" }, { "log", do_control_log, "on|off" }, { "logfile", do_control_logfile, "" }, + { "syslog", do_control_logsyslog, "on|off" }, { "memreport", do_control_memreport, "[]" }, { "print", do_control_print, "" }, { "help", do_control_help, "" }, --=20 2.24.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel