From patchwork Sat Oct 14 07:45:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 13421937 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 67B2DCDB465 for ; Sat, 14 Oct 2023 07:45:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zbSnIfQUNV9kguieiCF46VNFTJKiWRNztgfUUWr5LiU=; b=AsNha9vwuL13II gWF3pRnw7ZuNPPrzrDViVirC+QsjaqI0JKDbyelrPHz5J8E60lSuqXQyWRv5nvUOngiNshAvzDIGI FJYCaff3MFSR1wmo0aWaKo6zIgBCkBdB8xKFgOyl606HJ4vpwQO1dBB89eWCdxdLdrjq93bs4vkw+ YuRQoprR5IpD0A4HJ56D2+4gJmFtUl4r+AIvxfXdckWil0r5ZsxFmzqHcUk4pM0tNWEWpfUcn0+S9 qXl15eKYd7FkoTEPN7ZNfy5bB/CjPkRl2Ei7dL5pfRp/iXHoS6oEgoLXCUMsMDmwlVaA8sD/OCzJb OVZ4+cgsnNvUH0NQyZfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qrZKy-004vb4-1R; Sat, 14 Oct 2023 07:45:28 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qrZKw-004vaV-0D for linux-arm-kernel@lists.infradead.org; Sat, 14 Oct 2023 07:45:27 +0000 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-5a9bc2ec556so1153979a12.0 for ; Sat, 14 Oct 2023 00:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697269525; x=1697874325; 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=Vqzza3fB+lsTu4YDyKGQewlzLBuqykDjZxJnSTk9ygs=; b=I+SYo9Jt/B0iPTRjlT1VN45Jnd1tf/W1Mnee82B6abRzSoHzwS1eTHhYSZHb028lqx ypfp/qhJi0JjQGKge3NY/rjTaRFad946KzOhL9HNxf2d0fpX/SjqOPUg7a/3Sf6qkLmy +bmlJo/Iq6FjpZx4QHOX8DxR5TrOG7sDq/RYDyyUHxyONVZpm7NX53XwGPMdEt/TntWE 7wYAOZlwDSSquBed47T2ifnnqOleQNn7CU/CbLxTpZaYgdWojmYX0yiIbsGeTwWL2wni U5S6QUyE4Pp4beuFx7pBnnqrSyAXCTKvjU3g+oGhBj04CVJ3YMlvADjBFqz3NnoC2MKT tSpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697269525; x=1697874325; 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=Vqzza3fB+lsTu4YDyKGQewlzLBuqykDjZxJnSTk9ygs=; b=teqRaj5SaJoAQfR99Ze+OmbHrjuvGF6N607KStxRk61V/KJiIIOXCwfYChfMtO47Sd I6PON73r6qzqhPsv93UwkrZ3YVyXIXHJoRKJnbablA2JOaI4tSVXBgE0i4VyJpwmt7hj RssGeh9YpiWQ1x77RMHGjEnWnY+wQ+DdNQVh6LLD6kyrmphr/DvtsJf75xcuMxiQ1ZAw 7HrRi3fguheS0ZvXt49G/TlwjuHTPzlbiR0nang4p/f+GIzqvtmq+X7LqGgrjHDFDM8r 0dllIEAjm8Te3gcYHLKoHuhHyD7ZorVe14r8mH9nRhqSuYc+qYVQWHJ+GYxGfXNFJFyr lVyA== X-Gm-Message-State: AOJu0YxZeV+aMufh+YKjfmtcPbe/GzFh4hVIE7eSKlLEvgMXEfLESMnY mON6BZ7HtgOn0G+Lw4wQF58jbQ== X-Google-Smtp-Source: AGHT+IF4z4Im1nLH/k2ekf0tUd+qFPog23mz/Cdj38aUXoF9RZZSYKa8hP9ec6ysGxLmrBKlb+u/Ww== X-Received: by 2002:a17:903:2305:b0:1c6:c3f:9dc3 with SMTP id d5-20020a170903230500b001c60c3f9dc3mr28632806plh.54.1697269524823; Sat, 14 Oct 2023 00:45:24 -0700 (PDT) Received: from leoy-huanghe.lan ([98.98.49.106]) by smtp.gmail.com with ESMTPSA id r8-20020a170902be0800b001c3e732b8dbsm4965124pls.168.2023.10.14.00.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 00:45:24 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , James Clark , Suzuki K Poulose , Mike Leach Cc: John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Leo Yan Subject: [PATCH v1 0/2] perf cs-etm: Add support for itrace option 'T' Date: Sat, 14 Oct 2023 15:45:11 +0800 Message-Id: <20231014074513.1668000-1-leo.yan@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-20231014_004526_114379_A1D7B987 X-CRM114-Status: GOOD ( 13.40 ) 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 This patch set is to introduce a new itrace option 'T' for forcily use timestamp trace for kernel time and support this option in cs-etm. Some Arm platforms (either Arm CPUs prior to Armv8 or miss the FEAT_TRF feature, currently the ETM driver cannot decide if the timestamp trace is same with kernel time. This is why we introduce the itrace option 'T', we leave decision to users so users can specify this option to forcily use the timestamp trace as the kernel time. This patch set is tested on Arm Juno board. Leo Yan (2): perf auxtrace: Add 'T' itrace option for timestamp trace perf cs-etm: Enable itrace option 'T' tools/perf/Documentation/itrace.txt | 1 + tools/perf/util/auxtrace.c | 3 +++ tools/perf/util/auxtrace.h | 3 +++ tools/perf/util/cs-etm.c | 21 ++++++++++++++++++--- 4 files changed, 25 insertions(+), 3 deletions(-)