Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751561AbbEXIaZ (ORCPT ); Sun, 24 May 2015 04:30:25 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:1554 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbbEXI2h (ORCPT ); Sun, 24 May 2015 04:28:37 -0400 From: He Kuang To: , , , , , , , , , , , CC: , Subject: [RFC PATCH v2 02/15] perf bpf: Support custom vmlinux path Date: Sun, 24 May 2015 08:27:58 +0000 Message-ID: <1432456091-73384-3-git-send-email-hekuang@huawei.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1432456091-73384-1-git-send-email-hekuang@huawei.com> References: <1432456091-73384-1-git-send-email-hekuang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.197.210] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1111 Lines: 37 Make bpf command support -k option, when inserting probe point which needs debuginfo, a customized vmlinux path can be specified. Signed-off-by: He Kuang --- tools/perf/builtin-bpf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/builtin-bpf.c b/tools/perf/builtin-bpf.c index 4ef294a..9ea34b3 100644 --- a/tools/perf/builtin-bpf.c +++ b/tools/perf/builtin-bpf.c @@ -11,6 +11,7 @@ #include "builtin.h" #include "perf.h" #include "debug.h" +#include "util/symbol.h" #include "parse-options.h" #include "bpf-loader.h" @@ -30,6 +31,8 @@ static struct bpf_cmd bpf_cmds[]; struct option bpf_options[] = { OPT_INCR('v', "verbose", &verbose, "be more verbose " "(show debug information)"), + OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name, + "file", "vmlinux pathname"), OPT_END() }; -- 1.8.5.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/