Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932107AbbFDNBs (ORCPT ); Thu, 4 Jun 2015 09:01:48 -0400 Received: from m50-134.163.com ([123.125.50.134]:35203 "EHLO m50-134.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932068AbbFDNBo convert rfc822-to-8bit (ORCPT ); Thu, 4 Jun 2015 09:01:44 -0400 Content-Type: text/plain; charset=gb2312 Mime-Version: 1.0 (1.0) Subject: Re: [GIT PULL 0/6] perf/core improvements and fixes From: pi3orama X-Mailer: iPhone Mail (12F70) In-Reply-To: <20150604124033.GA10580@gmail.com> Date: Thu, 4 Jun 2015 20:58:26 +0800 Cc: "Wangnan (F)" , Arnaldo Carvalho de Melo , "linux-kernel@vger.kernel.org" , Adrian Hunter , Alexei Starovoitov , Brendan Gregg , Daniel Borkmann , David Ahern , He Kuang , Jiri Olsa , Kaixu Xia , Madhavan Srinivasan , Masami Hiramatsu , Michael Ellerman , Namhyung Kim , Peter Zijlstra , Sukadev Bhattiprolu , Zefan Li , Arnaldo Carvalho de Melo , Alexei Starovoitov Content-Transfer-Encoding: 8BIT Message-Id: <0108CD89-BFFA-4A68-90AE-A34597777641@163.com> References: <1433371238-14572-1-git-send-email-acme@kernel.org> <20150604054854.GA10969@gmail.com> <556FEB32.8040909@huawei.com> <20150604072153.GA18983@gmail.com> <557021D3.7070900@huawei.com> <20150604124033.GA10580@gmail.com> To: Ingo Molnar X-CM-TRANSID: DtGowECZsV1yS3BVVI91Aw--.361S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gr1DGFWrGry8XF4DJF4xZwb_yoWfAFb_uF yxtrn7Gw4kJF92g3WDAF12vF4SqFs5Kr1ft34UWFW7Cw1rJF48Jrn8urya9Fy3Wrs8Wrn3 G3ZrtFZ2vr9rujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUbgAw3UUUUU== X-Originating-IP: [210.73.4.168] X-CM-SenderInfo: lslt02xdpdqiywtou0bp/1tbiExQPQFD+Uyv8SwAAsp Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1180 Lines: 52 ?????ҵ? iPhone > ?? 2015??6??4?գ?????8:40??Ingo Molnar д???? > > > * Wangnan (F) wrote: > >>> So how do you generate the .o? Why cannot the tool, if it sees that the filter >>> parameter is eBPF source code, do that automatically? >> >> I think compiling on the fly is our goal, and Alexei is working on it. > > So what exact command line are you using to create the .o? > > What exactly should users type to create a simple eBPF filter profile? > I have mentioned in previous mail: Use # perf record -e bpf_source.c cmdline to create a eBPF filter from source, Use # perf record -e bpf_object.o cmdline to create a eBPF filter from object intermedia. Use # perf bpf compile bpf_source.c --kbuild=kernel-build-dir -o bpf_object.o to create the .o I think this should be enough. Currently only the second case has been implemented. Thanks. > Thanks, > > Ingo -- 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/