From patchwork Fri Oct 13 16:24:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 115785 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp919719qgn; Fri, 13 Oct 2017 09:27:17 -0700 (PDT) X-Received: by 10.55.24.93 with SMTP id j90mr2813034qkh.301.1507912037202; Fri, 13 Oct 2017 09:27:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507912037; cv=none; d=google.com; s=arc-20160816; b=Jms0bz61W+WsE/9PVlS7uyzOEd3+X8Ih6NN6kmNhmhVpINywf6kbsTXLs5n6OBrEUB Uo2VhK0FJz/k3a77xAa4241dHrYV5MzUHZ5RsF15WkPLoAUidiKVWGvGAX1Uy2BE/lUU PmbiOzjhAJVrpp0/3QdxEJdd+LG+df5R3y3fMaU62S8DKfR4jovUKsqfFuU8ddwzQoF+ if4Ai8Myj/47104V7bO8BfQvxy+ZFu5pLGnrbqx5VpyMnmcebLc7iGmrFCHk90kvHHUN PrCI1n5kS/SfyjgQetG0Djozt6baXtP5K0Ir+I2Q1KvplfkUyrRdOo6MKa02IE7fwU1Q mPiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=xwDpknXN7c5ADjZIVrVzNKoaWgejMHhp4p1gzGNWzzM=; b=KVwTYzuKyANcl+6e1xzxSn2nkLaOtl67GYY8oCvPrWjupBW+lAxM2d0IFm/E5zb267 K6Oy5fg/Qa9TQc3ztp7AXYErHiNl6xzRI84DtgWKpnZMehgmpgXhGQT8Fzn10qYEsgCD OecgoIyzCQ3U8BlCkx3BFxkn1u0M2SGZTPr/5dOeLA+JqAIV/YSXytb3YfZNayBUjK35 1k7gVE5r8mxPkQZBWzs+/cl+4gBm+pfS8oM3ja7YK20hCGPPAKcK6YZx+2g2hY7Txdww 91ZZeA21yXsQ6ufeLAwbLwU/T2subNh8v2jKUlUxEfZnjPeWh8FVYdXa4+yPAGan+itE UM1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QtldfDJ+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id f36si1092435qtc.472.2017.10.13.09.27.16 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 13 Oct 2017 09:27:17 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QtldfDJ+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:51032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e32nr-00045T-38 for patch@linaro.org; Fri, 13 Oct 2017 12:27:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e32lS-0002PY-Kr for qemu-devel@nongnu.org; Fri, 13 Oct 2017 12:24:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e32lO-0006Sq-8D for qemu-devel@nongnu.org; Fri, 13 Oct 2017 12:24:46 -0400 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:51101) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e32lO-0006S8-2W for qemu-devel@nongnu.org; Fri, 13 Oct 2017 12:24:42 -0400 Received: by mail-wr0-x229.google.com with SMTP id q42so1429456wrb.7 for ; Fri, 13 Oct 2017 09:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xwDpknXN7c5ADjZIVrVzNKoaWgejMHhp4p1gzGNWzzM=; b=QtldfDJ+MymlcAkU8Z8NnxBOKtFgCNjTOX3Vdm2VwA5FVIyCt20lUs11aJ2lgcdK75 ZUNUfIvb5V2ncLcbO7Buk8hGTFuHFYWvuQMLxjOQoKnugeW8HL7Z+NqwK2qptuODatKq /q2PR2+45ZqDFcJ3TY9HzBoCWvrJHZGwsSOQg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xwDpknXN7c5ADjZIVrVzNKoaWgejMHhp4p1gzGNWzzM=; b=dkV3WrHC/rkfAXJWhYARhB85NSH8kCRJPTO364G05ciRqX03wWogpZC+XNfi7H2CCy SLtyETAcFC4gjAtVSphR/ncy235vlL/9b6Y/qG86wXHTFnwaQguNf8L4osDgbFmOYAQ4 A/DYivW5OMRdIq2CeQfHXloycjOBhmebCY7m3pwWSSYHnexgIq+ven6j33Gl62uQv+5R WsHWbGyqrjzjMlWqsqCh+sH7Rg1fxt9s2bn6gh6ETR48uPZVg+AFBIdoJ1TdxhV7yXlS 72gcBicfvfH4oEcvuKVpAQj3LwhlPBLY5p1cfjE/XPgO0Lx6xYcLVh6pLo27RRre7Ebs uP/g== X-Gm-Message-State: AMCzsaXD2uXx+QlCBK8meuM92ehb9ry8nugIrHN84XJEmpcCQ8UrC0nI Lm/V8f+1chEFZ/QwJkoaSxOn3g0nTVw= X-Google-Smtp-Source: AOwi7QA5ZYB4x4+vNhJZGTT21I35WVaMMdV1m9X7BTdhsFW56uBCCsXOgRdQEw1Q/UB2/8erKtPUrQ== X-Received: by 10.223.136.170 with SMTP id f39mr1730670wrf.162.1507911880946; Fri, 13 Oct 2017 09:24:40 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t143sm930996wmt.45.2017.10.13.09.24.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Oct 2017 09:24:38 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 7A2063E06B0; Fri, 13 Oct 2017 17:24:38 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: richard.henderson@linaro.org Date: Fri, 13 Oct 2017 17:24:09 +0100 Message-Id: <20171013162438.32458-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171013162438.32458-1-alex.bennee@linaro.org> References: <20171013162438.32458-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::229 Subject: [Qemu-devel] [RFC PATCH 01/30] linux-user/main: support dfilter 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: peter.maydell@linaro.org, Riku Voipio , qemu-devel@nongnu.org, Laurent Vivier , qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée --- linux-user/main.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.14.1 Reviewed-by: Richard Henderson Reviewed-by: Laurent Vivier diff --git a/linux-user/main.c b/linux-user/main.c index 829f974662..5072aa855b 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -3854,6 +3854,11 @@ static void handle_arg_log(const char *arg) qemu_set_log(mask); } +static void handle_arg_dfilter(const char *arg) +{ + qemu_set_dfilter_ranges(arg, NULL); +} + static void handle_arg_log_filename(const char *arg) { qemu_set_log_filename(arg, &error_fatal); @@ -4054,6 +4059,8 @@ static const struct qemu_argument arg_table[] = { {"d", "QEMU_LOG", true, handle_arg_log, "item[,...]", "enable logging of specified items " "(use '-d help' for a list of items)"}, + {"dfilter", "QEMU_DFILTER", true, handle_arg_dfilter, + "range[,...]","filter logging based on address range"}, {"D", "QEMU_LOG_FILENAME", true, handle_arg_log_filename, "logfile", "write logs to 'logfile' (default stderr)"}, {"p", "QEMU_PAGESIZE", true, handle_arg_pagesize,