From nobody Mon Feb 9 17:59:02 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1612195120; cv=none; d=zohomail.com; s=zohoarc; b=bH962ODUhd8MKMqhUZdI9fPeGRJe1VbIxMyBnl5L1hMmOOmsfkWLjzy6rIgarxfoJA1DyldbLvVlyOTz+XN2nTF1GHmc9P+p2nG6oa0hC7eQG6oVTr+gLmOTe2cqFr7vPrP+ywXre1CGrbfWv9YliUMu6IclzijbFceA4xu2xVM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612195120; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=OAok3SCm13ziVPivo7dyaJzZdeFBj9afIGPtyzSiesc=; b=YHdh7ofhAtA1tnVwjIA2nhHkz+iPVFx21apkmnau2N2P8TeM08IZt1lFNZ6Gx8ICMGoyWGFbXdY26Pg2fPp0IsMqG6NEqarc15iF2RIy2afVPfK6aOM6shX4D2FqtVNNPzD92QSGlffyFgnAqy4n7dDq+UCsdhngMqTfI0J0yRY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1612195120803637.6224185630324; Mon, 1 Feb 2021 07:58:40 -0800 (PST) Received: from localhost ([::1]:41958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6bb5-0003cf-Lt for importer@patchew.org; Mon, 01 Feb 2021 10:58:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6bT1-0001gO-38 for qemu-devel@nongnu.org; Mon, 01 Feb 2021 10:50:19 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:26798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1l6bSw-00083n-6d for qemu-devel@nongnu.org; Mon, 01 Feb 2021 10:50:18 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-533-utdlYTgZNyuNmGtjFfppUA-1; Mon, 01 Feb 2021 10:50:09 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 039698E5F41; Mon, 1 Feb 2021 15:48:08 +0000 (UTC) Received: from localhost (ovpn-115-140.ams2.redhat.com [10.36.115.140]) by smtp.corp.redhat.com (Postfix) with ESMTP id 73C6310013C0; Mon, 1 Feb 2021 15:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612194613; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OAok3SCm13ziVPivo7dyaJzZdeFBj9afIGPtyzSiesc=; b=O7qMUQNZRREDDgHnlbU3WcIxOIKI9AY9IzfrgYhWJ1IQfjzvxSltTgsWXzRwBezNXO2RYq BPatZiCNvHPZ/dgYi9fiq7+nPoni1Y2QFvHpjW4kMfCV+rJeu2PX+8ahbihqzX1RtZHq2h kDagJQRCt50PfTZqsCMVgw/8XzUWj3I= X-MC-Unique: utdlYTgZNyuNmGtjFfppUA-1 From: Stefan Hajnoczi To: qemu-devel@nongnu.org Subject: [PULL 10/11] trace: document how to specify multiple --trace patterns Date: Mon, 1 Feb 2021 15:47:02 +0000 Message-Id: <20210201154703.180022-11-stefanha@redhat.com> In-Reply-To: <20210201154703.180022-1-stefanha@redhat.com> References: <20210201154703.180022-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=stefanha@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=stefanha@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.351, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Eduardo Habkost , qemu-block@nongnu.org, Markus Armbruster , Stefan Hajnoczi , Cleber Rosa , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" It is possible to repeat the --trace option to specify multiple patterns. This may be preferrable to users who do not want to create a file with a list of patterns. Suggested-by: BALATON Zoltan Signed-off-by: Stefan Hajnoczi Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-id: 20210112165859.225534-2-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi --- docs/devel/tracing.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/devel/tracing.rst b/docs/devel/tracing.rst index af395e957d..e8f9b82c5e 100644 --- a/docs/devel/tracing.rst +++ b/docs/devel/tracing.rst @@ -22,10 +22,15 @@ events:: This output comes from the "log" trace backend that is enabled by default = when ``./configure --enable-trace-backends=3DBACKENDS`` was not explicitly spec= ified. =20 -More than one trace event pattern can be specified by providing a file -instead:: +Multiple patterns can be specified by repeating the ``--trace`` option:: + + $ qemu --trace "kvm_*" --trace "virtio_*" ... + +When patterns are used frequently it is more convenient to store them in a +file to avoid long command-line options:: =20 $ echo "memory_region_ops_*" >/tmp/events + $ echo "kvm_*" >>/tmp/events $ qemu --trace events=3D/tmp/events ... =20 Trace events --=20 2.29.2