lkml.org 
[lkml]   [2015]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [GIT PULL 0/6] perf/core improvements and fixes
From
Date


发自我的 iPhone

> 在 2015年6月4日,下午8:40,Ingo Molnar <mingo@kernel.org> 写道:
>
>
> * Wangnan (F) <wangnan0@huawei.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



\
 
 \ /
  Last update: 2015-06-04 15:21    [W:0.090 / U:1.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site