From nobody Mon Feb 9 22:41:15 2026 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1508330160637654.4465500231711; Wed, 18 Oct 2017 05:36:00 -0700 (PDT) Received: from localhost ([::1]:44437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4nZY-0006RA-Qv for importer@patchew.org; Wed, 18 Oct 2017 08:35:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4nXe-0005HZ-0U for qemu-devel@nongnu.org; Wed, 18 Oct 2017 08:33:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4nXa-0003zt-Ij for qemu-devel@nongnu.org; Wed, 18 Oct 2017 08:33:46 -0400 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]:56610) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4nXa-0003zc-Bm for qemu-devel@nongnu.org; Wed, 18 Oct 2017 08:33:42 -0400 Received: by mail-lf0-x242.google.com with SMTP id 90so5615949lfs.13 for ; Wed, 18 Oct 2017 05:33:42 -0700 (PDT) Received: from berserk.kos.to (91-157-170-157.elisa-laajakaista.fi. [91.157.170.157]) by smtp.gmail.com with ESMTPSA id j71sm2590718lfk.6.2017.10.18.05.33.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Oct 2017 05:33:39 -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=a6Fx/kvZnuCI53JZEHGshgwcKPKG0/PHcayuflh6CVA=; b=L29KteA1E6dWy8PAw/8Qqn9U5UPoj9mgH+ivkmnKOMouGQchxjL0e0Njxk+tz3z4bw W7OGh1flQwi4f8CXRg1N2f9rZGyOPoqeepKK0pfjC3aselZebv16ELX4hR6sRhYctrNG a3UdLufM+erOLdRBIkFN4lB6b3lrBxeFWL/ys= 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=a6Fx/kvZnuCI53JZEHGshgwcKPKG0/PHcayuflh6CVA=; b=pRCn8kLNQWAuysx7cJGItX0sTWBc61cU7dQjb8o/Qy2O5yQSmleJk41JpymR15unMk 2TdQs6H5paa3+W7Cy+Rvn4uhhcOdxmIycLPvEly8AoO0duIDtp7Ca7UiXM4+tIG97zWm ycPv/jcYZ+jGhOynQJ6EqL2UFjWi52MMzT5sU8jhJmkHxNeABf6t+wMK0eXTRNsDawaw mSzljL7diuaYnh8VnPgbRrZ/zdYqoQpJKX/DkSyqhqoJps261Nn8fuktCoYJwTbwai8Y HPILyZLbrvLmJmBHR125jtsnCuKt5G4W6hweQ8d77fwesgF58P6AnJLt/FV5A2tZu3eE qHGA== X-Gm-Message-State: AMCzsaU3kkGkHra4dxh8S425bzFYSjt3sqzDnUJTORQt7yMSi/rgttcS jxWu8zYa3yE604leKwUT6iMel8lijS4= X-Google-Smtp-Source: ABhQp+RDNDlZDfiYbmYw27VxHi12zfWPBh1JXTq6CDhXwI60ZnfFuWbiApMj0gE+7+9gAOfjwRXCxw== X-Received: by 10.25.59.90 with SMTP id i87mr5014990lfa.46.1508330020907; Wed, 18 Oct 2017 05:33:40 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Wed, 18 Oct 2017 15:33:23 +0300 Message-Id: <8423fa9010f2cadd50e8c21a20c62dc5b977704c.1508329282.git.riku.voipio@linaro.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::242 Subject: [Qemu-devel] [PULL 09/10] 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: =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_6 Z_629925259 SPT_0 From: Alex Benn=C3=A9e This adds the -dfilter support to linux-user. There is a minor checkpatch complaint about formatting which I've ignored for aesthetic reasons. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/linux-user/main.c b/linux-user/main.c index fd54d344bb..dde04c769a 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -3869,6 +3869,11 @@ static void handle_arg_log(const char *arg) qemu_set_log(mask); } =20 +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); @@ -4066,6 +4071,8 @@ static const struct qemu_argument arg_table[] =3D { {"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, --=20 2.14.2