Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp176350imj; Fri, 15 Feb 2019 21:01:05 -0800 (PST) X-Google-Smtp-Source: AHgI3IYt15ZtQR5F58c+4gBTcIzvu0Of4KH8g8rMIWgTJsJZ3oe8QKeRlGztNGtKNPii+12v2JiI X-Received: by 2002:a17:902:7588:: with SMTP id j8mr14014866pll.22.1550293265459; Fri, 15 Feb 2019 21:01:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550293265; cv=none; d=google.com; s=arc-20160816; b=s4smTDgZ09MnHYG5oBPi4q0Ry8oDCgZqTlwTpj4fwa253vjFfuWi1i9YAVgpivN3nZ I/z1PixEHEPJ1Eh+pcufloDvZMei86n14bSRggccwHPDaef+p7+kr0d2vUV/hGCFYDUM HQyOMj20xi+Gkymo5TPHlE8ZR4fjMZzwpJUThwhYc28H0Zr7uLXho4fKol4KXJU5B3DP MEiJoY9Ge7vJlBaluksy/zgep2p1toE319i+s9i/9tmtIkkUhK8pvKVRF508FgfwuAQZ 47k1+CrHqYlrWDi7L/oHduXhiSN6XVcDy1HOGO6LZhBVq1tQ9NivTtD2kDsHastAUwHB +M6g== 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; bh=eaaVoO40fnMLAqJYqOQHgAVLUMzwsisKHUPsg/tHYQI=; b=ytUwrgkGr/o5hhHRmguCkuQf5wHryEZjz17yUjIJtrtFd2TP2p1zQ8XTMT68b293ag FB1FrbxEFFFMNSY98qDtpZhl2h+1YX5BRes2xZ3LxU7FRKsPcvTFXL0+jNVa7NiI8tgp vD6KypmKz8R3ZZqEwZpn8BAhW+ttn2Wm6GT3tGw+n5PDWLqXpKezm3HnjsDz1KQHWayw n5ZHZiWKBbxeFW8j/ZBq212Fn5i3asOr/xjF572ifqGEakQo3Z+0dXfhYbZbQgNjziGI WLqU4+LYLcWRV5nnvV/E43GLOaALukb8xgdkT2H0DMhnsHOVQdU0acOdTM3Cnm9kGUqS MyNg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d64si7327021pgc.413.2019.02.15.21.00.49; Fri, 15 Feb 2019 21:01:05 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731433AbfBOSEM (ORCPT + 99 others); Fri, 15 Feb 2019 13:04:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52888 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730890AbfBOSEL (ORCPT ); Fri, 15 Feb 2019 13:04:11 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7806A131502; Fri, 15 Feb 2019 18:04:11 +0000 (UTC) Received: from sandy.ghostprotocols.net (ovpn-112-20.phx2.redhat.com [10.3.112.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B22B060C6A; Fri, 15 Feb 2019 18:04:10 +0000 (UTC) Received: by sandy.ghostprotocols.net (Postfix, from userid 1000) id DD3DB55CF; Fri, 15 Feb 2019 16:04:06 -0200 (BRST) Date: Fri, 15 Feb 2019 16:04:06 -0200 From: Arnaldo Carvalho de Melo To: Song Liu Cc: Netdev , linux-kernel , Alexei Starovoitov , Daniel Borkmann , Kernel Team , Peter Zijlstra , "jolsa@kernel.org" , "namhyung@kernel.org" Subject: Re: [PATCH v2 perf,bpf 01/11] perf, bpf: consider events with attr.bpf_event as side-band events Message-ID: <20190215180406.GH5784@redhat.com> References: <20190214235624.2579307-1-songliubraving@fb.com> <20190214235840.2587123-1-songliubraving@fb.com> <20190215141407.GA5784@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 15 Feb 2019 18:04:11 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Feb 15, 2019 at 05:02:02PM +0000, Song Liu escreveu: > > > > On Feb 15, 2019, at 6:14 AM, Arnaldo Carvalho de Melo wrote: > > > > Em Thu, Feb 14, 2019 at 03:58:40PM -0800, Song Liu escreveu: > >> Events with bpf_event should be considered as side-band event, as they > >> carry information about BPF programs. > >> > >> Fixes: 6ee52e2a3fe4 ("perf, bpf: Introduce PERF_RECORD_BPF_EVENT") > >> Signed-off-by: Song Liu > >> --- > >> kernel/events/core.c | 3 ++- > >> 1 file changed, 2 insertions(+), 1 deletion(-) > >> > >> diff --git a/kernel/events/core.c b/kernel/events/core.c > >> index 0a8dab322111..9403bdda5f8c 100644 > >> --- a/kernel/events/core.c > >> +++ b/kernel/events/core.c > >> @@ -4238,7 +4238,8 @@ static bool is_sb_event(struct perf_event *event) > >> if (attr->mmap || attr->mmap_data || attr->mmap2 || > >> attr->comm || attr->comm_exec || > >> attr->task || attr->ksymbol || > ^ here how come, I looked after context_switch, that came before, have to replace my glasses... :-) > > >> - attr->context_switch) > >> + attr->context_switch || > >> + attr->bpf_event) > > > > What about attr->ksymbol? > It is already included up there. attr->bpf_event was missed initially > because we didn't use events with bpf_event but not ksymbol. With this > set, the polling thread only has bpf_event, so we need this fix. Ok, I'll get this one merged asap. - Arnaldo