From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A91FCC10F06 for ; Mon, 11 Mar 2019 20:29:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A04E2087C for ; Mon, 11 Mar 2019 20:29:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728243AbfCKU3J (ORCPT ); Mon, 11 Mar 2019 16:29:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35952 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726675AbfCKU3I (ORCPT ); Mon, 11 Mar 2019 16:29:08 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9BED630642AA; Mon, 11 Mar 2019 20:29:08 +0000 (UTC) Received: from sandy.ghostprotocols.net (ovpn-112-29.phx2.redhat.com [10.3.112.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AB22519724; Mon, 11 Mar 2019 20:29:07 +0000 (UTC) Received: by sandy.ghostprotocols.net (Postfix, from userid 1000) id 6EDEE56B8; Mon, 11 Mar 2019 17:29:00 -0300 (BRT) Date: Mon, 11 Mar 2019 17:29:00 -0300 From: Arnaldo Carvalho de Melo To: Song Liu Cc: bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, kernel-team@fb.com, peterz@infradead.org, jolsa@kernel.org, namhyung@kernel.org, sdf@fomichev.me Subject: Re: [PATCH v8 perf,bpf 01/15] perf, bpf: consider events with attr.bpf_event as side-band events Message-ID: <20190311202900.GB3078@redhat.com> References: <20190311195555.889995-1-songliubraving@fb.com> <20190311195555.889995-2-songliubraving@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190311195555.889995-2-songliubraving@fb.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Mon, 11 Mar 2019 20:29:08 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Mar 11, 2019 at 12:55:41PM -0700, 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 This patch is also already merged upstream, its in torvalds/master. - Arnaldo > --- > 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 f1a26c8f15b3..4a59cb9b29ee 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 || > - attr->context_switch) > + attr->context_switch || > + attr->bpf_event) > return true; > return false; > } > -- > 2.17.1