Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp175681imj; Fri, 15 Feb 2019 21:00:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IYsHniq0xHjjXi2I1Yy5mW6p/uSY8pq7VObJ8ApwwhvZM49vcaYNs88utX+YQDxYxibNql/ X-Received: by 2002:a17:902:2aaa:: with SMTP id j39mr14020854plb.335.1550293220537; Fri, 15 Feb 2019 21:00:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550293220; cv=none; d=google.com; s=arc-20160816; b=hvAtuRjTM+KCw5mL12sC7tup10BhLEYnm50B3msxemNYCdMcvB9p/9e/JrQ5ph0ODo 7qDnq1tC5T7ity3K3LPcgKS4ByKrHSJaNgheDnvNbugc58uPNa1ZLxOKzczwTPaVEeR+ kRsfn2003Wg4YAJk69Ev9cCekvUzcXx7P59yPWAl7FSS0d9YFHVc1eQhcWgZk96VSkjK HuPHnRAz22A5Ms61tcFp1Ef0lauhrwv7tEY1JYKKDxdmEJq92A8ehw1u6PoURXFC4zkj 097nCAd7aW7RM52N69fP3Fjx22uyZk5g3tOzX0x/A7Ycm3Z3XdL4fr54W73oio88CuwC pOzA== 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=m8vLtVHAUlTRr21wmHxJIOnuQhFBoDYE89IxK4MFMQ8=; b=y4fnv2d5uTnCP9O4p+ZQ/WU27NuelyUc1Wv4464f3z7nfo1l+ZvxT4AziRvkB/sxYF GrpeKFrIgiUxwsYp1wQPdhdDQGE+zXQiKC4xSnYfPxWR7rfuyzkxWn2SZSJVkff+bTcI Twtl9QYjg7LEc/xiHcoEM2gFHe6uFrnlyllU4EfmVx1gSshpQiWlo4a1yqGYKBXTLobP Jpyx2+0fRjQ/8qHnuLw3k6JQEDyUqj4gzaeuLW3Ld8Ngs1+hNhH6R6/fGNZb5or/M0xH fFeQfhTtxP6Z0wJJzFlWuN7drc33hchHJSyzfzUMIWEusTjH9bCIPTUZctPC2u7s/RO0 cRyA== 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 p12si6933984pgl.106.2019.02.15.21.00.04; Fri, 15 Feb 2019 21:00:20 -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 S1731477AbfBOSFN (ORCPT + 99 others); Fri, 15 Feb 2019 13:05:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54480 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730285AbfBOSFN (ORCPT ); Fri, 15 Feb 2019 13:05:13 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3BF23CA65D; Fri, 15 Feb 2019 18:05:12 +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 07C6C6E9E7; Fri, 15 Feb 2019 18:05:10 +0000 (UTC) Received: by sandy.ghostprotocols.net (Postfix, from userid 1000) id 1558755D3; Fri, 15 Feb 2019 16:05:06 -0200 (BRST) Date: Fri, 15 Feb 2019 16:05:06 -0200 From: Arnaldo Carvalho de Melo To: Song Liu Cc: Netdev , "linux-kernel@vger.kernel.org" , "ast@kernel.org" , "daniel@iogearbox.net" , Kernel Team , "peterz@infradead.org" , "jolsa@kernel.org" , "namhyung@kernel.org" , acme@kernel.org Subject: Re: [PATCH v2 perf,bpf 09/11] perf-top: add option --bpf-event Message-ID: <20190215180506.GI5784@redhat.com> References: <20190214235624.2579307-1-songliubraving@fb.com> <20190215000010.2590505-1-songliubraving@fb.com> <20190215000010.2590505-8-songliubraving@fb.com> <20190215142749.GD5784@redhat.com> <31C00A93-54B4-40D0-AC63-A19368AEC669@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31C00A93-54B4-40D0-AC63-A19368AEC669@fb.com> 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 15 Feb 2019 18:05:13 +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:06:19PM +0000, Song Liu escreveu: > > On Feb 15, 2019, at 6:27 AM, Arnaldo Carvalho de Melo wrote: > > Em Thu, Feb 14, 2019 at 04:00:10PM -0800, Song Liu escreveu: > >> bpf events are only tracked when opts->bpf_event is enabled. This patch > >> adds command line flag to enable this for perf-top. > > Shouldn't this start as enabled and we just provide a way to disable it > > for testing purposes? Normally perf top works system wide, and then we > > want to get info about BPF events, I think. > We can enable it by default, and add a --no-bpf-event option to disable it > for testing. Excellent, thanks. - Arnaldo