Re: [GIT PULL 0/6] perf/core improvements and fixes

From: Ingo Molnar
Date: Thu Jun 04 2015 - 10:04:24 EST



* pi3orama <pi3orama@xxxxxxx> wrote:

>
>
> åèæç iPhone
>
> > å 2015å6æ4æïäå8:40ïIngo Molnar <mingo@xxxxxxxxxx> åéï
> >
> >
> > * Wangnan (F) <wangnan0@xxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/