From patchwork Sun Aug 27 13:35:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 13367275 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 95D30C83F11 for ; Sun, 27 Aug 2023 13:37:39 +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=qMjbjU0/WVDQpHAgVBJltEg43ksZVyK5oNHaoqlP9V4=; b=oyHzhe8rGgl87Y mr928HSfpYHa7Xjti3oz00/8c3VmiGQr3KY92Odjyl2UtxqrJYr8AyPtw5hwAARScAr8pqnW8Y/Tc HztXl1JYUxo38DREokvHEYLt9hH1CaVT3HTRrCaVgs7nFHs+vP7ZY+JJj7TrXLW33fk1qit5QAphb PxZ3nWlAwpVRP1D7hUAaxuYOCNBf7cb6G37Mb4Oqk7niCLBzAvnOVcvWlqD65/YzHOLPFvbKTTJDr QHBs2bJ4ajlYgfSiOcNUvtpGt1g1pclS3ZrnWADHl67t2HCxsUd5oO3qgVpaxeBQWdoNhF476gnik LFkgmd2tdt4/1rmyoCpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qaFx3-0086uc-0y; Sun, 27 Aug 2023 13:37:13 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qaFx0-0086tq-2R for linux-arm-kernel@lists.infradead.org; Sun, 27 Aug 2023 13:37:12 +0000 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-68a520dba33so1923150b3a.0 for ; Sun, 27 Aug 2023 06:37:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693143427; x=1693748227; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fxGmRwFDOPFQ2VNKBgkXhNqTcIAg/eEBzz2KL/VMfQ4=; b=qLZ111W4W442a6ooOGzUM1cbV+FmoG1PtWYfNcmvLZNHMZ+S1Pe3QzAPziv/zKmvcd HGmEe9NYUdjnAMUFVZEvaO8CcQr1R2pkl3hddzURsk0ho3GLlz90zpAgrpLi9lgbaqHo 4MRWRbUnieXVTh8DRru2qaPkLGmCYg7aJbBeH2/q0w6LCkldc/FCZJiEWOvbtkD2bUhr Gh2mRYFUJZlVOl5pgshjbuiVcdRdrBSc2IPUS4mXdoocrfvpBV2wperkBtIfwC9COw3O dRAhAp6lrv4r7oOr+BvJ+JMRpVYmj/0gC4bL++6SePVNdpH+FwvwkvPwPMcS3rLO4v6c YYgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693143427; x=1693748227; 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=fxGmRwFDOPFQ2VNKBgkXhNqTcIAg/eEBzz2KL/VMfQ4=; b=ZdWT67PIatoGT3KshmrQ0fN1iV+nTvVLD2NL89O+rPT/0z2S/vDXI0qMtEO0Egu39T soxycZPzH2P5y8vdb0QrEbnu+Rd3OUqIm6zOgqG7wXJzKruJ/dqhw0UimNL2MdLs2oxn KUOmTQ7pcOyw7rqR8KjmONfRctN8yDY8S/oC/jnqDgswmgTRAGmXLiOVtVpNKAFZl81H ydo4lPb7McyAlFAi5qO9uC4TjUOGe3W1YCTYyumOvKGXyjOZl66Z+JHVsE1+o4qI9z9e wRGRV1VugXeZX33gJhEGPE9i88sfq+FFCXRYFWqephlJ2eJXnxGShU+ntfLLylZtF082 q2cQ== X-Gm-Message-State: AOJu0Yx5c5vcyHAFG7SXmzRwL6B+rdca0GIJWK6uvU79X7bW2IA72jcq CjbWGLR009F4MEVGWlUbxSd3NA== X-Google-Smtp-Source: AGHT+IERYpuwTJTlj0ke5t7pAohCypc8C9ZeCEec+440h7vM7t37OT+xF5GUTjWJ6hrqtpi65H4oqg== X-Received: by 2002:a05:6a21:329f:b0:10f:be0:4dce with SMTP id yt31-20020a056a21329f00b0010f0be04dcemr30895212pzb.8.1693143427445; Sun, 27 Aug 2023 06:37:07 -0700 (PDT) Received: from leoy-huanghe.lan (211-75-219-204.hinet-ip.hinet.net. [211.75.219.204]) by smtp.gmail.com with ESMTPSA id e29-20020a63371d000000b00565eb4fa8d1sm5273627pga.16.2023.08.27.06.37.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Aug 2023 06:37:06 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , James Clark , Suzuki K Poulose , Mike Leach , John Garry , Will Deacon , Mark Rutland , Peter Zijlstra , Ingo Molnar , 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 Cc: Leo Yan Subject: [PATCH v1 0/2] perf cs-etm: Improve timestamp tracing Date: Sun, 27 Aug 2023 21:35:55 +0800 Message-Id: <20230827133557.112494-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-20230827_063710_839456_CE677E87 X-CRM114-Status: GOOD ( 10.30 ) 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 series is to improve timestamp handling in per-thread mode. The current code doesn't validate timestamp and always return success for per-thread mode, for a sane implementation, the first patch is to allow validation timestamp tracing in per-thread mode. The second patch is to respect timestamp option "--timestamp" or "-T", when users set this option, the tool will automatically enable hardware timestamp tracing in Arm CoreSight. Leo Yan (2): perf cs-etm: Validate timestamp tracing in per-thread mode perf cs-etm: Respect timestamp option tools/perf/arch/arm/util/cs-etm.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-)