Received: by 10.223.185.116 with SMTP id b49csp2627392wrg; Mon, 5 Mar 2018 06:14:58 -0800 (PST) X-Google-Smtp-Source: AG47ELumMjVeOFDzoEj1dpxumr8ITkOphdSh2OcXYwwCXl9Z5uavM7XH9boxgeyjRvEoC9/RT0W9 X-Received: by 2002:a17:902:768b:: with SMTP id m11-v6mr13194704pll.185.1520259297996; Mon, 05 Mar 2018 06:14:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520259297; cv=none; d=google.com; s=arc-20160816; b=od8JSTsR1O+KgHuIHdUXuoXrN+OgGLZitxTt194q5vtNtHPvI4ZcLp7AQQnPeyXtr1 r3+2jIbv20JKO60ek52gn+Xz7PvpP7gyyDjYaHZa8SdPM8ET6NuCLIC84c3Q91zn69T+ +N1hvVtUZMEzysnRdGGscscVLmlTl9pcN4KXVTpsCGpbjiYLDKU1aPQpIKH/b5GdnhEx 4ucUOZzZP93WPFvzb43E47VaADbZSMbTHswOwxXSp0mRQejgiBHzznlEqgpnxHQqm7Fg b+UE43vUhG528auozucdaKVMxOjBxVJaLrAFLGdJtOcr48dLkO2w/NjymkFmSrEnvKf3 UsQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=7z1H6SU3AbvLQ4hhVcQ8ECC1ekww5gPajCdR9cPGhoM=; b=XCt7+6wPysymg95nRXvGvXx61Vu+c4xR9t82vXeU6lk/0hAcfW9YPE0NvvU68FEGvs +wcMNm6tlia88vXmdHuffWC8wLyyn4FVzJ0a0m/AXLmyMlTsZg+BQZAri5XZpA8ZfJT4 rqxubahOhgU+RM6f3pXcTVd3jHlH5Uzq3ltJcI2SlfWiPeI91SctVo6FflAoVsfDT24A uJ4rdTmSBtEAZ7/bAf0MxlXZZ0gTIS6yrQDQhgqmvT5grfN9bJfoAzHSPSUpBOvR5mL8 b0qIdnAtuSHpl21mGpsKydOdNCIfxTdcNbst0Oq4m15DMdcrpwREVDPKprHpTKNq+Upb ZE5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si8468698pgc.18.2018.03.05.06.14.43; Mon, 05 Mar 2018 06:14:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934302AbeCEMVq (ORCPT + 99 others); Mon, 5 Mar 2018 07:21:46 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:48984 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933542AbeCEMVp (ORCPT ); Mon, 5 Mar 2018 07:21:45 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EC84114; Mon, 5 Mar 2018 04:21:44 -0800 (PST) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D8F7F3F487; Mon, 5 Mar 2018 04:21:42 -0800 (PST) Date: Mon, 5 Mar 2018 12:21:40 +0000 From: Mark Rutland To: Saravana Kannan Cc: suzuki.poulose@arm.com, Peter Zijlstra , rananta@codeaurora.org, Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, Alexander Shishkin , Ingo Molnar , Namhyung Kim , avilaj@codeaurora.org, Jiri Olsa , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2] perf/core: Add support for PMUs that can be read from more than 1 CPU Message-ID: <20180305122140.wwwu4hvhssouuzcp@lakrids.cambridge.arm.com> References: <1520039693-30914-1-git-send-email-skannan@codeaurora.org> <20180305121702.l64rzrckog6d7jop@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180305121702.l64rzrckog6d7jop@lakrids.cambridge.arm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 05, 2018 at 12:17:02PM +0000, Mark Rutland wrote: > On Fri, Mar 02, 2018 at 05:14:53PM -0800, Saravana Kannan wrote: > > @@ -629,6 +629,7 @@ struct perf_event { > > > > int oncpu; > > int cpu; > > + cpumask_t readable_on_cpus; > > For most PMUs, this will be emptry, and it's potentially *very* large > (e.g. on systems where NR_CPUS is 4096). Please use a poitner to a mask, > as I suggested in [1], e.g. > [1] https://lkml.kernel.org/r/20171128124534.3jvuala525wvn64r@wfg-t540p.sh.intel.com Whoops, that should've been: [1] https://lkml.kernel.org/r/20180225143802.denbkubqjg2dc7af@salmiak Mark.