Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp325959pxj; Thu, 13 May 2021 06:00:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRRnHViqKemvFnqHknotNli6NlEjVdEnlESHGOy6LZFnJtUqsgGjXHCoulEED2QfbmruDf X-Received: by 2002:a05:6402:204c:: with SMTP id bc12mr49701273edb.35.1620910812695; Thu, 13 May 2021 06:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620910812; cv=none; d=google.com; s=arc-20160816; b=fCXH5P3dDErYFWaqD436akvAYmrsA4xyVWvPL4EBZCtKr4H5/71kauHd8LjKLcLv0H QtArGGdn6x/OqKg7SBz/KhtOHesnBeTVVZ5jcVUFWzrDakRlPxRNVsw0nQKl6Kl/3r2a 0Lne2ZZaIgKdJ91j8j6RcoGmFM4lqoeAWUB/C98thttToXw4sJdI5KimMW7BF7L/0tPZ 4zzcWAFwLHE5RgwAtgi8g2IJgAkPzGO/1H5AD8FFIXAucrKzrSFUs05Cik44sc2LyYoc ZGpgBZU89jcc+9lwFfQ+GraJ7QWtlFtYMc11oEFFOocAX9V92mrmNJ8l5nv1Q+RJPFv3 +N2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qeKUmOFQwUuzccQ7OPyu+xzYII9VVza4a7QOpxn6M64=; b=F/Nt+Qz0833h+/po6A6wbXzyccKrMkZuMJqJk87Uho47+Dxnc25gMJMydcg6bzRA7R 0nYY9GnPrdJOMddx+2/otxD/iSESI260/ViUC8rz9dWRHznPSO9D42DJLjNDla4nu8Yr rHM3/bHm/v6ftYZj4weOAO59CSKdHEXRiPrgfwwPNhMgmj0qdPG8tdgJpc4A7h8JVBRl kem3X7jd0n59hBv/1w+GBOoracm+tLY/otB1asd1SVc5/6SVZ+JZecB6FjxyRdZovko5 c7bv62l4smpr8xjLz+CQSjRTIS8JRJSjCbIS8h1YkAC77jhZv3rsXI4Oc75vz4IiT0cv hUuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cmFTFjJ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w2si2861954edd.513.2021.05.13.05.59.48; Thu, 13 May 2021 06:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cmFTFjJ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233903AbhEMMiu (ORCPT + 99 others); Thu, 13 May 2021 08:38:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:57130 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232660AbhEMMir (ORCPT ); Thu, 13 May 2021 08:38:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 87A24613DA for ; Thu, 13 May 2021 12:37:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620909457; bh=qeKUmOFQwUuzccQ7OPyu+xzYII9VVza4a7QOpxn6M64=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=cmFTFjJ+7y/+1jcDyFTdQpHLWvR/xS6UhokysM12iTSV5KzZz9/TI4/vxRbJYgri3 BWhgqdzrZAK9tnPjgZrmbjw/6XCXyk0rRS4c4tClbcDcXNs9w1aXixVnEXie43MxCj WzcyESId5GvCn2U9vHba7a25wUWzPLIsWOxhbbQFDdZ0rmFl9HSCye+tt469GJT21V fhrQ210q1+vyqHFdZO3i+42CiWiRQGH5/0sOUshxpCEXl160XX2ERvzQ5nt3rOdB5A KKgE641cvjtXr4ijN+d07AIum4mnAEfrxbp+t4VaMoDOdWjg/qoEpU2AMAk89/GjSo ZEdS7uoz5eEuA== Received: by mail-ed1-f49.google.com with SMTP id r11so6753154edt.13 for ; Thu, 13 May 2021 05:37:37 -0700 (PDT) X-Gm-Message-State: AOAM532z1ZwTPtCWT7jA/RMemQhaQbjmZlUcVWS6V0ZfT7CpFIBEXI4n k2Hw8oH7OQMUaW1LKYxJhyGU1q1lc7QbhGqFBQ== X-Received: by 2002:a05:6402:234b:: with SMTP id r11mr49991488eda.137.1620909456065; Thu, 13 May 2021 05:37:36 -0700 (PDT) MIME-Version: 1.0 References: <20210420031511.2348977-1-robh@kernel.org> <20210420031511.2348977-8-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Thu, 13 May 2021 07:37:24 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 7/9] perf: arm64: Add test for userspace counter access on heterogeneous systems To: "nakamura.shun@fujitsu.com" Cc: Alexander Shishkin , "honnappa.nagarahalli@arm.com" , "Zachary.Leaf@arm.com" , Raphael Gault , Jonathan Cameron , Namhyung Kim , Itaru Kitayama , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 13, 2021 at 4:06 AM nakamura.shun@fujitsu.com wrote: > > Hi Rob > > > Userspace counter access only works on heterogeneous systems with some > > restrictions. The userspace process must be pinned to a homogeneous > > subset of CPUs and must open the corresponding PMU for those CPUs. This > > commit adds a test implementing these requirements. > > Are you planning to change x86 tests (tools/perf/arch/x86/tests/rdpmc.c) > to use libperf as well? The test can be removed as the libperf unit tests have an equivalent test. I had a patch doing this, but there were objections removing it until 'perf test' can run the libperf tests. Rob