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=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 610F9C43460 for ; Thu, 15 Apr 2021 14:58:40 +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 E0AE46142C for ; Thu, 15 Apr 2021 14:58:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E0AE46142C 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:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CgNitFuqrCYG0MT3wAXAaXanGG3oOiWzyM0nZxxB7SI=; b=qGD7NhSDdFmvH4nWtASQGMqBJ QI/D1c16LGwriv5XwTIbBbxJDagGuSW2E0L1ihq6tOMpkbzo3xLzowo+0jiZymUGPQAEZC09qZfUi 22N1pLTb5tQMvZh0ml2GSM8pnKYCe+JkV8NWOFeYorg6AvYbaAqhP3qjIodsSwicLhmo42BiK/rtm P72lb5fkd/AB2HzdWFIMpn+VMuBPx6KZeEklz1t5ZAjYqJ4CPo1s93883WQZ7iJW1ATP79pdMY3cN HmswR7wtVIjhRj/ssi4GstjbaLz6hmGpcg3FZra/BzeV4C9Uadst7KJq8Od4ISj9Dk4N7UOne/5vH y7pOQMFtg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lX3Q6-00GWKN-NA; Thu, 15 Apr 2021 14:56:41 +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 1lX3Pz-00GWIl-EV for linux-arm-kernel@desiato.infradead.org; Thu, 15 Apr 2021 14:56:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=PhTmwH8PhT9mJZ3C0aVcmTrvg6qX9lyZC429IhOM4QM=; b=iLofUo/YZIEgFYJvTfx/ZG9WJx +6iGxUMegIZkWVnTcuf9T1avenOFb/FyTwzje/7VWYzaxmpqNE1iuPEblYq5aSlyKzUIVMvJ89eF/ 1K3P9zrIbvQm/2qhasJGLZ7X2Jc2gMpg+4/5tWZieYE5kj1HM5U/WVDqVQF1M6Kp61/lUYdQ8UJfs RRMlFZ0oviuBGsqegUcCIvQ5pktrTSHw2r/do86qxltDi9GKt1VwjeewYE/t9whwwH3W6MhTZfldD pEqFAQZV0qaAD25A3sowLWBkzv6MVlaUd8QbvrW7y2sUBhr7wMFTYohrL1PnJTTgoQKfFZR+Lh3Ai E3dMdwhA==; Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lX3Pw-008fto-Vd for linux-arm-kernel@lists.infradead.org; Thu, 15 Apr 2021 14:56:30 +0000 Received: by mail-pf1-x430.google.com with SMTP id w8so12752579pfn.9 for ; Thu, 15 Apr 2021 07:56:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=PhTmwH8PhT9mJZ3C0aVcmTrvg6qX9lyZC429IhOM4QM=; b=q3BREvqEB2G3BNbpkG8kBbf7BElXASTuxr+GvNV7K1WJc89G3SaGdHjDAu4UCtVvSC 2K/277udq3BCCJdE/9yr6aITZn/oJlz51iW7Zdkd18ZaAdvTgOWDCIghYIioeLa9qww1 Hb1ScRJLz9eagiwvAhGAIJPscYOodOkHrj71r+Rx0ZhP2dq6eGZUlDYY+/Zimj1KV86V 1wfO4DtWvxGrQUdx+g1Wxtc3jnNe9PM+JCPlz3dXZp6PPi8VyEU3hAAtGcszP3YU7HHB 9C7Z2xfnAZ5k5jWOdBMenO/zr3PdZ0sl1Tk3bLOQ+GnOHC4dMd0bp8NQOzNmYlVmswmn LJSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=PhTmwH8PhT9mJZ3C0aVcmTrvg6qX9lyZC429IhOM4QM=; b=akJkZHlfE/Sws9zyaaIecR/8tmsV91Ugb6kq+mC/ncVWmg7dVGchW/q5MfCsJ81mI4 QUvMWrhw8Z6/I++HDYdFgreQRFjJZN4rmDCW9/5R/jqm0LE+mf63FEu/F92p0+refKK6 hEv99te+Pz02NBTBv5fsOqdLsWGocS0/trNpq22HANNCAXcrkgVUJS9R2qBjmqDekc3/ N6BW8M7B5x3Ow0FKAxtv2IdwIFK1bx2dvDrxF/+pAeJqBpQqBh6mG4+fRpD8gDH3xX/T KzIJfr7ZdOQOnZm2qGfs2UlsLXdY7j/rFb6jcMnZtIOmuDWnDBBAgDk7ZbeKbclYD5bI 4nwg== X-Gm-Message-State: AOAM531Nma/jUT1EEiraXUAOQrH6MoyskCppVkvJTr7WpkUcExeqVWW2 dohQbi+qT4SS+lxDWvn8lkrSpQ== X-Google-Smtp-Source: ABdhPJwbpBWFS/DrNNeCNcxK8P61L/I09eLggFGIfDMGJvBkdCoJ0HdLMHpYtG/PdQm7IT5fig4+fw== X-Received: by 2002:a63:6b4a:: with SMTP id g71mr2225731pgc.274.1618498588061; Thu, 15 Apr 2021 07:56:28 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([116.206.101.232]) by smtp.gmail.com with ESMTPSA id s1sm2754011pgc.28.2021.04.15.07.56.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Apr 2021 07:56:27 -0700 (PDT) Date: Thu, 15 Apr 2021 22:56:22 +0800 From: Leo Yan To: James Clark Cc: Arnaldo Carvalho de Melo , Al Grant , John Garry , Will Deacon , Mathieu Poirier , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Dave Martin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/6] perf arm-spe: Enable timestamp Message-ID: <20210415145622.GE1011890@leoy-ThinkPad-X240s> References: <20210412091006.468557-1-leo.yan@linaro.org> <570051ef-eda0-ead2-96de-0e22ca226e0a@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <570051ef-eda0-ead2-96de-0e22ca226e0a@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210415_075629_053269_2D786C96 X-CRM114-Status: GOOD ( 16.52 ) 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 On Thu, Apr 15, 2021 at 05:43:24PM +0300, James Clark wrote: > Hi Leo, > > I was looking at testing this on N1SDP and I thought I would try the round trip with perf inject and > then perf report but saw that perf inject with SPE always results in an error (unrelated to your change) > > -> ./perf report -i per-thread-spe-time.inject.data > 0x1328 [0x8]: failed to process type: 9 [Bad address] > Error: > failed to process sample > > > Do you have any test suggestions other than looking at the raw data? Good catching! I didn't use inject mode for Arm SPE before (it's not not like Arm CoreSight for instruction sample, or SPE's branch sample is statistical so we cannot generate branch samples based on accurate interval). For the debugging, it's good to use "git grep" to search "Bad address" to check where the error happens, and can use gdb. I personally think it's possible to go back to check the sythenization flow, simply to say, it might have problems when inject samples but not in the decoding flow. Thanks, Leo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel