[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <0108CD89-BFFA-4A68-90AE-A34597777641@163.com>
Date: Thu, 4 Jun 2015 20:58:26 +0800
From: pi3orama <pi3orama@....com>
To: Ingo Molnar <mingo@...nel.org>
Cc: "Wangnan (F)" <wangnan0@...wei.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Adrian Hunter <adrian.hunter@...el.com>,
Alexei Starovoitov <ast@...mgrid.com>,
Brendan Gregg <brendan.d.gregg@...il.com>,
Daniel Borkmann <daniel@...earbox.net>,
David Ahern <dsahern@...il.com>, He Kuang <hekuang@...wei.com>,
Jiri Olsa <jolsa@...hat.com>, Kaixu Xia <xiakaixu@...wei.com>,
Madhavan Srinivasan <maddy@...ux.vnet.ibm.com>,
Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>,
Michael Ellerman <mpe@...erman.id.au>,
Namhyung Kim <namhyung@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Sukadev Bhattiprolu <sukadev@...ux.vnet.ibm.com>,
Zefan Li <lizefan@...wei.com>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Alexei Starovoitov <alexei.starovoitov@...il.com>
Subject: Re: [GIT PULL 0/6] perf/core improvements and fixes
发自我的 iPhone
> 在 2015年6月4日,下午8:40,Ingo Molnar <mingo@...nel.org> 写道:
>
>
> * Wangnan (F) <wangnan0@...wei.com> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists