Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1508774pxb; Wed, 2 Feb 2022 06:35:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJykV9mNr/HpitgS0HjKWyUwz4VEBNkjOBlqBg2ECHKWYumGbwr8j6L3tBmZxPDUDat1ICGU X-Received: by 2002:a63:1715:: with SMTP id x21mr4611843pgl.544.1643812530283; Wed, 02 Feb 2022 06:35:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643812530; cv=none; d=google.com; s=arc-20160816; b=C94r/9KDrEYIAlBWBSk35fN7jaL3awJb17QNYBlqX5W8VmQMIZCMClVRlDQFXgCdnr RCVr8orf3hO2299IZxgT5tGu9ZZNUHj/QvzI5X4qLI9PD8Af5/42z7bxECiWOQb0xXC1 O+MVTGwI5deivepyKH432i/mrGDVsHM+f7ERtTlvwCXLjepEmOwk1CP8wHEQ/gdIBCKd Pk6Zl3cStEBTGArTvgXUglK1rowC/ML80K57u/brnQBM5PvC20ruvtL8ju0MMbvHl54m NWCXwP+481huP/cyK4Az/Wl026o/HdFr/eL8gwjB0Q/snoL9yoDPjvl1641Aw6XkwAya PWVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=MglA69Kc8PUbTfbrcZlilt6G7Q99+lhbwupgZVQ8PQc=; b=Fs7BTdWE4gsnOBzSSUCRDSRjVMEHOwuJFZnEOtqHq460FUCIfxSmbDo/2hf+LhCpFT tOVyF6UZExSmy9EGTXQUcZ78s4BsMDMpeGis0QOEL+MqN3kgoNCwyXTYD5uqC+PfQ8j9 S87AgxmLdONHVZr6oV/yxsKvMZ0T/Zrqd0natroAjTPLk/nn7/gNHuutpTQ0vFkj+f/8 ct3hZ/mc3A13h+35cuo7uiERmChAtXGuXJv1ebgGfIwssQ3xFI5FJy1rw7ngbAuYTZb5 vAEj7mnLBsp0TXUxF+imosAYllrj2fqMXbQJiYH7cq1wIfxHxfO3BPYTrgfxlSbc+sgm hxvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j11si19400117plh.260.2022.02.02.06.35.17; Wed, 02 Feb 2022 06:35:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343536AbiBBKdb (ORCPT + 99 others); Wed, 2 Feb 2022 05:33:31 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:4616 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbiBBKd3 (ORCPT ); Wed, 2 Feb 2022 05:33:29 -0500 Received: from fraeml739-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4JpdRV45Q6z67y8Y; Wed, 2 Feb 2022 18:32:54 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml739-chm.china.huawei.com (10.206.15.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 2 Feb 2022 11:33:27 +0100 Received: from [10.47.27.42] (10.47.27.42) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 2 Feb 2022 10:33:20 +0000 Message-ID: Date: Wed, 2 Feb 2022 10:33:13 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH v9] libperf: Add arm64 support to perf_mmap__read_self() To: Rob Herring , Will Deacon , "Peter Zijlstra" , Ingo Molnar , "Arnaldo Carvalho de Melo" , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim CC: Masayoshi Mizuma , , References: <20220201214056.702854-1-robh@kernel.org> From: John Garry In-Reply-To: <20220201214056.702854-1-robh@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.27.42] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/02/2022 21:40, Rob Herring wrote: > Add the arm64 variants for read_perf_counter() and read_timestamp(). > Unfortunately the counter number is encoded into the instruction, so the > code is a bit verbose to enumerate all possible counters. > > Tested-by: Masayoshi Mizuma > Signed-off-by: Rob Herring Ha, I was just looking at this same topic yesterday from an old patchset [0] and wasn't aware of this separate change. Tested-by: John Garry [0] https://lore.kernel.org/all/20210311000837.3630499-1-robh@kernel.org/ BTW, Documentation/arm64/perf.rst has a reference to a file which does not seem to exit: .. _tools/perf/arch/arm64/tests/user-events.c: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/perf/arch/arm64/tests/user-events.c Thanks, john