From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13FB6C433ED for ; Wed, 19 May 2021 07:22:03 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 96D1C60725 for ; Wed, 19 May 2021 07:22:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 96D1C60725 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=0R7Wxqk2uc6j6HqLFs5kaiEPJTLwWAx5qWU8NF/pwJs=; b=l/6gVRAGfWJdle8nZZnm+Iu7Xe olgjTadITmk/h/aXSSWYvWDcZ2lfowgvd/qvNhc7J8lo7KwgogmpfknEXJlVKNZbJnIaJ/eUjniRw rG89bIpcP/dl13eqztCoq+E+ycofpuvAS4ZfaOoWNq1vvnduGRkSLvLbMtSCzFwhZGnUtQ492Qn/d 60WoimPrT8e3PVSyRUc8Vyv49L1auFnWSNGL5R4u7Ob82jVcM1YlmfDdR1KxUoToxsbOuQFW+P8wD 1qNixMA1JLEgCTZy6CLFWnSpF4eocSm3EdQfpbdB4tGQWZ5rdZSkJz50dAceG1DjCJuUykOVRBfAG smY2Q6TQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ljGUi-0038Zd-0R; Wed, 19 May 2021 07:19:52 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljGUf-0038YS-PC for linux-arm-kernel@desiato.infradead.org; Wed, 19 May 2021 07:19:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=heLMK1eVMd9vz01zbjzMSRH/Wv+AZ6MgS42nN+leRL8=; b=s+Rof/wotfqxguLnPpNcmD0Fz8 g73zzc/1fnKE5Ue7AwiRtsXMltQjzC67ugC3vn+BX2D7AySVnVT/z8zQffRbC9Rg1oPgM49ZxuUmL 7dpaMfAR7+ziXqZzxbeHyYtBXkbmhS7JAMamMvtXK5fDkPnAtKSrVh9bIin8LZrZU4e8wuAIlTlWC puvZe6L8eZv26psj+7f1uegOy64FKeqqWTKLDxpYQrQbKZfmuR2Iv/T2iX64fGKz7hGUfGVU9OlD/ HIdzweY6/4oMplmM1eB+JFdH4/5ZaymRK8kGLBWy1cKFOo1NreiuDtoP582DhxMpqXOa7hCbnqExh Z2XK9UjA==; Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljGUd-00FDHF-5D for linux-arm-kernel@lists.infradead.org; Wed, 19 May 2021 07:19:48 +0000 Received: by mail-pj1-x102b.google.com with SMTP id pi6-20020a17090b1e46b029015cec51d7cdso2943866pjb.5 for ; Wed, 19 May 2021 00:19:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=heLMK1eVMd9vz01zbjzMSRH/Wv+AZ6MgS42nN+leRL8=; b=XjbDchF23I2Bo56VloArkfZQPG+SkQmBadJ5nE5rEJ0YOcRju17csGqJmZ84opweJy c9T9sHYCTv78MMSMKQuquxH3ebgC0VhhUWb3n5z9yYBRRCaXHQslFleBbmmPDR5kfciD vNybNIgVuIbUptlBWJijwWURr6eiYaeQHd7kBK+l+4aRIjzlpMYbIVwSvlmS+2uTWspl R5iyYcvf0HXkJmMST9QjzeRnz2wKQjligSoeP1yQgzB8Gq++E6mWb8gxvJXMP+bGlQpH J0L+L2P3LBC69KwjRF9v2M2R8JfjpndY2JqrPIGTDt0tdgHMvMmdNycZKbL3N3jmNb+U zqIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=heLMK1eVMd9vz01zbjzMSRH/Wv+AZ6MgS42nN+leRL8=; b=UWb9l3jEhjcQOWXQXMddNZYjBKtfSnIZgRRiq3L2oN1WpDtPyZwFKeq3KQ4b2a5MsK mPnAWIcOQy4a+MHwj9nZ0A6h19kO4PC7FIsHymzxdJBqd40o/zzzulFoMLHV/lsmeWOp mAqvlFA3wArGVz2arCXu/4G8D/O2bOAeqclelLS2pKCooYlsboBy7as6Mx0DWKPnf7NZ M+N7tqHyZ6CoXzbJIWNYQZc6T3eQ5J0MJc6XbBH6bNPyU+pzTY1BHPanlpjZhtqrZA93 o1RxJT8fnJlLj/6qd/ZsqX/LwCK/AZ+j8REYi5ywWsyylw3r4Ney0ZbfbDYDnM1Kp8t2 cQbw== X-Gm-Message-State: AOAM530CsJ1KlUYcaCujoWS2NQaZCNCp2o8A04FdpYEE1HT/rJ0Mg/BN 8Jm8eLeSUxszkLXWj+rrJN9QCw== X-Google-Smtp-Source: ABdhPJzsnkXIAqnGpb2P78SYG5OsZrFZjbzFBEaoM5bed8mXbJBTf7ascukMOrEQKyhdRY6fM+fsuw== X-Received: by 2002:a17:902:a70f:b029:ea:d4a8:6a84 with SMTP id w15-20020a170902a70fb02900ead4a86a84mr9345467plq.42.1621408786017; Wed, 19 May 2021 00:19:46 -0700 (PDT) Received: from localhost ([103.207.71.35]) by smtp.gmail.com with ESMTPSA id q9sm3435974pjm.23.2021.05.19.00.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 00:19:45 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , James Clark , John Garry , Will Deacon , Mathieu Poirier , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Dave Martin , Al Grant , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v5 0/5] perf arm-spe: Enable timestamp Date: Wed, 19 May 2021 15:19:34 +0800 Message-Id: <20210519071939.1598923-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210519_001947_250833_CAEAFDC2 X-CRM114-Status: GOOD ( 12.69 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch set is to enable timestamp for Arm SPE trace. It reads out TSC parameters from the TIME_CONV event, the parameters are used for conversion between timer counter and kernel time, the calculated timestamps are assigned to Arm SPE samples. This patch set can be clearly applied on perf/core branch with: commit 046b243a6afb ("perf x86 kvm-stat: Support to analyze kvm MSR") The patches have been tested on Hisilicon D06 platform. Changes from v4: * Dropped the change "perf arm-spe: Remove unused enum value ARM_SPE_PER_CPU_MMAPS" for format compatibility (James). Changes from v3: * Let to be backwards-compatible for TIME_CONV event (Adrian). Changes from v2: * Changed to use TIME_CONV event for extracting clock parameters (Al). Changes from v1: * Rebased patch series on the latest perf/core branch; * Fixed the patch for dumping TSC parameters to support both the older and new auxtrace info format. Leo Yan (5): perf arm-spe: Save clock parameters from TIME_CONV event perf arm-spe: Convert event kernel time to counter value perf arm-spe: Assign kernel time to synthesized event perf arm-spe: Bail out if the trace is later than perf event perf arm-spe: Don't wait for PERF_RECORD_EXIT event tools/perf/util/arm-spe.c | 73 +++++++++++++++++++++++++++++++++------ 1 file changed, 63 insertions(+), 10 deletions(-) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel