From patchwork Mon Jul 22 15:27:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Clark X-Patchwork-Id: 13738910 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E364C3DA59 for ; Mon, 22 Jul 2024 15:29:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=sGaIE2BW7BgAaIE7phZSFxnm75sxmFFkaJHJRi/UoXw=; b=fBZ/V9bp9ZZhzN/xtJVpYz3YL4 irEjd1IvRdwdvzKzmIzy5tMPQfFSglYNq4wPn3keL+U8oi9hArT5qp+ZWah/PcpFWmytS7VR8Wlut NsysAGLiha0UY4DPBiZNUHHOfM+5DKzEjwFS7Tn19Z/RyS5Vfchm3srr8yeStsOlJ59/qIgRaDBKM oooAlbpls6y22H7n3QXALr9Y1Wt7MmcJiyoZsE/l5j0vJbFLyLpGp1NgtmnpYP6B12i+t6rJskESy kA+7qId5osaq61Qy36tmfeleC/0LIV5peHmKfroHcdBZ79b4fYiA9NKe8Znjufnk3+5Q1XM1ZU+bO 1Ur3IEWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVuyl-00000009xAj-0f0z; Mon, 22 Jul 2024 15:29:35 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVuy8-00000009wyD-2ebN for linux-arm-kernel@lists.infradead.org; Mon, 22 Jul 2024 15:28:58 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4266f344091so32540205e9.0 for ; Mon, 22 Jul 2024 08:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721662134; x=1722266934; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=sGaIE2BW7BgAaIE7phZSFxnm75sxmFFkaJHJRi/UoXw=; b=TkA0Ycxw+rGVNjItECuL9r7AjxP47htQtuUgA3AsvZyYjBz/NoHj4OZv+we8OXg7m0 hoii2CCR2oCzoI3LDuNX99JSqwvy1hqQT5K4edxb40/4pXmm/AP8FuDZ4YXFL7PUp0mX wMnvl9K2jXdsErVnYNeZHmGw7W6P4RnUAZ4ABhvQcwQCIUg9KsInYLlG4YRd6WLCyHEu Ko0IECTHB4Ka6pkzxqO1U4Ijy9K0TitF+FG8I4OwgNQOKh6/2wUZQSvANcAc0EZEHsp7 ZPSq3Uu5pKl7Tqeyp+JBJczB/geCayzIs7RZzvfbs43ibANDeH5sj9R2kto95cRNdBp6 U9Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721662134; x=1722266934; 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=sGaIE2BW7BgAaIE7phZSFxnm75sxmFFkaJHJRi/UoXw=; b=NWj1o5Om0IQgOZQSBMmNqdI+KArD0HjHAHPORKCLY0GmG9iRDQSyE4Ysqn5oWDM2y5 pEjoYfTRhGCNe6FNpQWbfNdTQ1AeIOiLunD+zXtluJtePzgxFn7gnkCmSPe5ZtLX3OJ4 yRdZ6JRzr8ui9ayLuB3s1Pw8jWyakcFgq+b+A5QQLIsEJzOWTHNL1+b4Ww3+XA4Gry1q SLsUNobmdH0dRUDNm5M6NR/Cv47J9+dCRvr1WJUR7VFf/ikWYQCTEsI4fR9YzBk+CoMM 929sx1MS0z1nY5jXavncTLO4Z+D30DxahCs63aFp3FfokV36ncmSDMIY+iiQhB0r13hg 5zIg== X-Forwarded-Encrypted: i=1; AJvYcCXoi3JK4zL4D+1IqPimbg6QWvem95Fv121V3XgGcW7KOCbSTeaOr8W0AiW+5GXaWRZego6U03HGwsTLJ42wVmrp5p0elGYO4VlgRIi0WhYNjKG5XdE= X-Gm-Message-State: AOJu0YwIbteYwB+5e2CXt35oOC/gA9Hay2VKS39kWwSQX63D+dPWg58i mGNrJZpoml7Bq4zRtdCElsmtp0GNnfi6NuKNRF3elEMYn+rV2LORqZud8Jmk97c= X-Google-Smtp-Source: AGHT+IFf2Ks8gYykNvvkym6GDERLbQvRpWLVHjp9QVc/oQjWbWHuohfqpzS9jIPwqCj6q/nHPU9N4w== X-Received: by 2002:a05:6000:186f:b0:367:940c:6a3c with SMTP id ffacd0b85a97d-369bb2ba0famr4873470f8f.41.1721662134479; Mon, 22 Jul 2024 08:28:54 -0700 (PDT) Received: from localhost.localdomain ([89.47.253.130]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427d2a43598sm160654535e9.1.2024.07.22.08.28.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 08:28:54 -0700 (PDT) From: James Clark To: coresight@lists.linaro.org, gankulkarni@os.amperecomputing.com, mike.leach@linaro.org, leo.yan@arm.com, suzuki.poulose@arm.com Cc: James Clark , John Garry , Will Deacon , James Clark , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , "Liang, Kan" , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/1] perf cs-etm: Output 0 instead of 0xdeadbeef when exception packets are flushed Date: Mon, 22 Jul 2024 16:27:55 +0100 Message-Id: <20240722152756.59453-1-james.clark@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240722_082856_710444_43AFF41D X-CRM114-Status: GOOD ( 15.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org I noticed this when looking into Ganapat's fix to arm-cs-trace-disasm.py. I assumed that seeing this in the output was a bug and went to investigate why it happened in some cases and not others. It turned out to not actually be a bug, but I think it doesn't look right. In the end this change doesn't really accomplish anything and I'm not sure if it's worth putting it in or not? Maybe it will save someone doing the same thing as me, or maybe it will actually break something if someones script is looking for 0xdeadbeef? James Clark (1): perf cs-etm: Output 0 instead of 0xdeadbeef when exception packets are flushed tools/perf/util/cs-etm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)