Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753427AbbFDOEV (ORCPT ); Thu, 4 Jun 2015 10:04:21 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:35850 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752102AbbFDOES (ORCPT ); Thu, 4 Jun 2015 10:04:18 -0400 Date: Thu, 4 Jun 2015 16:04:12 +0200 From: Ingo Molnar To: pi3orama 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 Subject: Re: [GIT PULL 0/6] perf/core improvements and fixes Message-ID: <20150604140412.GB14445@gmail.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> <0108CD89-BFFA-4A68-90AE-A34597777641@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0108CD89-BFFA-4A68-90AE-A34597777641@163.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1462 Lines: 56 * pi3orama wrote: > > > 发自我的 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. So if users cannot actually generate .o files then it's premature to merge this in such an incomplete form! It should be possible to use a feature that we are merging. 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/