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=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 32263C43381 for ; Tue, 12 Mar 2019 05:31:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ED6932171F for ; Tue, 12 Mar 2019 05:31:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=fb.com header.i=@fb.com header.b="EEnbf/1X" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727438AbfCLFb0 (ORCPT ); Tue, 12 Mar 2019 01:31:26 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:37978 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727374AbfCLFbV (ORCPT ); Tue, 12 Mar 2019 01:31:21 -0400 Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2C5Uf3T025993 for ; Mon, 11 Mar 2019 22:31:20 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=facebook; bh=iEwHjWBMCQHCux+fE/Ba0va6KGFbfW5abV2svwHytOA=; b=EEnbf/1XYTYSUsuTUVVUWg48xeIQET0TA4ku5eRWY3eA5pJbW2cvX26ntKxhRu5K4M45 Pg1/WWr+gCH8ylfI7YNpeUAgO5fOPaERGNn2BgXK2217XR6Ua90LBHL/qWRmtVkfy6IL me8SJhsKVeIfhBZIBfcCQ3n86u//WWenKBQ= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2r644y0e13-6 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 11 Mar 2019 22:31:20 -0700 Received: from mx-out.facebook.com (2620:10d:c081:10::13) by mail.thefacebook.com (2620:10d:c081:35::128) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5; Mon, 11 Mar 2019 22:31:18 -0700 Received: by devbig006.ftw2.facebook.com (Postfix, from userid 4523) id CD72E62E2019; Mon, 11 Mar 2019 22:31:16 -0700 (PDT) Smtp-Origin-Hostprefix: devbig From: Song Liu Smtp-Origin-Hostname: devbig006.ftw2.facebook.com To: , , CC: , , , , , , , , Song Liu Smtp-Origin-Cluster: ftw2c04 Subject: [PATCH v9 perf,bpf 10/15] perf-top: add option --no-bpf-event Date: Mon, 11 Mar 2019 22:30:46 -0700 Message-ID: <20190312053051.2690567-11-songliubraving@fb.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190312053051.2690567-1-songliubraving@fb.com> References: <20190312053051.2690567-1-songliubraving@fb.com> X-FB-Internal: Safe MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-12_04:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds option --no-bpf-event to perf-top, which is the same as the option of perf-record. The following patches will use this option. 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 09c0721c97df..63a8f686c5cb 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -1480,6 +1480,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, "no-bpf-event", &top.record_opts.no_bpf_event, "do not 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