From patchwork Thu Jun 6 10:39:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 801983 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp226269wro; Thu, 6 Jun 2024 03:41:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWck9cmr4Nc64JSyHZfROVkhGxw/ghTV5tSrz7umm8Y6Po55ZAbBYlV2gx3NfBvTklQPiPzIM/btayKG6QjIq7u X-Google-Smtp-Source: AGHT+IHQrhPUXbrkb/uB9kQb75CVDjaqtPBqmmXMTfPcTAwl+5a/Hn5Ck8N0gDB/ykc24E9VkNZf X-Received: by 2002:a0c:f20a:0:b0:6af:2344:5811 with SMTP id 6a1803df08f44-6b030a97e6amr54179486d6.55.1717670462524; Thu, 06 Jun 2024 03:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717670462; cv=none; d=google.com; s=arc-20160816; b=VK0MOfBF3OITIkFlzpdj05hkP6TT3BKhsXiInYONaYdlOiv7oiXbyP/x/9C2/GsvyG VjkgOjtIvMttQXbjVACS3p4x1X2uTWhPsDKpJu/hD78LTFi7R/dHvygqSK6FvBRyNH1e PfqvyjRDTuJRPlmz6lmI+v4BlMnJzZTEY7/aX8cMxSWu6nFFD18Ee6CM7I86fScukpZd r2T30lB8j2FZXIAfqQYEkSWpna8KBhapNptNKZSu4xX2u+PoJnumazpU13tnSd4PhW6l XvkmGui0Snlf8sxugfQChSkojRvCZaGoVELnyv9sE8MSAw0tj5mJ/J+kxJvjx81oll9L C/rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=adDHEXWneXcv52En8RIWLm7+FbdekJO7cHm27ZjigF0=; fh=fkhgSvSQxZDIAoTUdICO3GeynQdx3dfiOU5urJt+pu8=; b=SbMnh7CEKPt83H5Yn0YpMf3+k3Y3Inwq2FO5nNBKQNDAumRnzbN8Q0w0RirMB9cLLi Aive2svT/MT3v2VFyGvfDt/e1ww5BIvrNfu3Bh5KBbFDtjLmq8EP1CBfKoIaABMJk4Xh tewj4pnBeISI5f9ZjqrL8eCCffDvojkDxF6Q2pcTap+QaPI889+xdwRpaf91Kb4aaJL1 H43O8jXAeoj2rcnxiZtrwhdbjtcZ9ltS9w7NroOEgqLkJWn7MZb3X+ORgFALVqL+Vfas lPLoImXOoDyf+dabX51ERA9wRDdJG4Je08qks0J8zhOxnc/+VQ+CFOLpqQ+fukpA44KP edJg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hKs0xap4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6b04f967d7csi11947606d6.202.2024.06.06.03.41.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Jun 2024 03:41:02 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hKs0xap4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFAXC-0003lc-1C; Thu, 06 Jun 2024 06:39:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFAX9-0003ky-SK for qemu-devel@nongnu.org; Thu, 06 Jun 2024 06:39:52 -0400 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFAX6-0002kK-W0 for qemu-devel@nongnu.org; Thu, 06 Jun 2024 06:39:51 -0400 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-52961b77655so899211e87.2 for ; Thu, 06 Jun 2024 03:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717670387; x=1718275187; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=adDHEXWneXcv52En8RIWLm7+FbdekJO7cHm27ZjigF0=; b=hKs0xap40KO5+KpzMnWFAfz8wXn8yq/a7nfDZSbHVktzhK65wEZkdi+LTcsVsRqMvf fRcuhiQ7q3hom+qnhYqJzLaf+CIftc7G4bIgRHr6boMqX8ZJkCi/+5BgSJwjL0A2FWpE TVxQpt24TpyU+hB+qzC1FFNGlJa8x+PsPUxJm0mLnqxIC7DsbHUSrqdYC6P8dMj6Rcaj fIZf6m71h5i6uKsJYDdoJ3VykmG1Nup58HlvAD7PAhASwmWtRF1RkCPDFQjbs3PRazZG UHOu0ka10XwMTQ76K4bi5+PFLW9ygxVGK673cP76QJGFr0Gl1CUceZIBGOxFRQUbN5a3 KOow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717670387; x=1718275187; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=adDHEXWneXcv52En8RIWLm7+FbdekJO7cHm27ZjigF0=; b=C/mstJl5slp2q+W7ithIbe1Uh1wFq6ERYIh9AmmaV+w5gKOm0DxDt1mMjvufsxFG1o th83DfbHR1DQxH90SFxpQwlUc6xGF09crvqNCDs3jjgN3kt1eRDq/KajKnfAzgPIz6yz nidSf2Wg2oo4KLbbJyH2Q6KuN8RNASZbTocVKeZ5xHiFgUx+w+XFlKTNmzfBswKLlDh8 QuzFX7La7UrFs9V7kCaYI7Qg7xjUvgQCjWr5JG8amd7UWgceTCk0j/Qezpr58zBdZ7J/ oazzbB+FeLOXQuzqR9OisQbx2pFcYnNa9p/4S2tgFWWK07S7sv6w801JU1Lx2PrmFE7U pyLg== X-Gm-Message-State: AOJu0YyJJLpigzWIF0jIt5de/+cpC97hB+FqcIfShJnW3CI80KXWYGnR Lo1APctJob99eHfAqPPH2XkFLiODMgbDDHqwJKWBDhuE9GsJXcYC4kMwFoOoD9j9D4DXKfi2euY STdY= X-Received: by 2002:a19:6b08:0:b0:52b:8610:a7fd with SMTP id 2adb3069b0e04-52bab510606mr2620388e87.67.1717670386794; Thu, 06 Jun 2024 03:39:46 -0700 (PDT) Received: from localhost.localdomain (94.red-88-29-105.staticip.rima-tde.net. [88.29.105.94]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42160a19ae5sm4491515e9.18.2024.06.06.03.39.45 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 06 Jun 2024 03:39:46 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Alex Williamson , =?utf-8?q?C=C3=A9dric_Le_G?= =?utf-8?q?oater?= , Mads Ynddal , Stefan Hajnoczi , Yoshinori Sato , Stefan Berger , Philippe =?unknown-8bit?q?Mathi?= =?unknown-8bit?q?eu-Daud=C3=A9?= Subject: [PATCH 0/5] trace: Remove and forbid newline characters in event format Date: Thu, 6 Jun 2024 12:39:38 +0200 Message-ID: <20240606103943.79116-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=philmd@linaro.org; helo=mail-lf1-x132.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Trace events aren't designed to be multi-lines. Few format use the newline character: remove it and forbid further uses. Philippe Mathieu-Daudé (5): backends/tpm: Remove newline character in trace event hw/sh4: Remove newline character in trace events hw/usb: Remove newline character in trace events hw/vfio: Remove newline character in trace events tracetool: Forbid newline character in event format backends/tpm/tpm_util.c | 5 +++-- backends/tpm/trace-events | 3 ++- hw/sh4/trace-events | 4 ++-- hw/usb/trace-events | 6 +++--- hw/vfio/trace-events | 4 ++-- scripts/tracetool/__init__.py | 2 ++ 6 files changed, 14 insertions(+), 10 deletions(-) Acked-by: Mads Ynddal