Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp885135imj; Fri, 15 Feb 2019 08:22:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IZBe5KPYltKVvjIiQZUj/nNUxJRXqVYMQjKI9c7Amj4NXGcNjoFS7A0TXCyGkcUkM3TzbLQ X-Received: by 2002:a17:902:a03:: with SMTP id 3mr11145027plo.112.1550247740906; Fri, 15 Feb 2019 08:22:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247740; cv=none; d=google.com; s=arc-20160816; b=gBLg9RYjvzQbZyhTkLSLVlhdLs3o106HuC43aW9G6jvSRoJGTImCAII5WdyoHN5Jw+ L1Prmk36Ln6V9lfUWcDKysMRzmawIBvMiSNsPY0fRCwAxvqgDMlWK6fwgLYQSDEOsWh4 aBiPyg9ZuYyvn1cBDLqr+tR2nxmwG23EoMCmV3FPRHAQwLNYHClBma1dAPAVIbbKCM7M EBf0LQnW97RLKWZeIRBokQbb4aAWxgwIawwBZgMcz48xg215KBdBnjbALleRTToBWB7D i5KccAh4sFIUYoBB9kE9d4aysGtOa4/jLaZ4FkBXaQYXCOlENvMEYAw+QOwid+9rBeYd qBsg== 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=HDx9wmlnw5WoUgXaj41UNOfGGbly17F58X2N/O/q4W4=; b=dkTB86i6lmtfY/GYRvMEdZDfT55KoyNnlrXU55SYsXHGbtz1MvqL2UfAbeme9PiABQ ujJoaymWQXcuLv06KlHnLw4tOLvtazisLqtHmeNIghVkZl6rZ0gslAxb8pRoVD6S+ybo MuDNGyZEk+uGyj7PQ0P5O9RMNVyhQqnku555QKnfNluudCLit2xASWdZeznCuIcm+jJ6 E4uZd7UPAwsprmFlC37x7nzGg9EkP0lrYnL2qcELYiRLvg1a6O31UpAqF2wDIc1jy7MW /wFkIlhrzW0u2pQwti9+LslqsEA9ROUkkVfuDaIO8qAB+qAjEdR/dNyvh/NzkvxfNvR9 Gm7g== 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 y8si5601017pfm.31.2019.02.15.08.22.04; Fri, 15 Feb 2019 08:22: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 S1730832AbfBOO1z (ORCPT + 99 others); Fri, 15 Feb 2019 09:27:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56374 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726237AbfBOO1z (ORCPT ); Fri, 15 Feb 2019 09:27:55 -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 F36231487F2; Fri, 15 Feb 2019 14:27:54 +0000 (UTC) Received: from sandy.ghostprotocols.net (ovpn-112-32.phx2.redhat.com [10.3.112.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4D64C610C7; Fri, 15 Feb 2019 14:27:54 +0000 (UTC) Received: by sandy.ghostprotocols.net (Postfix, from userid 1000) id ED0E855D2; Fri, 15 Feb 2019 12:27:49 -0200 (BRST) Date: Fri, 15 Feb 2019 12:27:49 -0200 From: Arnaldo Carvalho de Melo To: Song Liu Cc: 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 Subject: Re: [PATCH v2 perf,bpf 09/11] perf-top: add option --bpf-event Message-ID: <20190215142749.GD5784@redhat.com> References: <20190214235624.2579307-1-songliubraving@fb.com> <20190215000010.2590505-1-songliubraving@fb.com> <20190215000010.2590505-8-songliubraving@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190215000010.2590505-8-songliubraving@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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 15 Feb 2019 14:27:55 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. - Arnaldo > Signed-off-by: Song Liu > --- > tools/perf/builtin-top.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c > index 27d8d42e0a4d..5271d7211b9c 100644 > --- a/tools/perf/builtin-top.c > +++ b/tools/perf/builtin-top.c > @@ -1492,6 +1492,7 @@ int cmd_top(int argc, const char **argv) > "Display raw encoding of assembly instructions (default)"), > OPT_BOOLEAN(0, "demangle-kernel", &symbol_conf.demangle_kernel, > "Enable kernel symbol demangling"), > + OPT_BOOLEAN(0, "bpf-event", &opts->bpf_event, "record bpf events"), > OPT_STRING(0, "objdump", &top.annotation_opts.objdump_path, "path", > "objdump binary to use for disassembly and annotations"), > OPT_STRING('M', "disassembler-style", &top.annotation_opts.disassembler_style, "disassembler style", > -- > 2.17.1