Received: by 10.223.185.116 with SMTP id b49csp1345457wrg; Fri, 23 Feb 2018 16:57:35 -0800 (PST) X-Google-Smtp-Source: AH8x225+211087k3FWcgXvDdylUeL0iSNHNv1pvwEn99Spb27b2ZpdcUPoQIKfA8ApfTTEvAUYPO X-Received: by 2002:a17:902:594c:: with SMTP id e12-v6mr3404331plj.323.1519433855846; Fri, 23 Feb 2018 16:57:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519433855; cv=none; d=google.com; s=arc-20160816; b=qeup5/pKBjevQFcZATgh0m9OGd71mvDNRykLIpnrHrE62cT0PDhxiM2LsR44/vWBmv S8Wy229WVY3XY3cWU4Ys0+fBvRI7jwHk5/V2sfD1czIOojBoioTHTn8vnqiQ+HUVxwTp rHh93Rcd0u90uVVX9FV2U4g8ZV+c4j2ubgZDUaDKQHR9CAaIOOGr6HpXNv0TV3UScVCF jAGdzx+uXxVcjVk44PqF8w9HQYNLHAXnh0o2myA5T9dDp8XMLrFmuO5ryQv1ET+5esQh 62XHSSEbeTpBdhyQ9ZtXrKZW/khxYYP6ryf8ei0xb6sg3z+zJ3n6A2iJs18IYUHCH9Su DAHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=3I1PR1dh/aKc3zsAKAwu+yJsXLKaYnpxZD3iur4RRBQ=; b=ZtgIzt+MhxGJW3imnlfor9VmyiQqpqA36b90I7tQdsboF7AiVZSAq1waUDytzVJ361 nzGenAr2Uu8V2iKYHfm3paprGuy3ueVP6TUr/lUFQwp6DPDJ3LDmOlKGtH2R8AgLjHGB DWb87A/0pN040fjruV8Uy4e7Ve/S7ivkpylKAlQboM5QTtqsaRtEWbISlGcBBBxvLQYI lf5tYmvGxqxItdu0pyjAexriHjYoSYkk0tYDglHx4vw1nl93NO/fgkMkSjgxnzhZmsqu Z7JKPVEvJQ3aSqQn8FTdVJQEXd9O/EAbTXx2akudgNAEvurFK7PlZPKFlBK0Dars9YxG unjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ItHV4naI; dkim=pass header.i=@codeaurora.org header.s=default header.b=MOZ20TIn; 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 p8si2197519pgn.197.2018.02.23.16.57.21; Fri, 23 Feb 2018 16:57:35 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=ItHV4naI; dkim=pass header.i=@codeaurora.org header.s=default header.b=MOZ20TIn; 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 S1752586AbeBXA4l (ORCPT + 99 others); Fri, 23 Feb 2018 19:56:41 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:54922 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751425AbeBXA4k (ORCPT ); Fri, 23 Feb 2018 19:56:40 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B24E560F6B; Sat, 24 Feb 2018 00:56:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519433799; bh=6FWoKTnutpzv3A8pn7klm34iyO8eKGkL/Iqw8RksLH4=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=ItHV4naIyzdJHQr/iZ1bTNri0PoDGB5KfUI/deLwMuNMnzVViCY4B9QomwlsU338a D0fKVOun5eNeHuvUJ3uSh38JMGhlIQa+H1xo8V2YJiuZ51q22aJBhpkQ5eIPHlqmtG x6odtMkTbQrXH0jy3kCi0FLd+MqwGIXn8lDHLmyM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.134.64.210] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: skannan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5ABFB6030F; Sat, 24 Feb 2018 00:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519433798; bh=6FWoKTnutpzv3A8pn7klm34iyO8eKGkL/Iqw8RksLH4=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=MOZ20TInDeBH06JmHcjzkqwwwM6BPkq8OoFGFP3B4CPkuKBUp9SiFiDDIsNwIvhc4 BKcS/8qYnPQfivSbE8OMzeavX1u7SgV9mekPONqRFENmIuLqCJbpOn7Bb1VJgTIsDD gKpw6/yCu4UBeqWzN2H6eLCPc8yk61E9VPnhxqr8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5ABFB6030F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=skannan@codeaurora.org Message-ID: <5A90B845.3030504@codeaurora.org> Date: Fri, 23 Feb 2018 16:56:37 -0800 From: Saravana Kannan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Saravana Kannan CC: mark.rutland@arm.com, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , avilaj@codeaurora.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 2/2] perf/core: Add support for PMUs that can be read from any CPU References: <1519431578-11995-1-git-send-email-skannan@codeaurora.org> <1519431578-11995-2-git-send-email-skannan@codeaurora.org> In-Reply-To: <1519431578-11995-2-git-send-email-skannan@codeaurora.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/23/2018 04:19 PM, Saravana Kannan wrote: > Some PMUs events can be read from any CPU. So allow the PMU to mark > events as such. For these events, we don't need to reject reads or > make smp calls to the event's CPU and cause unnecessary wake ups. > > Good examples of such events would be events from caches shared across > all CPUs. > > Signed-off-by: Saravana Kannan > --- > include/linux/perf_event.h | 3 +++ > kernel/events/core.c | 10 ++++++++-- > 2 files changed, 11 insertions(+), 2 deletions(-) > > Ugh! Didn't mean to chain these two emails. This one is independent of the other email. -Saravana -- Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project