From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757429AbbJVMlt (ORCPT ); Thu, 22 Oct 2015 08:41:49 -0400 Received: from casper.infradead.org ([85.118.1.10]:56910 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957AbbJVMls (ORCPT ); Thu, 22 Oct 2015 08:41:48 -0400 Date: Thu, 22 Oct 2015 14:41:42 +0200 From: Peter Zijlstra To: "Wangnan (F)" Cc: Alexei Starovoitov , "David S. Miller" , Ingo Molnar , He Kuang , Kaixu Xia , Daniel Borkmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 net-next] bpf: fix bpf_perf_event_read() helper Message-ID: <20151022124142.GQ17308@twins.programming.kicks-ass.net> References: <1445468283-4592-1-git-send-email-ast@kernel.org> <5628D6EC.3040606@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5628D6EC.3040606@huawei.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2015 at 08:30:36PM +0800, Wangnan (F) wrote: > I have a question on inherit, not related to this patch: > Is it safe for perf to disable attr->inherit if the event is system wide? > I haven't read relate code completely. In my current knowledge the behavior > of a system wide perf event should be same whether inherit is set or not. > Is that true? Yes, .inherit is pointless for cpu wide events, if we allow creating cpu events with .inherit set that's unfortunate.